Home
last modified time | relevance | path

Searched refs:jited_linfo (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/tools/lib/bpf/
Dbpf_prog_linfo.c27 const __u64 *jited_linfo; in dissect_jited_func() local
38 jited_linfo = raw_jited_linfo; in dissect_jited_func()
39 if (ksym_func[0] != *jited_linfo) in dissect_jited_func()
50 last_jited_linfo = *jited_linfo; in dissect_jited_func()
51 jited_linfo = raw_jited_linfo; in dissect_jited_func()
53 if (ksym_func[f] == *jited_linfo) { in dissect_jited_func()
70 } else if (*jited_linfo <= last_jited_linfo) { in dissect_jited_func()
186 const __u64 *jited_linfo; in bpf_prog_linfo__lfind_addr_func() local
199 jited_linfo = raw_jited_linfo; in bpf_prog_linfo__lfind_addr_func()
200 if (addr < *jited_linfo) in bpf_prog_linfo__lfind_addr_func()
[all …]
/linux-6.6.21/kernel/bpf/
Dcore.c163 prog->aux->jited_linfo = kvcalloc(prog->aux->nr_linfo, in bpf_prog_alloc_jited_linfo()
164 sizeof(*prog->aux->jited_linfo), in bpf_prog_alloc_jited_linfo()
166 if (!prog->aux->jited_linfo) in bpf_prog_alloc_jited_linfo()
174 if (prog->aux->jited_linfo && in bpf_prog_jit_attempt_done()
175 (!prog->jited || !prog->aux->jited_linfo[0])) { in bpf_prog_jit_attempt_done()
176 kvfree(prog->aux->jited_linfo); in bpf_prog_jit_attempt_done()
177 prog->aux->jited_linfo = NULL; in bpf_prog_jit_attempt_done()
213 void **jited_linfo; in bpf_prog_fill_jited_linfo() local
215 if (!prog->aux->jited_linfo) in bpf_prog_fill_jited_linfo()
224 jited_linfo = &prog->aux->jited_linfo[linfo_idx]; in bpf_prog_fill_jited_linfo()
[all …]
Dsyscall.c2149 kvfree(prog->aux->jited_linfo); in __bpf_prog_put_noref()
4546 if (prog->aux->jited_linfo) in bpf_prog_get_info_by_fd()
4559 line_addr = (unsigned long)prog->aux->jited_linfo[i]; in bpf_prog_get_info_by_fd()
Dverifier.c18529 func[i]->aux->jited_linfo = prog->aux->jited_linfo; in jit_subprogs()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf.c6546 __u64 *jited_linfo = NULL, *jited_ksyms = NULL; in test_get_linfo() local
6558 jited_rec_size = sizeof(*jited_linfo); in test_get_linfo()
6620 jited_linfo = calloc(jited_cnt, jited_rec_size); in test_get_linfo()
6624 if (CHECK(!jited_linfo || !jited_ksyms || !jited_func_lens, in test_get_linfo()
6626 jited_linfo, jited_ksyms, jited_func_lens)) { in test_get_linfo()
6633 info.jited_line_info = ptr_to_u64(jited_linfo); in test_get_linfo()
6706 if (CHECK(jited_linfo[0] != jited_ksyms[0], in test_get_linfo()
6708 (long)(jited_linfo[0]), (long)(jited_ksyms[0]))) { in test_get_linfo()
6718 jited_linfo[i] == jited_ksyms[ksyms_found]) { in test_get_linfo()
6725 if (CHECK(jited_linfo[i] <= jited_linfo[i - 1], in test_get_linfo()
[all …]
/linux-6.6.21/Documentation/bpf/
Ddrgn.rst185 .jited_linfo = (void **)0xffff8893fad48600,
/linux-6.6.21/include/linux/
Dbpf.h1462 void **jited_linfo; member