Searched refs:ctx_name (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/mm/damon/ |
D | dbgfs.c | 863 char *ctx_name; in dbgfs_mk_context_write() local 869 ctx_name = kmalloc(count + 1, GFP_KERNEL); in dbgfs_mk_context_write() 870 if (!ctx_name) { in dbgfs_mk_context_write() 876 if (sscanf(kbuf, "%s", ctx_name) != 1) { in dbgfs_mk_context_write() 882 ret = dbgfs_mk_context(ctx_name); in dbgfs_mk_context_write() 889 kfree(ctx_name); in dbgfs_mk_context_write() 970 char *ctx_name; in dbgfs_rm_context_write() local 975 ctx_name = kmalloc(count + 1, GFP_KERNEL); in dbgfs_rm_context_write() 976 if (!ctx_name) { in dbgfs_rm_context_write() 982 if (sscanf(kbuf, "%s", ctx_name) != 1) { in dbgfs_rm_context_write() [all …]
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | veristat.c | 822 static int guess_prog_type_by_ctx_name(const char *ctx_name, in guess_prog_type_by_ctx_name() argument 862 if (!ctx_name) in guess_prog_type_by_ctx_name() 866 if (strcmp(ctx_map[i].uapi_name, ctx_name) == 0 || in guess_prog_type_by_ctx_name() 867 (ctx_map[i].kern_name && strcmp(ctx_map[i].kern_name, ctx_name) == 0)) { in guess_prog_type_by_ctx_name() 909 const char *ctx_name; in fixup_obj() local 933 ctx_name = btf__name_by_offset(btf, t->name_off); in fixup_obj() 935 if (guess_prog_type_by_ctx_name(ctx_name, &prog_type, &attach_type) == 0) { in fixup_obj() 947 ctx_name, filename, prog_name); in fixup_obj()
|