| /linux/scripts/ |
| H A D | Makefile.modpost | 98 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 D | trace_helpers.h | 10 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 D | trace_helpers.c | 28 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 D | stacktrace_ips.c | 34 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 D | kprobe_multi_test.c | |
| H A D | get_stack_raw_tp.c | 32 struct ksym *ks; in get_stack_print_output()
|
| /linux/scripts/gdb/linux/ |
| H A D | bpf.py | 18 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 D | symbols.py | 218 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 D | trampoline.c | 118 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 D | core.c | 132 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 D | data_breakpoint.c | 27 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 D | kallsyms.c | 762 __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 D | compat.h | 75 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 D | util.c | 876 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 D | spintest_user.c | 18 struct ksym *sym; in main()
|
| H A D | offwaketime_user.c | 22 struct ksym *sym; in print_ksym()
|
| H A D | sampleip_user.c | 91 struct ksym *sym; in print_ip_map()
|
| H A D | trace_event_user.c | 29 struct ksym *sym; in print_ksym()
|
| /linux/kernel/module/ |
| H A D | main.c | 1291 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 D | Makefile | 29 obj-y += ssi-fiq-ksym.o
|
| /linux/include/linux/ |
| H A D | filter.h | 1288 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 D | core.c | 9964 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols() 9973 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
|