Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/bpf/
Dtrampoline.c44 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 …]
Dcore.c105 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 …]
Ddispatcher.c146 bpf_image_ksym_add(d->image, &d->ksym); in bpf_dispatcher_change_prog()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtrace_helpers.c17 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()
Dtrace_helpers.h7 struct ksym { struct
13 struct ksym *ksym_search(long key); argument
/kernel/linux/linux-5.10/samples/hw_breakpoint/
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"
/kernel/linux/linux-5.10/Documentation/
Ddontdiff154 ksym.c*
155 ksym.h*
/kernel/linux/linux-5.10/include/linux/
Dbpf.h653 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/
Dspintest_user.c21 struct ksym *sym; in main()
Doffwaketime_user.c23 struct ksym *sym; in print_ksym()
Dsampleip_user.c91 struct ksym *sym; in print_ip_map()
Dtrace_event_user.c29 struct ksym *sym; in print_ksym()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dget_stack_raw_tp.c30 struct ksym *ks; in get_stack_print_output()
/kernel/linux/linux-5.10/
D.gitignore105 /include/ksym/
DMakefile1511 CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
/kernel/linux/linux-5.10/arch/arm/mach-imx/
DMakefile31 obj-y += ssi-fiq-ksym.o
/kernel/linux/linux-5.10/kernel/
Dmodule.c1521 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/
Dlibbpf.c399 } 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/
Dcore.c8790 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
8799 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()