Home
last modified time | relevance | path

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

/linux-6.6.21/scripts/
DMakefile.modpost96 ksym-wl := $(CONFIG_UNUSED_KSYMS_WHITELIST)
97 ksym-wl := $(if $(filter-out /%, $(ksym-wl)),$(srctree)/)$(ksym-wl)
98 modpost-args += -t $(addprefix -u , $(ksym-wl))
99 modpost-deps += $(ksym-wl)
Dremove-stale-files37 rm -rf include/ksym
/linux-6.6.21/kernel/bpf/
Dtrampoline.c118 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym) in bpf_image_ksym_add() argument
120 ksym->start = (unsigned long) data; in bpf_image_ksym_add()
121 ksym->end = ksym->start + PAGE_SIZE; in bpf_image_ksym_add()
122 bpf_ksym_add(ksym); in bpf_image_ksym_add()
123 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_add()
124 PAGE_SIZE, false, ksym->name); in bpf_image_ksym_add()
127 void bpf_image_ksym_del(struct bpf_ksym *ksym) in bpf_image_ksym_del() argument
129 bpf_ksym_del(ksym); in bpf_image_ksym_del()
130 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_BPF, ksym->start, in bpf_image_ksym_del()
131 PAGE_SIZE, true, ksym->name); in bpf_image_ksym_del()
[all …]
Dcore.c123 INIT_LIST_HEAD_RCU(&fp->aux->ksym.lnode); in bpf_prog_alloc_no_stats()
569 prog->aux->ksym.start = (unsigned long) prog->bpf_func; in bpf_prog_ksym_set_addr()
570 prog->aux->ksym.end = prog->aux->ksym.start + prog->jited_len; in bpf_prog_ksym_set_addr()
576 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name()
624 const struct bpf_ksym *ksym; in bpf_tree_comp() local
626 ksym = container_of(n, struct bpf_ksym, tnode); in bpf_tree_comp()
628 if (val < ksym->start) in bpf_tree_comp()
634 if (val > ksym->end) in bpf_tree_comp()
649 void bpf_ksym_add(struct bpf_ksym *ksym) in bpf_ksym_add() argument
652 WARN_ON_ONCE(!list_empty(&ksym->lnode)); in bpf_ksym_add()
[all …]
Ddispatcher.c160 bpf_image_ksym_add(d->image, &d->ksym); in bpf_dispatcher_change_prog()
/linux-6.6.21/tools/testing/selftests/bpf/
Dtrace_helpers.c22 static struct ksym syms[MAX_SYMS];
27 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp()
58 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms_refresh()
73 struct ksym *ksym_search(long key) in ksym_search()
Dtrace_helpers.h10 struct ksym { struct
18 struct ksym *ksym_search(long key); argument
/linux-6.6.21/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"
/linux-6.6.21/kernel/
Dkallsyms.c818 __bpf_md_ptr(struct kallsym_iter *, ksym);
833 ctx.ksym = m ? m->private : NULL; in ksym_prog_seq_show()
871 DEFINE_BPF_ITER_FUNC(ksym, struct bpf_iter_meta *meta, struct kallsym_iter *ksym)
885 { offsetof(struct bpf_iter__ksym, ksym),
/linux-6.6.21/Documentation/
Ddontdiff153 ksym.c*
154 ksym.h*
/linux-6.6.21/samples/bpf/
Dspintest_user.c18 struct ksym *sym; in main()
Doffwaketime_user.c22 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()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_ksym.c32 struct kallsym_iter *iter = ctx->ksym; in dump_ksym()
Dbpf_iter.h166 struct kallsym_iter *ksym; member
/linux-6.6.21/kernel/module/
Dmain.c1169 const struct kernel_symbol *ksym; in resolve_symbol_wait() local
1173 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait()
1174 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait()
1179 return ksym; in resolve_symbol_wait()
1374 const struct kernel_symbol *ksym; in simplify_symbols() local
1406 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols()
1408 if (ksym && !IS_ERR(ksym)) { in simplify_symbols()
1409 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols()
1414 if (!ksym && in simplify_symbols()
1419 ret = PTR_ERR(ksym) ?: -ENOENT; in simplify_symbols()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dget_stack_raw_tp.c32 struct ksym *ks; in get_stack_print_output()
/linux-6.6.21/arch/arm/mach-imx/
DMakefile29 obj-y += ssi-fiq-ksym.o
/linux-6.6.21/include/linux/
Dbpf.h1125 struct bpf_ksym ksym; member
1187 struct bpf_ksym ksym; member
1275 .ksym = { \
1277 .lnode = LIST_HEAD_INIT(_name.ksym.lnode), \
1307 void bpf_image_ksym_add(void *data, struct bpf_ksym *ksym);
1308 void bpf_image_ksym_del(struct bpf_ksym *ksym);
1309 void bpf_ksym_add(struct bpf_ksym *ksym);
1310 void bpf_ksym_del(struct bpf_ksym *ksym);
1429 struct bpf_ksym ksym; member
Dfilter.h1036 return list_empty(&fp->aux->ksym.lnode) || in bpf_prog_kallsyms_verify_off()
1037 fp->aux->ksym.lnode.prev == LIST_POISON2; in bpf_prog_kallsyms_verify_off()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.c582 } ksym; member
3060 if (ext->type == EXT_KSYM && ext->ksym.type_id) in obj_needs_vmlinux_btf()
3875 &ext->ksym.type_id); in bpf_object__collect_externs()
6007 if (ext->ksym.type_id && ext->is_set) { /* typed ksyms */ in bpf_object__relocate_data()
6009 insn[0].imm = ext->ksym.kernel_btf_id; in bpf_object__relocate_data()
6010 insn[1].imm = ext->ksym.kernel_btf_obj_fd; in bpf_object__relocate_data()
6012 insn[0].imm = (__u32)ext->ksym.addr; in bpf_object__relocate_data()
6013 insn[1].imm = ext->ksym.addr >> 32; in bpf_object__relocate_data()
6021 insn[0].imm = ext->ksym.kernel_btf_id; in bpf_object__relocate_data()
6022 insn[0].off = ext->ksym.btf_fd_idx; in bpf_object__relocate_data()
[all …]
/linux-6.6.21/kernel/events/
Dcore.c9265 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
9274 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()