/linux-6.1.9/kernel/bpf/ |
D | trampoline.c | 119 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym) in bpf_image_ksym_add() argument 121 ksym->start = (unsigned long) data; in bpf_image_ksym_add() 122 ksym->end = ksym->start + PAGE_SIZE; in bpf_image_ksym_add() 123 bpf_ksym_add(ksym); in bpf_image_ksym_add() 124 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_add() 125 PAGE_SIZE, false, ksym->name); in bpf_image_ksym_add() 128 void bpf_image_ksym_del(struct bpf_ksym *ksym) in bpf_image_ksym_del() argument 130 bpf_ksym_del(ksym); in bpf_image_ksym_del() 131 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_del() 132 PAGE_SIZE, true, ksym->name); in bpf_image_ksym_del() [all …]
|
D | core.c | 116 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats() 549 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr() 550 prog->aux->ksym.end = prog->aux->ksym.start + prog->jited_len; in bpf_prog_ksym_set_addr() 556 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name() 604 const struct bpf_ksym *ksym; in bpf_tree_comp() local 606 ksym = container_of(n, struct bpf_ksym, tnode); in bpf_tree_comp() 608 if (val < ksym->start) in bpf_tree_comp() 610 if (val >= ksym->end) in bpf_tree_comp() 625 void bpf_ksym_add(struct bpf_ksym *ksym) in bpf_ksym_add() argument 628 WARN_ON_ONCE(!list_empty(&ksym->lnode)); in bpf_ksym_add() [all …]
|
D | dispatcher.c | 155 bpf_image_ksym_add(d->image, &d->ksym); in bpf_dispatcher_change_prog()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 18 static struct ksym syms[MAX_SYMS]; 23 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp() 56 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms() 60 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
|
/linux-6.1.9/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"
|
/linux-6.1.9/kernel/ |
D | kallsyms.c | 787 __bpf_md_ptr(struct kallsym_iter *, ksym); 802 ctx.ksym = m ? m->private : NULL; in ksym_prog_seq_show() 840 DEFINE_BPF_ITER_FUNC(ksym, struct bpf_iter_meta *meta, struct kallsym_iter *ksym) 854 { offsetof(struct bpf_iter__ksym, ksym),
|
/linux-6.1.9/Documentation/ |
D | dontdiff | 154 ksym.c* 155 ksym.h*
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_ksym.c | 32 struct kallsym_iter *iter = ctx->ksym; in dump_ksym()
|
D | bpf_iter.h | 166 struct kallsym_iter *ksym; member
|
/linux-6.1.9/samples/bpf/ |
D | spintest_user.c | 19 struct ksym *sym; in main()
|
D | offwaketime_user.c | 22 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()
|
/linux-6.1.9/kernel/module/ |
D | main.c | 1117 const struct kernel_symbol *ksym; in resolve_symbol_wait() local 1121 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait() 1122 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait() 1127 return ksym; in resolve_symbol_wait() 1285 const struct kernel_symbol *ksym; in simplify_symbols() local 1317 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols() 1319 if (ksym && !IS_ERR(ksym)) { in simplify_symbols() 1320 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols() 1325 if (!ksym && in simplify_symbols() 1330 ret = PTR_ERR(ksym) ?: -ENOENT; in simplify_symbols()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | get_stack_raw_tp.c | 32 struct ksym *ks; in get_stack_print_output()
|
/linux-6.1.9/include/linux/ |
D | bpf.h | 894 struct bpf_ksym ksym; member 956 struct bpf_ksym ksym; member 1013 .ksym = { \ 1015 .lnode = LIST_HEAD_INIT(_name.ksym.lnode), \ 1045 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym); 1046 void bpf_image_ksym_del(struct bpf_ksym *ksym); 1047 void bpf_ksym_add(struct bpf_ksym *ksym); 1048 void bpf_ksym_del(struct bpf_ksym *ksym); 1166 struct bpf_ksym ksym; member
|
D | filter.h | 1045 return list_empty(&fp->aux->ksym.lnode) || in bpf_prog_kallsyms_verify_off() 1046 fp->aux->ksym.lnode.prev == LIST_POISON2; in bpf_prog_kallsyms_verify_off()
|
/linux-6.1.9/arch/arm/mach-imx/ |
D | Makefile | 29 obj-y += ssi-fiq-ksym.o
|
/linux-6.1.9/ |
D | .gitignore | 109 /include/ksym/
|
D | Makefile | 1586 CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.c | 563 } ksym; member 2981 if (ext->type == EXT_KSYM && ext->ksym.type_id) in obj_needs_vmlinux_btf() 3781 &ext->ksym.type_id); in bpf_object__collect_externs() 5854 if (ext->ksym.type_id && ext->is_set) { /* typed ksyms */ in bpf_object__relocate_data() 5856 insn[0].imm = ext->ksym.kernel_btf_id; in bpf_object__relocate_data() 5857 insn[1].imm = ext->ksym.kernel_btf_obj_fd; in bpf_object__relocate_data() 5859 insn[0].imm = (__u32)ext->ksym.addr; in bpf_object__relocate_data() 5860 insn[1].imm = ext->ksym.addr >> 32; in bpf_object__relocate_data() 5868 insn[0].imm = ext->ksym.kernel_btf_id; in bpf_object__relocate_data() 5869 insn[0].off = ext->ksym.btf_fd_idx; in bpf_object__relocate_data() [all …]
|
/linux-6.1.9/kernel/events/ |
D | core.c | 9033 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols() 9042 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
|