Home
last modified time | relevance | path

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

/linux-6.1.9/kernel/bpf/
Dtrampoline.c119 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 …]
Dcore.c116 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 …]
Ddispatcher.c155 bpf_image_ksym_add(d->image, &d->ksym); in bpf_dispatcher_change_prog()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtrace_helpers.c18 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()
Dtrace_helpers.h7 struct ksym { struct
13 struct ksym *ksym_search(long key); argument
/linux-6.1.9/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.1.9/kernel/
Dkallsyms.c787 __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/
Ddontdiff154 ksym.c*
155 ksym.h*
/linux-6.1.9/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.1.9/samples/bpf/
Dspintest_user.c19 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.1.9/kernel/module/
Dmain.c1117 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/
Dget_stack_raw_tp.c32 struct ksym *ks; in get_stack_print_output()
/linux-6.1.9/include/linux/
Dbpf.h894 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
Dfilter.h1045 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/
DMakefile29 obj-y += ssi-fiq-ksym.o
/linux-6.1.9/
D.gitignore109 /include/ksym/
DMakefile1586 CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.c563 } 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/
Dcore.c9033 prog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
9042 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()