Home
last modified time | relevance | path

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

/tools/perf/util/
Dbpf-event.c53 struct bpf_prog_info_linear *info_linear; in machine__process_bpf_event_load() local
66 info_linear = info_node->info_linear; in machine__process_bpf_event_load()
68 for (i = 0; i < info_linear->info.nr_jited_ksyms; i++) { in machine__process_bpf_event_load()
69 u64 *addrs = (u64 *)(uintptr_t)(info_linear->info.jited_ksyms); in machine__process_bpf_event_load()
184 struct bpf_prog_info_linear *info_linear; in perf_event__synthesize_one_bpf_prog() local
208 info_linear = bpf_program__get_prog_info_linear(fd, arrays); in perf_event__synthesize_one_bpf_prog()
209 if (IS_ERR_OR_NULL(info_linear)) { in perf_event__synthesize_one_bpf_prog()
210 info_linear = NULL; in perf_event__synthesize_one_bpf_prog()
215 if (info_linear->info_len < offsetof(struct bpf_prog_info, prog_tags)) { in perf_event__synthesize_one_bpf_prog()
216 free(info_linear); in perf_event__synthesize_one_bpf_prog()
[all …]
Dbpf_counter.c64 struct bpf_prog_info_linear *info_linear; in bpf_target_prog_name() local
70 info_linear = bpf_program__get_prog_info_linear( 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()
Denv.c31 __u32 prog_id = info_node->info_linear->info.id; in __perf_env__insert_bpf_prog_info()
41 if (prog_id < node->info_linear->info.id) { in __perf_env__insert_bpf_prog_info()
43 } else if (prog_id > node->info_linear->info.id) { in __perf_env__insert_bpf_prog_info()
67 if (prog_id < node->info_linear->info.id) in perf_env__find_bpf_prog_info()
69 else if (prog_id > node->info_linear->info.id) in perf_env__find_bpf_prog_info()
165 free(node->info_linear); in perf_env__purge_bpf()
Dbpf-event.h22 struct bpf_prog_info_linear *info_linear; member
Dheader.c1010 node->info_linear->data_len; in write_bpf_prog_info()
1013 bpf_program__bpil_addr_to_offs(node->info_linear); in write_bpf_prog_info()
1014 ret = do_write(ff, node->info_linear, len); in write_bpf_prog_info()
1019 bpf_program__bpil_offs_to_addr(node->info_linear); in write_bpf_prog_info()
1738 __bpf_event__print_bpf_prog_info(&node->info_linear->info, in print_bpf_prog_info()
3021 struct bpf_prog_info_linear *info_linear; in process_bpf_prog_info() local
3040 info_linear = NULL; in process_bpf_prog_info()
3052 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + in process_bpf_prog_info()
3054 if (!info_linear) in process_bpf_prog_info()
3056 info_linear->info_len = sizeof(struct bpf_prog_info); in process_bpf_prog_info()
[all …]
Ddso.c749 if (!node || !node->info_linear) { in bpf_read()
754 len = node->info_linear->info.jited_prog_len; in bpf_read()
755 buf = (u8 *)(uintptr_t)node->info_linear->info.jited_prog_insns; in bpf_read()
770 if (!node || !node->info_linear) { in bpf_size()
775 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
Dannotate.c1704 struct bpf_prog_info_linear *info_linear; in symbol__disassemble_bpf() local
1755 info_linear = info_node->info_linear; in symbol__disassemble_bpf()
1758 info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns); in symbol__disassemble_bpf()
1759 info.buffer_length = info_linear->info.jited_prog_len; in symbol__disassemble_bpf()
1761 if (info_linear->info.nr_line_info) in symbol__disassemble_bpf()
1762 prog_linfo = bpf_prog_linfo__new(&info_linear->info); in symbol__disassemble_bpf()
1764 if (info_linear->info.btf_id) { in symbol__disassemble_bpf()
1768 info_linear->info.btf_id); in symbol__disassemble_bpf()
1795 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf()
/tools/bpf/bpftool/
Dprog.c799 struct bpf_prog_info_linear *info_linear; in do_dump() local
882 info_linear = bpf_program__get_prog_info_linear(fds[i], arrays); in do_dump()
883 if (IS_ERR_OR_NULL(info_linear)) { in do_dump()
890 print_prog_header_json(&info_linear->info); in do_dump()
893 print_prog_header_plain(&info_linear->info); in do_dump()
896 err = prog_dump(&info_linear->info, mode, filepath, opcodes, in do_dump()
904 free(info_linear); in do_dump()
2012 struct bpf_prog_info_linear *info_linear; in profile_target_name() local
2018 info_linear = bpf_program__get_prog_info_linear( in profile_target_name()
2020 if (IS_ERR_OR_NULL(info_linear)) { in profile_target_name()
[all …]
/tools/lib/bpf/
Dlibbpf.c8380 struct bpf_prog_info_linear *info_linear; in libbpf_find_prog_btf_id() local
8385 info_linear = bpf_program__get_prog_info_linear(attach_prog_fd, 0); in libbpf_find_prog_btf_id()
8386 err = libbpf_get_error(info_linear); in libbpf_find_prog_btf_id()
8394 info = &info_linear->info; in libbpf_find_prog_btf_id()
8411 free(info_linear); in libbpf_find_prog_btf_id()
10386 struct bpf_prog_info_linear *info_linear; in bpf_program__get_prog_info_linear() local
10430 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + data_len); in bpf_program__get_prog_info_linear()
10431 if (!info_linear) in bpf_program__get_prog_info_linear()
10435 info_linear->arrays = arrays; in bpf_program__get_prog_info_linear()
10436 memset(&info_linear->info, 0, sizeof(info)); in bpf_program__get_prog_info_linear()
[all …]
Dlibbpf.h820 bpf_program__bpil_addr_to_offs(struct bpf_prog_info_linear *info_linear);
823 bpf_program__bpil_offs_to_addr(struct bpf_prog_info_linear *info_linear);