Home
last modified time | relevance | path

Searched refs:syms (Results 1 – 10 of 10) sorted by relevance

/tools/testing/selftests/bpf/
Dtrace_helpers.c17 static struct ksym syms[MAX_SYMS]; variable
41 syms[i].addr = (long) addr; in load_kallsyms()
42 syms[i].name = strdup(func); in load_kallsyms()
47 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms()
63 result = key - syms[mid].addr; in ksym_search()
69 return &syms[mid]; in ksym_search()
72 if (start >= 1 && syms[start - 1].addr < key && in ksym_search()
73 key < syms[start].addr) in ksym_search()
75 return &syms[start - 1]; in ksym_search()
78 return &syms[0]; in ksym_search()
[all …]
/tools/perf/util/
Dsrcline.c140 asymbol **syms; member
162 asymbol **syms; in slurp_symtab() local
176 syms = malloc(storage); in slurp_symtab()
178 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
180 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
183 free(syms); in slurp_symtab()
187 a2l->syms = syms; in slurp_symtab()
224 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
272 zfree(&a2l->syms); in addr2line_cleanup()
Dsymbol-elf.c112 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument
113 for (idx = 0, gelf_getsym(syms, idx, &sym);\
115 idx++, gelf_getsym(syms, idx, &sym))
323 Elf_Data *reldata, *syms, *symstrs; in dso__synthesize_plt_symbols() local
369 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
370 if (syms == NULL) in dso__synthesize_plt_symbols()
422 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
448 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
1119 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal() local
1146 syms = elf_getdata(sec, NULL); in dso__load_sym_internal()
[all …]
Dparse-events.c2929 struct event_symbol *syms, unsigned max, in print_symbol_events() argument
2942 syms -= max; in print_symbol_events()
2945 for (i = 0; i < max; i++, syms++) { in print_symbol_events()
2950 if (syms->symbol == NULL) in print_symbol_events()
2953 if (event_glob != NULL && !(strglobmatch(syms->symbol, event_glob) || in print_symbol_events()
2954 (syms->alias && strglobmatch(syms->alias, event_glob)))) in print_symbol_events()
2965 if (!name_only && strlen(syms->alias)) in print_symbol_events()
2966 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms->symbol, syms->alias); in print_symbol_events()
2968 strlcpy(name, syms->symbol, MAX_NAME_LEN); in print_symbol_events()
Dparse-events.h231 struct event_symbol *syms, unsigned max,
Dprobe-event.c2947 struct symbol **syms) in find_probe_functions() argument
2981 if (syms && found < probe_conf.max_probes) in find_probe_functions()
2982 syms[found - 1] = sym; in find_probe_functions()
3017 struct symbol **syms = NULL; in find_probe_trace_events_from_map() local
3031 syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); in find_probe_trace_events_from_map()
3032 if (!syms) { in find_probe_trace_events_from_map()
3041 num_matched_functions = find_probe_functions(map, pp->function, syms); in find_probe_trace_events_from_map()
3086 sym = syms[j]; in find_probe_trace_events_from_map()
3093 if (sym->start == syms[i]->start) { in find_probe_trace_events_from_map()
3176 free(syms); in find_probe_trace_events_from_map()
Dmachine.c1107 const char *syms[] = { in find_entry_trampoline() local
1118 for (i = 0; i < ARRAY_SIZE(syms); i++) { in find_entry_trampoline()
1119 if (!strcmp(sym->name, syms[i])) in find_entry_trampoline()
/tools/perf/tests/
Dhists_common.c76 struct fake_sym *syms; member
140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
/tools/lib/bpf/
DMakefile127 VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \
196 readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \
Dlinker.c275 Elf64_Sym *syms, *sym; in add_new_sym() local
278 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym()
279 if (!syms) in add_new_sym()
282 sym = &syms[sym_cnt]; in add_new_sym()
285 symtab->raw_data = syms; in add_new_sym()
1251 Elf64_Sym *syms = symtab->raw_data; in get_sym_by_idx() local
1253 return &syms[sym_idx]; in get_sym_by_idx()
1275 struct glob_sym *syms, *sym; in add_glob_sym() local
1277 syms = libbpf_reallocarray(linker->glob_syms, linker->glob_sym_cnt + 1, in add_glob_sym()
1279 if (!syms) in add_glob_sym()
[all …]