| /tools/testing/selftests/bpf/prog_tests/ |
| A D | kprobe_multi_test.c | 134 opts.kprobe_multi.syms = syms; in test_link_api_syms() 212 opts.syms = syms; in test_attach_api_syms() 254 opts.syms = syms; in test_attach_api_fails() 269 opts.syms = NULL; in test_attach_api_fails() 284 opts.syms = NULL; in test_attach_api_fails() 299 opts.syms = NULL; in test_attach_api_fails() 564 *symsp = syms; in get_syms() 572 free(syms); in get_syms() 680 opts.syms = (const char **) syms; in test_kprobe_multi_bench_attach() 687 if (syms) in test_kprobe_multi_bench_attach() [all …]
|
| A D | kprobe_multi_testmod_test.c | 71 const char *syms[3] = { in test_testmod_attach_api_syms() local 77 opts.syms = syms; in test_testmod_attach_api_syms() 78 opts.cnt = ARRAY_SIZE(syms); in test_testmod_attach_api_syms()
|
| A D | uprobe_multi_test.c | 361 const char *syms[3] = { in test_attach_api_syms() local 367 opts.syms = syms; in test_attach_api_syms() 368 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 565 const char *syms[4] = { in attach_uprobe_fail_trap() local 572 opts.syms = syms; in attach_uprobe_fail_trap() 573 opts.cnt = ARRAY_SIZE(syms); in attach_uprobe_fail_trap() 594 const char *syms[3] = { in attach_uprobe_fail_refctr() local 606 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &syms, in attach_uprobe_fail_refctr() 666 const char *syms[3] = { in __test_link_api() local 674 err = elf_resolve_syms_offsets(path, 3, syms, (unsigned long **) &offsets, STT_FUNC); in __test_link_api() [all …]
|
| A D | bpf_cookie.c | 183 const char *syms[8] = { in kprobe_multi_attach_api_subtest() local 211 opts.syms = syms; in kprobe_multi_attach_api_subtest() 212 opts.cnt = ARRAY_SIZE(syms); in kprobe_multi_attach_api_subtest() 276 const char *syms[3] = { in uprobe_multi_attach_api_subtest() local 287 opts.syms = syms; in uprobe_multi_attach_api_subtest() 288 opts.cnt = ARRAY_SIZE(syms); in uprobe_multi_attach_api_subtest()
|
| A D | fill_link_info.c | 381 opts.syms = kmulti_syms; in test_kprobe_multi_fill_link_info() 547 const char *syms[3] = { in test_uprobe_multi_fill_link_info() local 571 err = elf_resolve_syms_offsets("/proc/self/exe", 3, syms, in test_uprobe_multi_fill_link_info() 576 opts.syms = syms; in test_uprobe_multi_fill_link_info() 579 opts.cnt = ARRAY_SIZE(syms); in test_uprobe_multi_fill_link_info()
|
| /tools/testing/selftests/bpf/ |
| A D | trace_helpers.c | 26 struct ksym *syms; member 43 ksyms->syms[ksyms->sym_cnt].name = tmp; in ksyms__add_symbol() 55 if (!ksyms->syms) { in free_kallsyms_local() 61 free(ksyms->syms[i].name); in free_kallsyms_local() 62 free(ksyms->syms); in free_kallsyms_local() 151 return &ksyms->syms[mid]; in ksym_search_local() 155 key < ksyms->syms[start].addr) in ksym_search_local() 157 return &ksyms->syms[start - 1]; in ksym_search_local() 160 return &ksyms->syms[0]; in ksym_search_local() 172 ks = &ksyms->syms[mid]; in search_kallsyms_custom_local() [all …]
|
| /tools/perf/util/ |
| A D | print-events.c | 243 unsigned int type, const struct event_symbol *syms, in print_symbol_events() argument 258 if (syms[i].symbol == NULL) in print_symbol_events() 264 if (strlen(syms[i].alias)) { in print_symbol_events() 267 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms[i].symbol, syms[i].alias); in print_symbol_events() 270 strlist__add(evt_name_list, syms[i].symbol); in print_symbol_events()
|
| A D | srcline.c | 208 asymbol **syms; member 230 asymbol **syms; in slurp_symtab() local 244 syms = malloc(storage); in slurp_symtab() 246 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab() 248 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab() 251 free(syms); in slurp_symtab() 255 a2l->syms = syms; in slurp_symtab() 292 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section() 340 zfree(&a2l->syms); in addr2line_cleanup()
|
| A D | print-events.h | 38 unsigned int type, const struct event_symbol *syms,
|
| A D | lock-contention.h | 16 char **syms; member
|
| A D | symbol-elf.c | 100 for (idx = 0, gelf_getsym(syms, idx, &sym);\ 102 idx++, gelf_getsym(syms, idx, &sym)) 623 Elf_Data *syms, *symstrs; in dso__synthesize_plt_symbols() local 717 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols() 718 if (syms == NULL) in dso__synthesize_plt_symbols() 1552 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal() local 1582 syms = elf_getdata(sec, NULL); in dso__load_sym_internal() 1583 if (syms == NULL) in dso__load_sym_internal() 2162 struct list_head syms; member 2210 list_add_tail(&s->node, &kci->syms); in kcore_copy__new_sym() [all …]
|
| A D | probe-event.c | 3051 struct symbol **syms) in find_probe_functions() argument 3085 if (syms && found < probe_conf.max_probes) in find_probe_functions() 3086 syms[found - 1] = sym; in find_probe_functions() 3121 struct symbol **syms = NULL; in find_probe_trace_events_from_map() local 3135 syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); in find_probe_trace_events_from_map() 3136 if (!syms) { in find_probe_trace_events_from_map() 3145 num_matched_functions = find_probe_functions(map, pp->function, syms); in find_probe_trace_events_from_map() 3190 sym = syms[j]; in find_probe_trace_events_from_map() 3197 if (sym->start == syms[i]->start) { in find_probe_trace_events_from_map() 3280 free(syms); in find_probe_trace_events_from_map()
|
| A D | bpf_lock_contention.c | 242 con->filters->syms[i], in lock_contention_prepare() 246 con->filters->syms[i]); in lock_contention_prepare()
|
| A D | machine.c | 1072 const char *syms[] = { in find_entry_trampoline() local 1083 for (i = 0; i < ARRAY_SIZE(syms); i++) { in find_entry_trampoline() 1084 if (!strcmp(sym->name, syms[i])) in find_entry_trampoline()
|
| /tools/lib/bpf/ |
| A D | elf.c | 86 Elf_Data *syms; member 123 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new() 124 if (!iter->syms) { in elf_sym_iter_new() 129 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new() 166 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next() 409 const char **syms, unsigned long **poffsets, in elf_resolve_syms_offsets() argument 431 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
|
| A D | Makefile | 122 VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \ 190 readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \
|
| A D | linker.c | 339 Elf64_Sym *syms, *sym; in add_new_sym() local 342 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym() 343 if (!syms) in add_new_sym() 346 sym = &syms[sym_cnt]; in add_new_sym() 349 symtab->raw_data = syms; in add_new_sym() 1442 Elf64_Sym *syms = symtab->raw_data; in get_sym_by_idx() local 1444 return &syms[sym_idx]; in get_sym_by_idx() 1466 struct glob_sym *syms, *sym; in add_glob_sym() local 1470 if (!syms) in add_glob_sym() 1473 sym = &syms[linker->glob_sym_cnt]; in add_glob_sym() [all …]
|
| A D | libbpf.c | 11473 char **syms; member 11578 qsort(syms, cnt, sizeof(*syms), avail_func_cmp); in libbpf_available_kallsyms_parse() 11580 data.syms = syms; in libbpf_available_kallsyms_parse() 11591 free(syms); in libbpf_available_kallsyms_parse() 11663 const char **syms; in bpf_program__attach_kprobe_multi_opts() local 11676 syms = OPTS_GET(opts, syms, false); in bpf_program__attach_kprobe_multi_opts() 11690 if (addrs && syms) in bpf_program__attach_kprobe_multi_opts() 11720 lopts.kprobe_multi.syms = syms; in bpf_program__attach_kprobe_multi_opts() 12124 const char **syms; in bpf_program__attach_uprobe_multi() local 12137 syms = OPTS_GET(opts, syms, NULL); in bpf_program__attach_uprobe_multi() [all …]
|
| A D | bpf.h | 409 const char **syms; member
|
| A D | libbpf.h | 559 const char **syms; member 586 const char **syms; member
|
| A D | libbpf_internal.h | 732 const char **syms, unsigned long **poffsets,
|
| A D | bpf.c | 773 attr.link_create.kprobe_multi.syms = ptr_to_u64(OPTS_GET(opts, kprobe_multi.syms, 0)); in bpf_link_create()
|
| /tools/perf/tests/ |
| A D | hists_common.c | 76 struct fake_sym *syms; member 140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
|
| /tools/perf/ |
| A D | builtin-lock.c | 995 filters.syms[i], in report_lock_contention_begin_event() 999 filters.syms[i]); in report_lock_contention_begin_event() 1541 free(filters.syms[i]); in lock_filter_finish() 1543 zfree(&filters.syms); in lock_filter_finish() 2365 tmp = realloc(filters.syms, (filters.nr_syms + 1) * sizeof(*filters.syms)); in add_lock_sym() 2373 filters.syms = tmp; in add_lock_sym()
|
| /tools/include/uapi/linux/ |
| A D | bpf.h | 1773 __aligned_u64 syms; member
|