Home
last modified time | relevance | path

Searched refs:info_linear (Results 1 – 12 of 12) sorted by relevance

/linux/tools/perf/util/
A Dbpf-utils.c114 struct perf_bpil *info_linear; in get_bpf_prog_info_linear() local
158 if (!info_linear) in get_bpf_prog_info_linear()
162 info_linear->arrays = arrays; in get_bpf_prog_info_linear()
163 memset(&info_linear->info, 0, sizeof(info)); in get_bpf_prog_info_linear()
164 ptr = info_linear->data; in get_bpf_prog_info_linear()
190 free(info_linear); in get_bpf_prog_info_linear()
218 info_linear->data_len = data_len; in get_bpf_prog_info_linear()
220 return info_linear; in get_bpf_prog_info_linear()
231 if ((info_linear->arrays & (1UL << i)) == 0) in bpil_addr_to_offs()
237 offs = addr - ptr_to_u64(info_linear->data); in bpil_addr_to_offs()
[all …]
A Dbpf-event.c90 info_linear = info_node->info_linear; in machine__process_bpf_event_load()
234 info_linear = NULL; in perf_event__synthesize_one_bpf_prog()
240 free(info_linear); in perf_event__synthesize_one_bpf_prog()
247 free(info_linear); in perf_event__synthesize_one_bpf_prog()
255 free(info_linear); in perf_event__synthesize_one_bpf_prog()
264 free(info_linear); in perf_event__synthesize_one_bpf_prog()
326 info_node->info_linear = info_linear; in perf_event__synthesize_one_bpf_prog()
328 info_linear = NULL; in perf_event__synthesize_one_bpf_prog()
339 free(info_linear); in perf_event__synthesize_one_bpf_prog()
514 info_node->info_linear = info_linear; in perf_env__add_bpf_info()
[all …]
A Dbpf-utils.h70 bpil_addr_to_offs(struct perf_bpil *info_linear);
73 bpil_offs_to_addr(struct perf_bpil *info_linear);
A Dbpf_counter.c66 struct perf_bpil *info_linear; in bpf_target_prog_name() local
71 info_linear = get_bpf_prog_info_linear(tgt_fd, 1UL << PERF_BPIL_FUNC_INFO); in bpf_target_prog_name()
72 if (IS_ERR_OR_NULL(info_linear)) { in bpf_target_prog_name()
77 if (info_linear->info.btf_id == 0) { in bpf_target_prog_name()
82 btf = btf__load_from_kernel_by_id(info_linear->info.btf_id); in bpf_target_prog_name()
88 func_info = u64_to_ptr(info_linear->info.func_info); in bpf_target_prog_name()
92 info_linear->info.btf_id, func_info[0].type_id); in bpf_target_prog_name()
98 free(info_linear); in bpf_target_prog_name()
A Denv.c25 __u32 prog_id = info_node->info_linear->info.id; in perf_env__insert_bpf_prog_info()
36 if (prog_id < node->info_linear->info.id) { in perf_env__insert_bpf_prog_info()
38 } else if (prog_id > node->info_linear->info.id) { in perf_env__insert_bpf_prog_info()
64 if (prog_id < node->info_linear->info.id) in perf_env__find_bpf_prog_info()
66 else if (prog_id > node->info_linear->info.id) in perf_env__find_bpf_prog_info()
152 free(node->info_linear); in perf_env__purge_bpf()
A Dbpf-event.h22 struct perf_bpil *info_linear; member
A Dheader.c1011 node->info_linear->data_len; in write_bpf_prog_info()
1014 bpil_addr_to_offs(node->info_linear); in write_bpf_prog_info()
1015 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info()
1020 bpil_offs_to_addr(node->info_linear); in write_bpf_prog_info()
3025 struct perf_bpil *info_linear; in process_bpf_prog_info() local
3042 info_linear = NULL; in process_bpf_prog_info()
3056 if (!info_linear) in process_bpf_prog_info()
3059 info_linear->data_len = data_len; in process_bpf_prog_info()
3076 bpil_offs_to_addr(info_linear); in process_bpf_prog_info()
3077 info_node->info_linear = info_linear; in process_bpf_prog_info()
[all …]
A Ddso.c750 if (!node || !node->info_linear) { in bpf_read()
755 len = node->info_linear->info.jited_prog_len; in bpf_read()
756 buf = (u8 *)(uintptr_t)node->info_linear->info.jited_prog_insns; in bpf_read()
771 if (!node || !node->info_linear) { in bpf_size()
776 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
A Dannotate.c1724 struct perf_bpil *info_linear; in symbol__disassemble_bpf() local
1767 info_linear = info_node->info_linear; in symbol__disassemble_bpf()
1770 info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns); in symbol__disassemble_bpf()
1771 info.buffer_length = info_linear->info.jited_prog_len; in symbol__disassemble_bpf()
1773 if (info_linear->info.nr_line_info) in symbol__disassemble_bpf()
1774 prog_linfo = bpf_prog_linfo__new(&info_linear->info); in symbol__disassemble_bpf()
1776 if (info_linear->info.btf_id) { in symbol__disassemble_bpf()
1780 info_linear->info.btf_id); in symbol__disassemble_bpf()
1806 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf()
/linux/tools/bpf/bpftool/
A Dprog.c806 struct bpf_prog_info_linear *info_linear; in do_dump() local
890 if (IS_ERR_OR_NULL(info_linear)) { in do_dump()
897 print_prog_header_json(&info_linear->info); in do_dump()
900 print_prog_header_plain(&info_linear->info); in do_dump()
911 free(info_linear); in do_dump()
2019 struct bpf_prog_info_linear *info_linear; in profile_target_name() local
2025 info_linear = bpf_program__get_prog_info_linear( in profile_target_name()
2027 if (IS_ERR_OR_NULL(info_linear)) { in profile_target_name()
2032 if (info_linear->info.btf_id == 0) { in profile_target_name()
2043 func_info = u64_to_ptr(info_linear->info.func_info); in profile_target_name()
[all …]
/linux/tools/lib/bpf/
A Dlibbpf.c11013 struct bpf_prog_info_linear *info_linear; in bpf_program__get_prog_info_linear() local
11058 if (!info_linear) in bpf_program__get_prog_info_linear()
11062 info_linear->arrays = arrays; in bpf_program__get_prog_info_linear()
11063 memset(&info_linear->info, 0, sizeof(info)); in bpf_program__get_prog_info_linear()
11064 ptr = info_linear->data; in bpf_program__get_prog_info_linear()
11090 free(info_linear); in bpf_program__get_prog_info_linear()
11118 info_linear->data_len = data_len; in bpf_program__get_prog_info_linear()
11120 return info_linear; in bpf_program__get_prog_info_linear()
11131 if ((info_linear->arrays & (1UL << i)) == 0) in bpf_program__bpil_addr_to_offs()
11137 offs = addr - ptr_to_u64(info_linear->data); in bpf_program__bpil_addr_to_offs()
[all …]
A Dlibbpf.h925 bpf_program__bpil_addr_to_offs(struct bpf_prog_info_linear *info_linear);
928 bpf_program__bpil_offs_to_addr(struct bpf_prog_info_linear *info_linear);

Completed in 55 milliseconds