Home
last modified time | relevance | path

Searched refs:sym_cnt (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/
Dtrace_helpers.c23 static int sym_cnt; variable
38 sym_cnt = 0; in load_kallsyms_refresh()
57 sym_cnt = i; in load_kallsyms_refresh()
58 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms_refresh()
68 if (sym_cnt) in load_kallsyms()
75 int start = 0, end = sym_cnt; in ksym_search()
79 if (sym_cnt <= 0) in ksym_search()
107 for (i = 0; i < sym_cnt; i++) { in ksym_get_addr()
/linux-6.6.21/tools/lib/bpf/
Dlinker.c275 size_t sym_cnt = symtab->sec_sz / sizeof(*sym); in add_new_sym() local
277 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym()
281 sym = &syms[sym_cnt]; in add_new_sym()
290 *sym_idx = sym_cnt; in add_new_sym()