/kernel/linux/linux-5.10/kernel/bpf/ |
D | trampoline.c | 44 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym) in bpf_image_ksym_add() argument 46 ksym->start = (unsigned long) data; in bpf_image_ksym_add() 47 ksym->end = ksym->start + PAGE_SIZE; in bpf_image_ksym_add() 48 bpf_ksym_add(ksym); in bpf_image_ksym_add() 49 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_add() 50 PAGE_SIZE, false, ksym->name); in bpf_image_ksym_add() 53 void bpf_image_ksym_del(struct bpf_ksym *ksym) in bpf_image_ksym_del() argument 55 bpf_ksym_del(ksym); in bpf_image_ksym_del() 56 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_del() 57 PAGE_SIZE, true, ksym->name); in bpf_image_ksym_del() [all …]
|
D | core.c | 105 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats() 544 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr() 545 prog->aux->ksym.end = addr + hdr->pages * PAGE_SIZE; in bpf_prog_ksym_set_addr() 551 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name() 599 const struct bpf_ksym *ksym; in bpf_tree_comp() local 601 ksym = container_of(n, struct bpf_ksym, tnode); in bpf_tree_comp() 603 if (val < ksym->start) in bpf_tree_comp() 605 if (val >= ksym->end) in bpf_tree_comp() 620 void bpf_ksym_add(struct bpf_ksym *ksym) in bpf_ksym_add() argument 623 WARN_ON_ONCE(!list_empty(&ksym->lnode)); in bpf_ksym_add() [all …]
|
D | dispatcher.c | 146 bpf_image_ksym_add(d->image, &d->ksym); in bpf_dispatcher_change_prog()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 17 static struct ksym syms[MAX_SYMS]; 22 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp() 47 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms() 51 struct ksym *ksym_search(long key) in ksym_search()
|
D | trace_helpers.h | 7 struct ksym { struct 13 struct ksym *ksym_search(long key); argument
|
/kernel/linux/linux-5.10/samples/hw_breakpoint/ |
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"
|
/kernel/linux/linux-5.10/Documentation/ |
D | dontdiff | 154 ksym.c* 155 ksym.h*
|
/kernel/linux/linux-5.10/include/linux/ |
D | bpf.h | 653 struct bpf_ksym ksym; member 711 struct bpf_ksym ksym; member 736 .ksym = { \ 738 .lnode = LIST_HEAD_INIT(_name.ksym.lnode), \ 767 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym); 768 void bpf_image_ksym_del(struct bpf_ksym *ksym); 769 void bpf_ksym_add(struct bpf_ksym *ksym); 770 void bpf_ksym_del(struct bpf_ksym *ksym); 872 struct bpf_ksym ksym; member
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | spintest_user.c | 21 struct ksym *sym; in main()
|
D | offwaketime_user.c | 23 struct ksym *sym; in print_ksym()
|
D | sampleip_user.c | 91 struct ksym *sym; in print_ip_map()
|
D | trace_event_user.c | 29 struct ksym *sym; in print_ksym()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | get_stack_raw_tp.c | 30 struct ksym *ks; in get_stack_print_output()
|
/kernel/linux/linux-5.10/ |
D | .gitignore | 105 /include/ksym/
|
D | Makefile | 1511 CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
|
/kernel/linux/linux-5.10/arch/arm/mach-imx/ |
D | Makefile | 31 obj-y += ssi-fiq-ksym.o
|
/kernel/linux/linux-5.10/kernel/ |
D | module.c | 1521 const struct kernel_symbol *ksym; in resolve_symbol_wait() local 1525 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait() 1526 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait() 1531 return ksym; in resolve_symbol_wait() 2359 const struct kernel_symbol *ksym; in simplify_symbols() local 2389 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols() 2391 if (ksym && !IS_ERR(ksym)) { in simplify_symbols() 2392 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols() 2397 if (!ksym && in simplify_symbols() 2402 ret = PTR_ERR(ksym) ?: -ENOENT; in simplify_symbols()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf.c | 399 } ksym; member 2534 if (ext->type == EXT_KSYM && ext->ksym.type_id) { in bpf_object__load_vmlinux_btf() 3171 &ext->ksym.type_id); in bpf_object__collect_externs() 6032 if (ext->ksym.type_id) { /* typed ksyms */ in bpf_object__relocate_data() 6034 insn[0].imm = ext->ksym.vmlinux_btf_id; in bpf_object__relocate_data() 6036 insn[0].imm = (__u32)ext->ksym.addr; in bpf_object__relocate_data() 6037 insn[1].imm = ext->ksym.addr >> 32; in bpf_object__relocate_data() 7154 if (ext->is_set && ext->ksym.addr != sym_addr) { in bpf_object__read_kallsyms_file() 7156 sym_name, ext->ksym.addr, sym_addr); in bpf_object__read_kallsyms_file() 7162 ext->ksym.addr = sym_addr; in bpf_object__read_kallsyms_file() [all …]
|
/kernel/linux/linux-5.10/kernel/events/ |
D | core.c | 8790 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols() 8799 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
|