Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/
H A Dtrace_helpers.h10 struct ksym { struct
17 typedef int (*ksym_search_cmp_t)(const void *p1, const struct ksym *p2); argument
20 struct ksym *ksym_search(long key);
24 struct ksym *ksym_search_local(struct ksyms *ksyms, long key);
29 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p1,
H A Dtrace_helpers.c26 struct ksym *syms;
92 sizeof(struct ksym), ksyms->sym_cnt + 1); in load_kallsyms_local_common()
100 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common()
111 return ((struct ksym *)p1)->addr - ((struct ksym *)p2)->addr; in ksym_cmp()
133 struct ksym *ksym_search_local(struct ksyms *ksyms, long key) in ksym_search_local()
163 struct ksym *search_kallsyms_custom_local(struct ksyms *ksyms, const void *p, in search_kallsyms_custom_local()
167 struct ksym *ks; in search_kallsyms_custom_local()
185 struct ksym *ksym_search(long key) in ksym_search()
/linux-6.15/scripts/
H A DMakefile.modpost98 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-6.15/kernel/bpf/
H A Dtrampoline.c120 ksym->start = (unsigned long) data; in bpf_image_ksym_init()
121 ksym->end = ksym->start + size; in bpf_image_ksym_init()
126 bpf_ksym_add(ksym); in bpf_image_ksym_add()
128 PAGE_SIZE, false, ksym->name); in bpf_image_ksym_add()
133 bpf_ksym_del(ksym); in bpf_image_ksym_del()
135 PAGE_SIZE, true, ksym->name); in bpf_image_ksym_del()
260 bpf_image_ksym_del(&im->ksym); in bpf_tramp_image_free()
359 struct bpf_ksym *ksym; in bpf_tramp_image_alloc() local
381 ksym = &im->ksym; in bpf_tramp_image_alloc()
382 INIT_LIST_HEAD_RCU(&ksym->lnode); in bpf_tramp_image_alloc()
[all …]
H A Dcore.c584 prog->aux->ksym.end = prog->aux->ksym.start + prog->jited_len; in bpf_prog_ksym_set_addr()
642 if (val < ksym->start) in bpf_tree_comp()
648 if (val > ksym->end) in bpf_tree_comp()
684 __bpf_ksym_del(ksym); in bpf_ksym_del()
701 fp->aux->ksym.prog = true; in bpf_prog_kallsyms_add()
747 struct bpf_ksym *ksym; in __bpf_address_lookup() local
752 if (ksym) { in __bpf_address_lookup()
783 return ksym && ksym->prog ? in bpf_prog_ksym_find()
784 container_of(ksym, struct bpf_prog_aux, ksym)->prog : in bpf_prog_ksym_find()
809 struct bpf_ksym *ksym; in bpf_get_kallsym() local
[all …]
H A Dbpf_struct_ops.c182 char ksym[KSYM_SYMBOL_LEN]; in prepare_arg_info() local
189 stub_fname = kallsyms_lookup((unsigned long)stub_func_addr, NULL, NULL, NULL, ksym); in prepare_arg_info()
635 struct bpf_ksym *ksym) in bpf_struct_ops_ksym_init() argument
637 snprintf(ksym->name, KSYM_NAME_LEN, "bpf__%s_%s", tname, mname); in bpf_struct_ops_ksym_init()
638 INIT_LIST_HEAD_RCU(&ksym->lnode); in bpf_struct_ops_ksym_init()
639 bpf_image_ksym_init(image, size, ksym); in bpf_struct_ops_ksym_init()
740 struct bpf_ksym *ksym; in bpf_struct_ops_map_update_elem() local
814 ksym = kzalloc(sizeof(*ksym), GFP_USER); in bpf_struct_ops_map_update_elem()
815 if (!ksym) { in bpf_struct_ops_map_update_elem()
819 *pksym++ = ksym; in bpf_struct_ops_map_update_elem()
[all …]
H A Ddispatcher.c157 bpf_image_ksym_init(d->image, PAGE_SIZE, &d->ksym); in bpf_dispatcher_change_prog()
158 bpf_image_ksym_add(&d->ksym); in bpf_dispatcher_change_prog()
/linux-6.15/samples/hw_breakpoint/
H A 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.15/kernel/
H A Dkallsyms.c759 __bpf_md_ptr(struct kallsym_iter *, ksym);
774 ctx.ksym = m ? m->private : NULL; in ksym_prog_seq_show()
812 DEFINE_BPF_ITER_FUNC(ksym, struct bpf_iter_meta *meta, struct kallsym_iter *ksym)
826 { offsetof(struct bpf_iter__ksym, ksym),
/linux-6.15/tools/sched_ext/include/scx/
H A Dcompat.h75 static inline bool __COMPAT_has_ksym(const char *ksym) in __COMPAT_has_ksym() argument
78 return btf__find_by_name(__COMPAT_vmlinux_btf, ksym) >= 0; in __COMPAT_has_ksym()
/linux-6.15/samples/bpf/
H A Dspintest_user.c18 struct ksym *sym; in main()
H A Doffwaketime_user.c22 struct ksym *sym; in print_ksym()
H A Dsampleip_user.c91 struct ksym *sym; in print_ip_map()
H A Dtrace_event_user.c29 struct ksym *sym; in print_ksym()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_ksym.c32 struct kallsym_iter *iter = ctx->ksym; in dump_ksym()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c486 return compare_name(((const struct ksym *)p1)->name, ((const struct ksym *)p2)->name); in load_kallsyms_compare()
489 static int search_kallsyms_compare(const void *p1, const struct ksym *p2) in search_kallsyms_compare()
500 struct ksym *ks; in get_syms()
H A Dget_stack_raw_tp.c32 struct ksym *ks; in get_stack_print_output()
/linux-6.15/kernel/module/
H A Dmain.c1193 const struct kernel_symbol *ksym; in resolve_symbol_wait() local
1197 !IS_ERR(ksym = resolve_symbol(mod, info, name, owner)) in resolve_symbol_wait()
1198 || PTR_ERR(ksym) != -EBUSY, in resolve_symbol_wait()
1203 return ksym; in resolve_symbol_wait()
1431 const struct kernel_symbol *ksym; in simplify_symbols() local
1463 ksym = resolve_symbol_wait(mod, info, name); in simplify_symbols()
1465 if (ksym && !IS_ERR(ksym)) { in simplify_symbols()
1466 sym[i].st_value = kernel_symbol_value(ksym); in simplify_symbols()
1471 if (!ksym && in simplify_symbols()
1476 ret = PTR_ERR(ksym) ?: -ENOENT; in simplify_symbols()
/linux-6.15/arch/arm/mach-imx/
H A DMakefile29 obj-y += ssi-fiq-ksym.o
/linux-6.15/include/linux/
H A Dbpf.h1239 struct bpf_ksym ksym; member
1300 struct bpf_ksym ksym; member
1399 .ksym = { \
1401 .lnode = LIST_HEAD_INIT(_name.ksym.lnode), \
1431 void bpf_image_ksym_init(void *data, unsigned int size, struct bpf_ksym *ksym);
1432 void bpf_image_ksym_add(struct bpf_ksym *ksym);
1433 void bpf_image_ksym_del(struct bpf_ksym *ksym);
1434 void bpf_ksym_add(struct bpf_ksym *ksym);
1435 void bpf_ksym_del(struct bpf_ksym *ksym);
1578 struct bpf_ksym ksym; member
H A Dfilter.h1259 return list_empty(&fp->aux->ksym.lnode) || in bpf_prog_kallsyms_verify_off()
1260 fp->aux->ksym.lnode.prev == LIST_POISON2; in bpf_prog_kallsyms_verify_off()
/linux-6.15/tools/lib/bpf/
H A Dlibbpf.c624 } ksym; member
4320 &ext->ksym.type_id); in bpf_object__collect_externs()
6159 insn[0].off = ext->ksym.btf_fd_idx; in bpf_object__relocate_data()
8205 sym_name, ext->ksym.addr, sym_addr); in kallsyms_cb()
8210 ext->ksym.addr = sym_addr; in kallsyms_cb()
8275 local_type_id = ext->ksym.type_id; in bpf_object__resolve_ksym_var_btf_id()
8301 ext->ksym.kernel_btf_id = id; in bpf_object__resolve_ksym_var_btf_id()
8366 ext->ksym.kernel_btf_id = kfunc_id; in bpf_object__resolve_ksym_func_btf_id()
8393 ext->ksym.kernel_btf_obj_fd = 0; in bpf_object__resolve_ksyms_btf_id()
8394 ext->ksym.kernel_btf_id = 0; in bpf_object__resolve_ksyms_btf_id()
[all …]
/linux-6.15/arch/x86/net/
H A Dbpf_jit_comp.c3506 if (prog->aux->ksym.prog) in bpf_get_prog_name()
3507 return prog->aux->ksym.name; in bpf_get_prog_name()
/linux-6.15/kernel/events/
H A Dcore.c9812 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
9821 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()