| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 27 static struct ksyms *ksyms; variable 30 static int ksyms__add_symbol(struct ksyms *ksyms, const char *name, in ksyms__add_symbol() argument 38 ksyms->syms[ksyms->sym_cnt].addr = addr; in ksyms__add_symbol() 39 ksyms->syms[ksyms->sym_cnt].name = tmp; in ksyms__add_symbol() 40 ksyms->sym_cnt++; in ksyms__add_symbol() 44 void free_kallsyms_local(struct ksyms *ksym argument 71 struct ksyms *ksyms; load_kallsyms_local_common() local 131 ksym_search_local(struct ksyms * ksyms,long key) ksym_search_local() argument 161 search_kallsyms_custom_local(struct ksyms * ksyms,const void * p,ksym_search_cmp_t cmp_cb) search_kallsyms_custom_local() argument 190 ksym_get_addr_local(struct ksyms * ksyms,const char * name) ksym_get_addr_local() argument 614 struct ksyms *ksyms; bpf_get_ksyms() local [all...] |
| H A D | trace_helpers.h | 27 struct ksyms { struct 42 struct ksyms *load_kallsyms_local(void); argument 43 struct ksym *ksym_search_local(struct ksyms *ksyms, long key); 44 long ksym_get_addr_local(struct ksyms *ksyms, const char *name); 45 void free_kallsyms_local(struct ksyms *ksyms); 47 struct ksyms *load_kallsyms_custom_local(ksym_cmp_t cmp_cb); 48 struct ksym *search_kallsyms_custom_local(struct ksyms *ksym [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | kprobe_multi_testmod_test.c | 7 static struct ksyms *ksyms; variable 55 addrs[0] = ksym_get_addr_local(ksyms, "bpf_testmod_fentry_test1"); in test_testmod_attach_api_addrs() 57 addrs[1] = ksym_get_addr_local(ksyms, "bpf_testmod_fentry_test2"); in test_testmod_attach_api_addrs() 59 addrs[2] = ksym_get_addr_local(ksyms, "bpf_testmod_fentry_test3"); in test_testmod_attach_api_addrs() 84 ksyms = load_kallsyms_local(); in serial_test_kprobe_multi_testmod_test() 85 if (!ASSERT_OK_PTR(ksyms, "load_kallsyms_local")) in serial_test_kprobe_multi_testmod_test() 94 free_kallsyms_local(ksyms); in serial_test_kprobe_multi_testmod_test()
|
| H A D | stacktrace_ips.c | 9 struct ksyms *ksyms = NULL; in check_stacktrace_ips() local 14 ksyms = load_kallsyms_local(); in check_stacktrace_ips() 15 if (!ASSERT_OK_PTR(ksyms, "load_kallsyms_local")) in check_stacktrace_ips() 37 ksym = ksym_search_local(ksyms, ips[i]); in check_stacktrace_ips() 46 free_kallsyms_local(ksyms); in check_stacktrace_ips()
|
| H A D | kprobe_multi_test.c | 521 struct ksyms *ksyms = NULL; in test_kprobe_multi_bench_attach() local 523 if (!ASSERT_OK(bpf_get_ksyms(&ksyms, kernel), "bpf_get_ksyms")) in test_kprobe_multi_bench_attach() 530 opts.syms = (const char **)ksyms->filtered_syms; in test_kprobe_multi_bench_attach() 531 opts.cnt = ksyms->filtered_cnt; in test_kprobe_multi_bench_attach() 537 free_kallsyms_local(ksyms); in test_kprobe_multi_bench_attach()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | tda826x.c | 66 u32 ksyms; in tda826x_set_params() local 77 ksyms = p->symbol_rate / 1000; in tda826x_set_params() 78 bandwidth = (878 * ksyms + 6500000) / 1000000 + 1; in tda826x_set_params()
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_trigger.c | 234 struct ksyms *ksyms = NULL; in attach_ksyms_all() local 244 if (bpf_get_ksyms(&ksyms, true)) { in attach_ksyms_all() 249 opts.syms = (const char **)ksyms->filtered_syms; in attach_ksyms_all() 250 opts.cnt = ksyms->filtered_cnt; in attach_ksyms_all() 254 free_kallsyms_local(ksyms); in attach_ksyms_all()
|
| /linux/net/mac80211/ |
| H A D | airtime.c | 24 #define MCS_SYMBOL_TIME(sgi, ksyms) \ argument 26 ((ksyms) * 4 * 18) / 20 : /* 3.6 us per sym */ \ 27 ((ksyms) * 4) /* 4.0 us per sym */ \ 43 #define HE_SYMBOL_TIME(gi, ksyms) \ argument 45 ((ksyms) * 16 * 17) / 20 : /* 13.6 us per sym */ \ 47 ((ksyms) * 16 * 18) / 20 : /* 14.4 us per sym */ \ 48 ((ksyms) * 16) /* 16.0 us per sym */ \
|
| /linux/arch/um/kernel/ |
| H A D | Makefile | 17 obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \
|
| /linux/tools/lib/bpf/ |
| H A D | gen_loader.c | 702 kdesc = &gen->ksyms[i]; in emit_bpf_find_by_name_kind() 709 kdesc = libbpf_reallocarray(gen->ksyms, gen->nr_ksyms + 1, sizeof(*kdesc)); 714 gen->ksyms = kdesc; in emit_bpf_kallsyms_lookup_name() 715 kdesc = &gen->ksyms[gen->nr_ksyms++]; in emit_bpf_kallsyms_lookup_name() 1020 kdesc = &gen->ksyms[i]; in info_blob_bswap() 1021 /* only close fds for typed ksyms and kfuncs */ in info_blob_bswap() 1034 free(gen->ksyms); in bpf_gen__prog_load() 1036 gen->ksyms = NULL; in bpf_gen__prog_load() 1178 /* successful or not, close btf module FDs used in extern ksyms and attach_btf_obj_fd */ in bpf_gen__map_update_elem()
|