| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.h | 22 struct ksym { struct 28 struct ksym *syms; argument 36 typedef int (*ksym_search_cmp_t)(const void *p1, const struct ksym *p2); 39 struct ksym *ksym_search(long key); 43 struct ksym *ksym_search_local(struct ksyms *ksyms, long key); 48 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p1,
|
| H A D | trace_helpers.c | 90 sizeof(struct ksym), ksyms->sym_cnt + 1); in load_kallsyms_local_common() 98 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common() 109 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp() 131 struct ksym *ksym_search_local(struct ksyms *ksyms, long key) in ksym_search_local() 154 /* valid ksym */ in ksym_search_local() 161 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p, in search_kallsyms_custom_local() 165 struct ksym *ks; in search_kallsyms_custom_local() 183 struct ksym *ksym_search(long key) in ksym_search() 602 return compare_name(((const struct ksym *)p in load_kallsyms_compare() [all...] |
| /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/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 | 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 | 197 void bpf_image_ksym_init(void *data, unsigned int size, struct bpf_ksym *ksym) in hash_from_ip() 199 ksym->start = (unsigned long) data; in hash_from_ip() 200 ksym->end = ksym->start + size; in hash_from_ip() 203 void bpf_image_ksym_add(struct bpf_ksym *ksym) in hash_from_ip() 205 bpf_ksym_add(ksym); in hash_from_ip() 206 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in hash_from_ip() 207 PAGE_SIZE, false, ksym->name); in hash_from_ip() 210 void bpf_image_ksym_del(struct bpf_ksym *ksym) in hash_from_ip() 212 bpf_ksym_del(ksym); in hash_from_ip() 155 bpf_image_ksym_init(void * data,unsigned int size,struct bpf_ksym * ksym) bpf_image_ksym_init() argument 161 bpf_image_ksym_add(struct bpf_ksym * ksym) bpf_image_ksym_add() argument 168 bpf_image_ksym_del(struct bpf_ksym * ksym) bpf_image_ksym_del() argument 568 struct bpf_ksym *ksym; bpf_tramp_image_alloc() local [all...] |
| H A D | core.c | 133 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats() 558 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr() 559 prog->aux->ksym.end = prog->aux->ksym.start + prog->jited_len; in bpf_prog_ksym_set_addr() 565 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name() 613 const struct bpf_ksym *ksym; in bpf_tree_comp() local 615 ksym = container_of(n, struct bpf_ksym, tnode); in bpf_tree_comp() 617 if (val < ksym->start) in bpf_tree_comp() 621 * trace. Therefore, do val > ksym->end instead of val >= ksym in bpf_tree_comp() 638 bpf_ksym_add(struct bpf_ksym * ksym) bpf_ksym_add() argument 647 __bpf_ksym_del(struct bpf_ksym * ksym) __bpf_ksym_del() argument 656 bpf_ksym_del(struct bpf_ksym * ksym) bpf_ksym_del() argument 722 struct bpf_ksym *ksym; bpf_address_lookup() local 756 struct bpf_ksym *ksym; bpf_prog_ksym_find() local 768 struct bpf_ksym *ksym; bpf_has_frame_pointer() local 803 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 | 799 __bpf_md_ptr(struct kallsym_iter *, ksym); 814 ctx.ksym = m ? m->private : NULL; in ksym_prog_seq_show() 852 DEFINE_BPF_ITER_FUNC(ksym, struct bpf_iter_meta *meta, struct kallsym_iter *ksym) 866 { offsetof(struct bpf_iter__ksym, ksym),
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | compat.h | 76 static inline bool __COMPAT_has_ksym(const char *ksym) in __COMPAT_has_ksym() argument 79 return btf__find_by_name(__COMPAT_vmlinux_btf, ksym) >= 0; in __COMPAT_has_ksym()
|
| /linux/tools/testing/vsock/ |
| H A D | util.c | 907 const char *ksym; in __get_transports() local 930 ksym = transport_ksyms[i]; in __get_transports() 931 match = strstr(buf, ksym); in __get_transports() 932 if (match && isspace(match[strlen(ksym)])) { in __get_transports()
|
| /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 | 1320 const struct kernel_symbol *ksym; in resolve_symbol_wait() local 1324 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait() 1325 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait() 1330 return ksym; in resolve_symbol_wait() 1537 const struct kernel_symbol *ksym; in simplify_symbols() local 1569 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols() 1571 if (ksym && !IS_ERR(ksym)) { in simplify_symbols() 1572 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols() 1577 if (!ksym && in simplify_symbols() 1582 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 | bpf.h | 1371 struct bpf_ksym ksym; 1438 struct bpf_ksym ksym; 1562 .ksym = { \ in bpf_trampoline_get() 1564 .lnode = LIST_HEAD_INIT(_name.ksym.lnode), \ in bpf_trampoline_put() 1594 void bpf_image_ksym_init(void *data, unsigned int size, struct bpf_ksym *ksym); 1595 void bpf_image_ksym_add(struct bpf_ksym *ksym); 1596 void bpf_image_ksym_del(struct bpf_ksym *ksym); 1597 void bpf_ksym_add(struct bpf_ksym *ksym); 1598 void bpf_ksym_del(struct bpf_ksym *ksym); 1807 struct bpf_ksym ksym; 1322 struct bpf_ksym ksym; global() member 1386 struct bpf_ksym ksym; global() member 1719 struct bpf_ksym ksym; global() member [all...] |
| H A D | filter.h | 1336 return list_empty(&fp->aux->ksym.lnode) || 1337 fp->aux->ksym.lnode.prev == LIST_POISON2;
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 643 /* local btf_id of the ksym extern's type. */ 650 } ksym; 3574 if (ext->type == EXT_KSYM && ext->ksym.type_id) in bpf_object__sanitize_and_load_btf() 4405 &ext->ksym.type_id); in bpf_object__collect_externs() 4440 pr_debug("extern (ksym) #%d: symbol %d, name %s\n", in bpf_object__collect_externs() 6470 if (ext->ksym.type_id && ext->is_set) { /* typed ksyms */ in adjust_prog_btf_ext_info() 6472 insn[0].imm = ext->ksym.kernel_btf_id; in adjust_prog_btf_ext_info() 6473 insn[1].imm = ext->ksym.kernel_btf_obj_fd; in adjust_prog_btf_ext_info() 6475 insn[0].imm = (__u32)ext->ksym.addr; in adjust_prog_btf_ext_info() 6476 insn[1].imm = ext->ksym in adjust_prog_btf_ext_info() 645 } ksym; global() member [all...] |
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 1741 bpf_prog->aux->ksym.fp_start = prog - temp; in do_jit() 2881 bpf_prog->aux->ksym.fp_end = prog - temp; in save_args() 3486 im->ksym.fp_start = prog - (u8 *)rw_image; in __arch_prepare_bpf_trampoline() 3635 im->ksym.fp_end = prog - (u8 *)rw_image; in emit_bpf_dispatcher()
|
| /linux/kernel/events/ |
| H A D | core.c | 10330 prog->aux->ksym.name); in perf_event_bpf_event() 10339 subprog->aux->ksym.name); in perf_event_bpf_event()
|