• Home
  • Raw
  • Download

Lines Matching refs:id

84 static int dump_btf_type(const struct btf *btf, __u32 id,  in dump_btf_type()  argument
95 jsonw_uint_field(w, "id", id); in dump_btf_type()
99 printf("[%u] %s '%s'", id, btf_kind_str[safe_kind], in dump_btf_type()
538 unsigned int id; in btf_parse_fd() local
548 id = strtoul(**argv, &endptr, 0); in btf_parse_fd()
555 fd = bpf_btf_get_fd_by_id(id); in btf_parse_fd()
558 id, strerror(errno)); in btf_parse_fd()
586 __u32 btf_id, id = 0; in build_btf_type_table() local
593 err = bpf_prog_get_next_id(id, &id); in build_btf_type_table()
596 err = bpf_map_get_next_id(id, &id); in build_btf_type_table()
616 fd = bpf_prog_get_fd_by_id(id); in build_btf_type_table()
619 fd = bpf_map_get_fd_by_id(id); in build_btf_type_table()
629 p_err("can't get %s by id (%u): %s", names[type], id, in build_btf_type_table()
665 obj_node->obj_id = id; in build_btf_type_table()
710 printf("%u: ", info->id); in show_btf_plain()
714 hash_for_each_possible(btf_prog_table->table, obj, hash, info->id) { in show_btf_plain()
715 if (obj->btf_id == info->id) in show_btf_plain()
721 hash_for_each_possible(btf_map_table->table, obj, hash, info->id) { in show_btf_plain()
722 if (obj->btf_id == info->id) in show_btf_plain()
738 jsonw_uint_field(json_wtr, "id", info->id); in show_btf_json()
744 info->id) { in show_btf_json()
745 if (obj->btf_id == info->id) in show_btf_json()
753 info->id) { in show_btf_json()
754 if (obj->btf_id == info->id) in show_btf_json()
788 __u32 id = 0; in do_show() local
821 err = bpf_btf_get_next_id(id, &id); in do_show()
834 fd = bpf_btf_get_fd_by_id(id); in do_show()
839 id, strerror(errno)); in do_show()