Searched refs:info_linear (Results 1 – 9 of 9) sorted by relevance
/tools/perf/util/ |
D | bpf-event.c | 37 struct bpf_prog_info_linear *info_linear; in machine__process_bpf_event_load() local 50 info_linear = info_node->info_linear; in machine__process_bpf_event_load() 52 for (i = 0; i < info_linear->info.nr_jited_ksyms; i++) { in machine__process_bpf_event_load() 53 u64 *addrs = (u64 *)(uintptr_t)(info_linear->info.jited_ksyms); in machine__process_bpf_event_load() 170 struct bpf_prog_info_linear *info_linear; in perf_event__synthesize_one_bpf_prog() local 194 info_linear = bpf_program__get_prog_info_linear(fd, arrays); in perf_event__synthesize_one_bpf_prog() 195 if (IS_ERR_OR_NULL(info_linear)) { in perf_event__synthesize_one_bpf_prog() 196 info_linear = NULL; in perf_event__synthesize_one_bpf_prog() 201 if (info_linear->info_len < offsetof(struct bpf_prog_info, prog_tags)) { in perf_event__synthesize_one_bpf_prog() 206 info = &info_linear->info; in perf_event__synthesize_one_bpf_prog() [all …]
|
D | env.c | 26 __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() 62 if (prog_id < node->info_linear->info.id) in perf_env__find_bpf_prog_info() 64 else if (prog_id > node->info_linear->info.id) in perf_env__find_bpf_prog_info()
|
D | bpf-event.h | 22 struct bpf_prog_info_linear *info_linear; member
|
D | header.c | 939 node->info_linear->data_len; in write_bpf_prog_info() 942 bpf_program__bpil_addr_to_offs(node->info_linear); in write_bpf_prog_info() 943 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info() 948 bpf_program__bpil_offs_to_addr(node->info_linear); in write_bpf_prog_info() 1549 __bpf_event__print_bpf_prog_info(&node->info_linear->info, in print_bpf_prog_info() 2672 struct bpf_prog_info_linear *info_linear; in process_bpf_prog_info() local 2691 info_linear = NULL; in process_bpf_prog_info() 2703 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + in process_bpf_prog_info() 2705 if (!info_linear) in process_bpf_prog_info() 2707 info_linear->info_len = sizeof(struct bpf_prog_info); in process_bpf_prog_info() [all …]
|
D | dso.c | 739 if (!node || !node->info_linear) { in bpf_read() 744 len = node->info_linear->info.jited_prog_len; in bpf_read() 745 buf = (u8 *)(uintptr_t)node->info_linear->info.jited_prog_insns; in bpf_read() 760 if (!node || !node->info_linear) { in bpf_size() 765 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
|
D | annotate.c | 1716 struct bpf_prog_info_linear *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() 1807 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf()
|
/tools/bpf/bpftool/ |
D | prog.c | 413 struct bpf_prog_info_linear *info_linear; in do_dump() local 487 info_linear = bpf_program__get_prog_info_linear(fd, arrays); in do_dump() 489 if (IS_ERR_OR_NULL(info_linear)) { in do_dump() 494 info = &info_linear->info; in do_dump() 646 free(info_linear); in do_dump() 650 free(info_linear); in do_dump()
|
/tools/lib/bpf/ |
D | libbpf.c | 5766 struct bpf_prog_info_linear *info_linear; in bpf_program__get_prog_info_linear() local 5810 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + data_len); in bpf_program__get_prog_info_linear() 5811 if (!info_linear) in bpf_program__get_prog_info_linear() 5815 info_linear->arrays = arrays; in bpf_program__get_prog_info_linear() 5816 memset(&info_linear->info, 0, sizeof(info)); in bpf_program__get_prog_info_linear() 5817 ptr = info_linear->data; in bpf_program__get_prog_info_linear() 5829 bpf_prog_info_set_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear() 5831 bpf_prog_info_set_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear() 5833 bpf_prog_info_set_offset_u64(&info_linear->info, in bpf_program__get_prog_info_linear() 5840 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in bpf_program__get_prog_info_linear() [all …]
|
D | libbpf.h | 523 bpf_program__bpil_addr_to_offs(struct bpf_prog_info_linear *info_linear); 526 bpf_program__bpil_offs_to_addr(struct bpf_prog_info_linear *info_linear);
|