Searched refs:btf_id (Results 1 – 10 of 10) sorted by relevance
/tools/perf/util/ |
D | bpf-event.c | 94 u32 btf_id, in perf_env__fetch_btf() argument 107 node->id = btf_id; in perf_env__fetch_btf() 215 if (info->btf_id && info->nr_func_info && info->func_info_rec_size) { in perf_event__synthesize_one_bpf_prog() 222 if (btf__get_from_id(info->btf_id, &btf)) { in perf_event__synthesize_one_bpf_prog() 223 pr_debug("%s: failed to get BTF of id %u, aborting\n", __func__, info->btf_id); in perf_event__synthesize_one_bpf_prog() 228 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog() 354 u32 btf_id; in perf_env__add_bpf_info() local 375 btf_id = info_linear->info.btf_id; in perf_env__add_bpf_info() 384 if (btf_id == 0) in perf_env__add_bpf_info() 387 if (btf__get_from_id(btf_id, &btf)) { in perf_env__add_bpf_info() [all …]
|
D | env.c | 89 __u32 btf_id = btf_node->id; in __perf_env__insert_btf() local 98 if (btf_id < node->id) { in __perf_env__insert_btf() 100 } else if (btf_id > node->id) { in __perf_env__insert_btf() 103 pr_debug("duplicated btf %u\n", btf_id); in __perf_env__insert_btf() 114 struct btf_node *perf_env__find_btf(struct perf_env *env, __u32 btf_id) in perf_env__find_btf() argument 119 res = __perf_env__find_btf(env, btf_id); in perf_env__find_btf() 124 struct btf_node *__perf_env__find_btf(struct perf_env *env, __u32 btf_id) in __perf_env__find_btf() argument 133 if (btf_id < node->id) in __perf_env__find_btf() 135 else if (btf_id > node->id) in __perf_env__find_btf()
|
D | env.h | 128 struct btf_node *perf_env__find_btf(struct perf_env *env, __u32 btf_id); 129 struct btf_node *__perf_env__find_btf(struct perf_env *env, __u32 btf_id);
|
D | annotate.c | 1776 if (info_linear->info.btf_id) { in symbol__disassemble_bpf() 1780 info_linear->info.btf_id); in symbol__disassemble_bpf()
|
/tools/bpf/bpftool/ |
D | btf.c | 45 __u32 btf_id; member 397 __u32 btf_id = -1; in do_dump() local 421 btf_id = info.btf_id; in do_dump() 457 btf_id = info.btf_id; in do_dump() 461 btf_id = strtoul(*argv, &endptr, 0); in do_dump() 507 err = btf__get_from_id(btf_id, &btf); in do_dump() 509 p_err("get btf by id (%u): %s", btf_id, strerror(err)); in do_dump() 514 p_err("can't find btf with ID (%u)", btf_id); in do_dump() 586 __u32 btf_id, id = 0; in build_btf_type_table() local 646 btf_id = ((struct bpf_prog_info *)info)->btf_id; in build_btf_type_table() [all …]
|
D | map.c | 544 if (info->btf_id) in show_map_close_json() 545 jsonw_int_field(json_wtr, "btf_id", info->btf_id); in show_map_close_json() 630 if (!info->btf_id && !frozen) in show_map_close_plain() 635 if (info->btf_id) in show_map_close_plain() 636 printf("btf_id %d", info->btf_id); in show_map_close_plain() 639 printf("%sfrozen", info->btf_id ? " " : ""); in show_map_close_plain() 796 err = btf__get_from_id(info.btf_id, &btf); in do_dump() 926 err = btf__get_from_id(info->btf_id, &btf); in print_key_value()
|
D | prog.c | 253 if (info->btf_id) in print_prog_json() 254 jsonw_int_field(json_wtr, "btf_id", info->btf_id); in print_prog_json() 326 if (info->btf_id) in print_prog_plain() 327 printf("\n\tbtf_id %d", info->btf_id); in print_prog_plain() 511 if (info->btf_id && btf__get_from_id(info->btf_id, &btf)) { in do_dump()
|
/tools/include/uapi/linux/ |
D | bpf.h | 464 __u32 btf_id; member 3269 __u32 btf_id; member 3297 __u32 btf_id; member
|
/tools/lib/bpf/ |
D | bpf.c | 626 attr.btf_id = id; in bpf_btf_get_fd_by_id()
|
/tools/testing/selftests/bpf/ |
D | test_btf.c | 3978 if (CHECK(err || map_info.btf_id != info[0].id || in test_btf_id() 3981 err, errno, info[0].id, map_info.btf_id, map_info.btf_key_type_id, in test_btf_id() 3993 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id() 4004 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id() 4265 err = btf__get_from_id(info.btf_id, &btf); in do_test_file()
|