Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/util/
H A Dbpf-utils.c114 struct perf_bpil *info_linear; in get_bpf_prog_info_linear() local
156 info_linear = malloc(sizeof(struct perf_bpil) + data_len); in get_bpf_prog_info_linear()
157 if (!info_linear) in get_bpf_prog_info_linear()
161 info_linear->arrays = arrays; in get_bpf_prog_info_linear()
162 memset(&info_linear->info, 0, sizeof(info)); in get_bpf_prog_info_linear()
163 ptr = info_linear->data; in get_bpf_prog_info_linear()
175 bpf_prog_info_set_offset_u32(&info_linear->info, in get_bpf_prog_info_linear()
177 bpf_prog_info_set_offset_u32(&info_linear->info, in get_bpf_prog_info_linear()
179 bpf_prog_info_set_offset_u64(&info_linear->info, in get_bpf_prog_info_linear()
186 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in get_bpf_prog_info_linear()
[all …]
H A Dbpf-event.c41 struct perf_bpil *info_linear; in machine__process_bpf_event_load() local
52 info_linear = info_node->info_linear; in machine__process_bpf_event_load()
54 for (i = 0; i < info_linear->info.nr_jited_ksyms; i++) { in machine__process_bpf_event_load()
55 u64 *addrs = (u64 *)(uintptr_t)(info_linear->info.jited_ksyms); in machine__process_bpf_event_load()
174 struct perf_bpil *info_linear; in perf_event__synthesize_one_bpf_prog() local
196 info_linear = get_bpf_prog_info_linear(fd, arrays); in perf_event__synthesize_one_bpf_prog()
197 if (IS_ERR_OR_NULL(info_linear)) { in perf_event__synthesize_one_bpf_prog()
198 info_linear = NULL; in perf_event__synthesize_one_bpf_prog()
203 if (info_linear->info_len < offsetof(struct bpf_prog_info, prog_tags)) { in perf_event__synthesize_one_bpf_prog()
204 free(info_linear); in perf_event__synthesize_one_bpf_prog()
[all …]
H A Dbpf-utils.h70 bpil_addr_to_offs(struct perf_bpil *info_linear);
73 bpil_offs_to_addr(struct perf_bpil *info_linear);
H 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()
H A Denv.c33 __u32 prog_id = info_node->info_linear->info.id; in __perf_env__insert_bpf_prog_info()
43 if (prog_id < node->info_linear->info.id) { in __perf_env__insert_bpf_prog_info()
45 } else if (prog_id > node->info_linear->info.id) { in __perf_env__insert_bpf_prog_info()
69 if (prog_id < node->info_linear->info.id) in perf_env__find_bpf_prog_info()
71 else if (prog_id > node->info_linear->info.id) in perf_env__find_bpf_prog_info()
167 zfree(&node->info_linear); in perf_env__purge_bpf()
H A Dbpf-event.h21 struct perf_bpil *info_linear; member
H A Dheader.c1066 node->info_linear->data_len; in write_bpf_prog_info()
1069 bpil_addr_to_offs(node->info_linear); in write_bpf_prog_info()
1070 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info()
1075 bpil_offs_to_addr(node->info_linear); in write_bpf_prog_info()
1852 __bpf_event__print_bpf_prog_info(&node->info_linear->info, in print_bpf_prog_info()
3127 struct perf_bpil *info_linear; in process_bpf_prog_info() local
3144 info_linear = NULL; in process_bpf_prog_info()
3156 info_linear = malloc(sizeof(struct perf_bpil) + in process_bpf_prog_info()
3158 if (!info_linear) in process_bpf_prog_info()
3160 info_linear->info_len = sizeof(struct bpf_prog_info); in process_bpf_prog_info()
[all …]
H A Ddso.c804 if (!node || !node->info_linear) { in bpf_read()
809 len = node->info_linear->info.jited_prog_len; in bpf_read()
810 buf = (u8 *)(uintptr_t)node->info_linear->info.jited_prog_insns; in bpf_read()
825 if (!node || !node->info_linear) { in bpf_size()
830 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
H A Dannotate.c1859 struct perf_bpil *info_linear; in symbol__disassemble_bpf() local
1905 info_linear = info_node->info_linear; in symbol__disassemble_bpf()
1908 info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns); in symbol__disassemble_bpf()
1909 info.buffer_length = info_linear->info.jited_prog_len; in symbol__disassemble_bpf()
1911 if (info_linear->info.nr_line_info) in symbol__disassemble_bpf()
1912 prog_linfo = bpf_prog_linfo__new(&info_linear->info); in symbol__disassemble_bpf()
1914 if (info_linear->info.btf_id) { in symbol__disassemble_bpf()
1918 info_linear->info.btf_id); in symbol__disassemble_bpf()
1945 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf()