/Linux-v5.4/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()
|
/Linux-v5.4/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() 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 …]
|
D | env.c | 75 __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()
|
D | env.h | 121 struct btf_node *perf_env__find_btf(struct perf_env *env, __u32 btf_id);
|
D | annotate.c | 1773 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/ |
D | btf.h | 49 u32 btf_id(const struct btf *btf);
|
/Linux-v5.4/include/uapi/linux/ |
D | bpf.h | 464 __u32 btf_id; member 3241 __u32 btf_id; member 3269 __u32 btf_id; member
|
/Linux-v5.4/tools/include/uapi/linux/ |
D | bpf.h | 464 __u32 btf_id; member 3241 __u32 btf_id; member 3269 __u32 btf_id; member
|
/Linux-v5.4/kernel/bpf/ |
D | syscall.c | 2520 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()
|
D | btf.c | 3510 u32 btf_id(const struct btf *btf) in btf_id() function
|
/Linux-v5.4/Documentation/bpf/ |
D | btf.rst | 486 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/ |
D | bpf.c | 626 attr.btf_id = id; in bpf_btf_get_fd_by_id()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_btf.c | 3950 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()
|