Home
last modified time | relevance | path

Searched refs:ksym (Results 1 – 22 of 22) sorted by relevance

/linux/scripts/
H A DMakefile.modpost98 ksym-wl := $(CONFIG_UNUSED_KSYMS_WHITELIST)
99 ksym-wl := $(if $(filter-out /%, $(ksym-wl)),$(if $(wildcard $(ksym-wl)),,$(srctree)/))$(ksym-wl)
100 modpost-args += -t $(addprefix -u , $(ksym-wl))
101 modpost-deps += $(ksym-wl)
/linux/tools/testing/selftests/bpf/
H A Dtrace_helpers.h10 struct ksym { struct
17 typedef int (*ksym_search_cmp_t)(const void *p1, const struct ksym *p2); argument
20 struct ksym *ksym_search(long key);
24 struct ksym *ksym_search_local(struct ksyms *ksyms, long key);
29 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p1,
H A Dtrace_helpers.c28 struct ksym *syms;
94 sizeof(struct ksym), ksyms->sym_cnt + 1); in load_kallsyms_local_common()
102 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common()
113 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr;
135 struct ksym *ksym_search_local(struct ksyms *ksyms, long key) in ksym_search_local()
158 /* valid ksym */ in ksym_search_local()
165 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p, in search_kallsyms_custom_local()
169 struct ksym *ks; in search_kallsyms_custom_local()
187 struct ksym *ksym_searc in ksym_search()
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dstacktrace_ips.c34 struct ksym *ksym; in check_stacktrace_ips() local
37 ksym = ksym_search_local(ksyms, ips[i]); in check_stacktrace_ips()
38 if (!ASSERT_OK_PTR(ksym, "ksym_search_local")) in check_stacktrace_ips()
40 ASSERT_EQ(ksym->addr, val, "stack_cmp"); in check_stacktrace_ips()
H A Dkprobe_multi_test.c
H A Dget_stack_raw_tp.c32 struct ksym *ks; in get_stack_print_output()
/linux/scripts/gdb/linux/
H A Dbpf.py18 def get_ksym_name(ksym): argument
19 name = ksym["name"].bytes
70 for ksym in list_ksyms():
71 self.add(ksym)
209 def generate_debug_obj(ksym, prog): argument
210 name = get_ksym_name(ksym)
212 start = ksym["start"]
214 .array(int(ksym["end"]) - int(start))
H A Dsymbols.py218 def add_bpf_ksym(self, ksym): argument
219 addr = int(ksym["start"])
220 name = bpf.get_ksym_name(ksym)
224 debug_obj = bpf.generate_debug_obj(ksym, self.bpf_progs.get(addr))
236 def remove_bpf_ksym(self, ksym): argument
237 addr = int(ksym["start"])
242 name = bpf.get_ksym_name(ksym)
/linux/kernel/bpf/
H A Dtrampoline.c118 void bpf_image_ksym_init(void *data, unsigned int size, struct bpf_ksym *ksym) in bpf_image_ksym_init() argument
120 ksym->start = (unsigned long) data; in bpf_image_ksym_init()
121 ksym->end = ksym->start + size; in bpf_image_ksym_init()
124 void bpf_image_ksym_add(struct bpf_ksym *ksym) in bpf_image_ksym_add() argument
126 bpf_ksym_add(ksym); in bpf_image_ksym_add()
127 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_add()
128 PAGE_SIZE, false, ksym->name); in bpf_image_ksym_add()
131 void bpf_image_ksym_del(struct bpf_ksym *ksym) in bpf_image_ksym_del() argument
133 bpf_ksym_del(ksym); in bpf_image_ksym_del()
134 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_del()
[all …]
H A Dcore.c132 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats()
555 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr()
556 prog->aux->ksym.end = prog->aux->ksym.start + prog->jited_len; in bpf_prog_ksym_set_addr()
562 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name()
610 const struct bpf_ksym *ksym; in bpf_tree_comp() local
612 ksym = container_of(n, struct bpf_ksym, tnode); in bpf_tree_comp()
614 if (val < ksym->start) in bpf_tree_comp()
618 * trace. Therefore, do val > ksym->end instead of val >= ksym in bpf_tree_comp()
635 bpf_ksym_add(struct bpf_ksym * ksym) bpf_ksym_add() argument
644 __bpf_ksym_del(struct bpf_ksym * ksym) __bpf_ksym_del() argument
653 bpf_ksym_del(struct bpf_ksym * ksym) bpf_ksym_del() argument
719 struct bpf_ksym *ksym; __bpf_address_lookup() local
753 struct bpf_ksym *ksym; bpf_prog_ksym_find() local
784 struct bpf_ksym *ksym; bpf_get_kallsym() local
[all...]
/linux/samples/hw_breakpoint/
H A Ddata_breakpoint.c27 module_param_string(ksym, ksym_name, KSYM_NAME_LEN, S_IRUGO);
28 MODULE_PARM_DESC(ksym, "Kernel symbol to monitor; this module will report any"
/linux/kernel/
H A Dkallsyms.c762 __bpf_md_ptr(struct kallsym_iter *, ksym);
777 ctx.ksym = m ? m->private : NULL; in ksym_prog_seq_show()
815 DEFINE_BPF_ITER_FUNC(ksym, struct bpf_iter_meta *meta, struct kallsym_iter *ksym)
829 { offsetof(struct bpf_iter__ksym, ksym),
/linux/tools/sched_ext/include/scx/
H A Dcompat.h75 static inline bool __COMPAT_has_ksym(const char *ksym) in __COMPAT_has_ksym() argument
78 return btf__find_by_name(__COMPAT_vmlinux_btf, ksym) >= 0; in __COMPAT_has_ksym()
/linux/tools/testing/vsock/
H A Dutil.c876 const char *ksym; in __get_transports()
899 ksym = transport_ksyms[i]; in __get_transports()
900 match = strstr(buf, ksym); in __get_transports()
901 if (match && isspace(match[strlen(ksym)])) { in __get_transports()
877 const char *ksym; __get_transports() local
/linux/samples/bpf/
H A Dspintest_user.c18 struct ksym *sym; in main()
H A Doffwaketime_user.c22 struct ksym *sym; in print_ksym()
H A Dsampleip_user.c91 struct ksym *sym; in print_ip_map()
H A Dtrace_event_user.c29 struct ksym *sym; in print_ksym()
/linux/kernel/module/
H A Dmain.c1291 const struct kernel_symbol *ksym; in resolve_symbol_wait() local
1295 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait()
1296 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait()
1301 return ksym; in resolve_symbol_wait()
1520 const struct kernel_symbol *ksym; in simplify_symbols() local
1552 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols()
1554 if (ksym && !IS_ERR(ksym)) { in simplify_symbols()
1555 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols()
1560 if (!ksym && in simplify_symbols()
1565 ret = PTR_ERR(ksym) ?: -ENOENT; in simplify_symbols()
/linux/arch/arm/mach-imx/
H A DMakefile29 obj-y += ssi-fiq-ksym.o
/linux/include/linux/
H A Dfilter.h1288 return list_empty(&fp->aux->ksym.lnode) || in bpf_prog_kallsyms_verify_off()
1289 fp->aux->ksym.lnode.prev == LIST_POISON2; in bpf_prog_kallsyms_verify_off()
/linux/kernel/events/
H A Dcore.c9964 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
9973 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()