Home
last modified time | relevance | path

Searched refs:btf_id (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/tools/bpf/bpftool/
Dbtf.c45 __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 …]
Dmap.c544 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()
Dprog.c253 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()
/Linux-v5.4/tools/perf/util/
Dbpf-event.c94 u32 btf_id, in perf_env__fetch_btf() argument
107 node->id = btf_id; in perf_env__fetch_btf()
211 if (info->btf_id && info->nr_func_info && info->func_info_rec_size) { in perf_event__synthesize_one_bpf_prog()
218 if (btf__get_from_id(info->btf_id, &btf)) { in perf_event__synthesize_one_bpf_prog()
219 pr_debug("%s: failed to get BTF of id %u, aborting\n", __func__, info->btf_id); in perf_event__synthesize_one_bpf_prog()
224 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog()
350 u32 btf_id; in perf_env__add_bpf_info() local
371 btf_id = info_linear->info.btf_id; in perf_env__add_bpf_info()
380 if (btf_id == 0) in perf_env__add_bpf_info()
383 if (btf__get_from_id(btf_id, &btf)) { in perf_env__add_bpf_info()
[all …]
Denv.c75 __u32 btf_id = btf_node->id; in perf_env__insert_btf() local
85 if (btf_id < node->id) { in perf_env__insert_btf()
87 } else if (btf_id > node->id) { in perf_env__insert_btf()
90 pr_debug("duplicated btf %u\n", btf_id); in perf_env__insert_btf()
102 struct btf_node *perf_env__find_btf(struct perf_env *env, __u32 btf_id) in perf_env__find_btf() argument
112 if (btf_id < node->id) in perf_env__find_btf()
114 else if (btf_id > node->id) in perf_env__find_btf()
Denv.h121 struct btf_node *perf_env__find_btf(struct perf_env *env, __u32 btf_id);
Dannotate.c1773 if (info_linear->info.btf_id) { in symbol__disassemble_bpf()
1777 info_linear->info.btf_id); in symbol__disassemble_bpf()
/Linux-v5.4/include/linux/
Dbtf.h49 u32 btf_id(const struct btf *btf);
/Linux-v5.4/include/uapi/linux/
Dbpf.h464 __u32 btf_id; member
3241 __u32 btf_id; member
3269 __u32 btf_id; member
/Linux-v5.4/tools/include/uapi/linux/
Dbpf.h464 __u32 btf_id; member
3241 __u32 btf_id; member
3269 __u32 btf_id; member
/Linux-v5.4/kernel/bpf/
Dsyscall.c2520 info.btf_id = btf_id(prog->aux->btf); in bpf_prog_get_info_by_fd()
2621 info.btf_id = btf_id(map->btf); in bpf_map_get_info_by_fd()
2698 #define BPF_BTF_GET_FD_BY_ID_LAST_FIELD btf_id
2708 return btf_get_fd_by_id(attr->btf_id); in bpf_btf_get_fd_by_id()
Dbtf.c3510 u32 btf_id(const struct btf *btf) in btf_id() function
/Linux-v5.4/Documentation/bpf/
Dbtf.rst486 BPF_OBJ_GET_INFO_BY_FD (get bpf_prog_info/bpf_map_info with btf_id)
603 example, ``bpf_map_info`` returns ``btf_id`` and key/value type ids.
604 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated
610 With ``btf_id`` obtained in ``bpf_map_info`` and ``bpf_prog_info``, bpf
/Linux-v5.4/tools/lib/bpf/
Dbpf.c626 attr.btf_id = id; in bpf_btf_get_fd_by_id()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf.c3950 if (CHECK(err || map_info.btf_id != info[0].id || in test_btf_id()
3953 err, errno, info[0].id, map_info.btf_id, map_info.btf_key_type_id, in test_btf_id()
3965 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id()
3976 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id()
4237 err = btf__get_from_id(info.btf_id, &btf); in do_test_file()