Searched refs:info_linear (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/tools/perf/util/ |
D | bpf-utils.c | 114 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 …]
|
D | bpf-event.c | 107 struct perf_bpil *info_linear; in machine__process_bpf_event_load() local 118 info_linear = info_node->info_linear; in machine__process_bpf_event_load() 120 for (i = 0; i < info_linear->info.nr_jited_ksyms; i++) { in machine__process_bpf_event_load() 121 u64 *addrs = (u64 *)(uintptr_t)(info_linear->info.jited_ksyms); in machine__process_bpf_event_load() 238 struct perf_bpil *info_linear; in perf_event__synthesize_one_bpf_prog() local 260 info_linear = get_bpf_prog_info_linear(fd, arrays); in perf_event__synthesize_one_bpf_prog() 261 if (IS_ERR_OR_NULL(info_linear)) { in perf_event__synthesize_one_bpf_prog() 262 info_linear = NULL; in perf_event__synthesize_one_bpf_prog() 267 if (info_linear->info_len < offsetof(struct bpf_prog_info, prog_tags)) { in perf_event__synthesize_one_bpf_prog() 268 free(info_linear); in perf_event__synthesize_one_bpf_prog() [all …]
|
D | bpf-utils.h | 70 bpil_addr_to_offs(struct perf_bpil *info_linear); 73 bpil_offs_to_addr(struct perf_bpil *info_linear);
|
D | bpf_counter.c | 66 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()
|
D | env.c | 25 __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()
|
D | bpf-event.h | 21 struct perf_bpil *info_linear; member
|
D | header.c | 1062 node->info_linear->data_len; in write_bpf_prog_info() 1065 bpil_addr_to_offs(node->info_linear); in write_bpf_prog_info() 1066 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info() 1071 bpil_offs_to_addr(node->info_linear); in write_bpf_prog_info() 1812 bpf_event__print_bpf_prog_info(&node->info_linear->info, in print_bpf_prog_info() 3086 struct perf_bpil *info_linear; in process_bpf_prog_info() local 3103 info_linear = NULL; in process_bpf_prog_info() 3115 info_linear = malloc(sizeof(struct perf_bpil) + in process_bpf_prog_info() 3117 if (!info_linear) in process_bpf_prog_info() 3119 info_linear->info_len = sizeof(struct bpf_prog_info); in process_bpf_prog_info() [all …]
|
D | dso.c | 766 if (!node || !node->info_linear) { in bpf_read() 771 len = node->info_linear->info.jited_prog_len; in bpf_read() 772 buf = (u8 *)(uintptr_t)node->info_linear->info.jited_prog_insns; in bpf_read() 787 if (!node || !node->info_linear) { in bpf_size() 792 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
|
D | annotate.c | 1736 struct perf_bpil *info_linear; in symbol__disassemble_bpf() local 1779 info_linear = info_node->info_linear; in symbol__disassemble_bpf() 1782 info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns); in symbol__disassemble_bpf() 1783 info.buffer_length = info_linear->info.jited_prog_len; in symbol__disassemble_bpf() 1785 if (info_linear->info.nr_line_info) in symbol__disassemble_bpf() 1786 prog_linfo = bpf_prog_linfo__new(&info_linear->info); in symbol__disassemble_bpf() 1788 if (info_linear->info.btf_id) { in symbol__disassemble_bpf() 1792 info_linear->info.btf_id); in symbol__disassemble_bpf() 1818 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf()
|