Searched refs:type_id (Results 1 - 25 of 80) sorted by last modified time

1234

/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c443 mru->value = kinfo->type_id;
445 mru->value &= kinfo->type_id;
446 mru->mask |= kinfo->type_id;
/linux-master/kernel/trace/
H A Dbpf_trace.c999 if (ptr->type_id > 0)
1000 *btf_id = ptr->type_id;
/linux-master/kernel/bpf/
H A Dverifier.c439 return btf_type_name(env->prog->aux->btf, info->type_id);
2509 main_btf_id = aux->func_info[0].type_id;
2541 if (aux->func_info[i].type_id != id)
9451 btf_id = prog->aux->func_info[subprog].type_id;
15976 /* check type_id */
15977 type = btf_type_by_id(btf, krecord[i].type_id);
15980 krecord[i].type_id);
16048 /* Already checked type_id */
16049 type = btf_type_by_id(btf, krecord[i].type_id);
20792 if (aux->func_info[i].type_id
[all...]
H A Dcore.c606 prog->aux->func_info[prog->aux->func_idx].type_id);
H A Dbtf.c63 * type_id:
65 * Each btf_type object is identified by a type_id. The type_id
67 * the BTF type section. The first one has type_id 1. The second
68 * one has type_id 2...etc. Hence, an earlier btf_type has
69 * a smaller type_id.
72 * type_id (i.e. the "type" in the "struct btf_type").
81 * by specifying type_id:
83 * [1] CONST (anon) type_id=2
84 * [2] PTR (anon) type_id
285 u32 type_id; member in struct:resolve_vertex
426 u32 type_id; member in struct:btf_show::__anon2842
847 btf_type_by_id(const struct btf *btf, u32 type_id) argument
1309 btf_show_start_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument
1327 btf_show_start_aggr_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument
1375 btf_show_start_array_type(struct btf_show *show, const struct btf_type *t, u32 type_id, u16 array_encoding, void *data) argument
1393 btf_show_start_struct_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument
1833 env_type_is_resolved(const struct btf_verifier_env *env, u32 type_id) argument
1843 env_stack_push(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument
1883 u32 type_id = env->stack[--(env->top_stack)].type_id; local
1918 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, u32 *type_size, const struct btf_type **elem_type, u32 *elem_id, u32 *total_nelems, u32 *type_id) argument
1994 btf_resolved_type_id(const struct btf *btf, u32 type_id) argument
2003 btf_type_id_resolve(const struct btf *btf, u32 *type_id) argument
2010 btf_resolved_type_size(const struct btf *btf, u32 type_id) argument
2018 btf_type_id_size(const struct btf *btf, u32 *type_id, u32 *ret_size) argument
2110 btf_df_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offsets, struct btf_show *show) argument
2397 btf_int_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
2745 btf_modifier_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
2758 btf_var_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
2767 btf_ptr_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
3006 __btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
3059 btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
3294 u32 type_id; member in struct:btf_field_info::__anon2845::__anon2846
3976 __btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
4023 btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
4191 btf_enum_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
4294 btf_enum64_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
4619 u32 var_type_id = vsi->type, type_id, type_size = 0; local
4656 btf_datasec_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument
5082 btf_resolve_valid(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument
5123 btf_resolve(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument
5160 u32 type_id, i; local
7070 u32 kern_type_id, type_id; local
7340 btf_type_show(const struct btf *btf, u32 type_id, void *obj, struct btf_show *show) argument
7358 btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m, u64 flags) argument
7372 btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m) argument
7408 btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, char *buf, int len, u64 flags) argument
8925 bpf_struct_ops_find(struct btf *btf, u32 type_id) argument
[all...]
H A Dbpf_struct_ops.c318 s32 type_id, value_id; local
336 type_id = btf_find_by_name_kind(btf, st_ops->name,
338 if (type_id < 0) {
343 t = btf_type_by_id(btf, type_id);
367 st_ops_desc->type_id = type_id;
700 prog->aux->attach_btf_id != st_ops_desc->type_id ||
/linux-master/include/linux/
H A Dbpf.h1678 * is exclusive with the @type, @type_id, @value_type, and
1705 * @type_id: BTF type id.
1745 u32 type_id; member in struct:bpf_struct_ops_desc
H A Dbtf.h148 /* Figure out the size of a type_id. If type_id is a modifier
152 * In describing "const void *", type_id is "const" and "const"
155 * If type_id is a simple "int", then return type will be "int".
158 * @type_id: Find out the size of type_id. The type_id of the return
159 * type is set to *type_id.
163 * NULL is returned if type_id itself does not have size info
166 * *type_id an
512 bpf_struct_ops_find(struct btf *btf, u32 type_id) argument
541 btf_type_by_id(const struct btf *btf, u32 type_id) argument
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c491 __u32 type_id; member in struct:bpf_struct_ops
593 __u32 type_id; member in struct:extern_desc::__anon170::__anon172
959 const struct btf_type **type, __u32 *type_id,
1014 *type_id = kern_type_id;
1109 pr_debug("struct_ops init_kern %s: type_id:%u kern_type_id:%u kern_vtype_id:%u\n",
1110 map->name, st_ops->type_id, kern_type_id, kern_vtype_id);
1281 __s32 type_id, datasec_id; local
1304 type_id = btf__resolve_type(obj->btf, vsi->type);
1305 if (type_id < 0) {
1306 pr_warn("struct_ops init: Cannot resolve var type_id
957 find_struct_ops_kern_types(struct bpf_object *obj, const char *tname_raw, struct module_btf **mod_btf, const struct btf_type **type, __u32 *type_id, const struct btf_type **vtype, __u32 *vtype_id, const struct btf_member **data_member) argument
[all...]
H A Dlinker.c934 static int check_btf_type_id(__u32 *type_id, void *ctx) argument
938 if (*type_id >= btf__type_cnt(btf))
2237 static int remap_type_id(__u32 *type_id, void *ctx) argument
2240 int new_id = id_map[*type_id];
2243 if (new_id == 0 && *type_id != 0) {
2244 pr_warn("failed to find new ID mapping for original BTF type ID %u\n", *type_id);
2248 *type_id = id_map[*type_id];
2487 dst_rec->type_id = obj->btf_type_map[dst_rec->type_id];
[all...]
H A Dlibbpf_internal.h234 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
500 __u32 type_id; member in struct:bpf_func_info_min
512 typedef int (*type_id_visit_fn)(__u32 *type_id, void *ctx);
H A Dbtf.c451 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) argument
457 pr_warn("btf: type [%u]: invalid %s (string offset %u)\n", type_id, what, str_off);
621 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) argument
623 if (type_id == 0)
625 if (type_id < btf->start_id)
626 return btf_type_by_id(btf->base_btf, type_id);
627 return btf->types_data + btf->type_offs[type_id - btf->start_id];
630 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) argument
632 if (type_id >= btf->start_id + btf->nr_types)
634 return btf_type_by_id((struct btf *)btf, type_id);
763 btf__resolve_size(const struct btf *btf, __u32 type_id) argument
873 btf__resolve_type(const struct btf *btf, __u32 type_id) argument
1801 btf_rewrite_type_ids(__u32 *type_id, void *ctx) argument
2180 btf__add_field(struct btf *btf, const char *name, int type_id, __u32 bit_offset, __u32 bit_size) argument
2596 btf__add_func_param(struct btf *btf, const char *name, int type_id) argument
2649 btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) argument
3326 btf_dedup_table_add(struct btf_dedup *d, long hash, __u32 type_id) argument
3854 int type_id; local
3917 btf_dedup_prim_type(struct btf_dedup *d, __u32 type_id) argument
4017 is_type_mapped(struct btf_dedup *d, uint32_t type_id) argument
4027 resolve_type_id(struct btf_dedup *d, __u32 type_id) argument
4038 resolve_fwd_id(struct btf_dedup *d, uint32_t type_id) argument
4464 btf_dedup_struct_type(struct btf_dedup *d, __u32 type_id) argument
4558 btf_dedup_ref_type(struct btf_dedup *d, __u32 type_id) argument
4708 __u32 type_id; local
4738 btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id) argument
4892 btf_dedup_remap_type_id(__u32 *type_id, void *ctx) argument
[all...]
/linux-master/tools/bpf/bpftool/
H A Dgen.c1973 static void btfgen_mark_member(struct btfgen_info *info, int type_id, int idx) argument
1975 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id);
1982 btfgen_mark_type(struct btfgen_info *info, unsigned int type_id, bool follow_pointers) argument
1984 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id);
1990 if (type_id == 0)
1994 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id);
2049 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id);
2062 unsigned int type_id = targ_spec->root_type_id; local
2066 btf_type = btf__type_by_id(btf, type_id);
2067 err = btfgen_mark_type(info, type_id, fals
2118 btfgen_mark_type_match(struct btfgen_info *info, __u32 type_id, bool behind_ptr) argument
2381 btfgen_remap_id(__u32 *type_id, void *ctx) argument
[all...]
H A Dprog.c805 btf_dumper_type_only(btf, record->type_id,
2238 t = btf__type_by_id(btf, func_info.type_id);
2241 info.btf_id, func_info.type_id);
/linux-master/tools/perf/util/
H A Dbpf-event.c140 t = btf__type_by_id(btf, finfo->type_id);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c374 .err_str = "Invalid type_id",
744 .err_str = "Invalid type_id",
768 .err_str = "Invalid type_id",
791 .err_str = "Invalid type_id",
812 .err_str = "Invalid type_id",
819 /* PTR type_id=3 */ /* [2] */
834 .err_str = "Invalid type_id",
844 BTF_MEMBER_ENC(NAME_TBD, 3, 32),/* VAR type_id=3; */
1430 /* CONST type_id=3 */ /* [3] */
1432 /* PTR type_id
[all...]
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1470 __u32 btf_key_type_id; /* BTF type_id of the key */
1471 __u32 btf_value_type_id; /* BTF type_id of the value */
1472 __u32 btf_vmlinux_value_type_id;/* BTF type_id of a kernel-
4836 * using *ptr*->type_id. This value should specify the type
4872 * *ptr*->ptr, using *ptr*->type_id as per bpf_snprintf_btf().
7265 __u32 type_id; member in struct:bpf_func_info
7364 __u32 type_id; member in struct:btf_ptr
7411 * - type_id - BTF type ID of the "root" (containing) entity of a relocatable
7438 * type_id for all relocs in this example will capture BTF type id of
7454 __u32 type_id; member in struct:bpf_core_relo
[all...]
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c530 int err, type_id; local
558 for (type_id = 1; type_id < nr_types; type_id++) {
565 type = btf__type_by_id(btf, type_id);
568 type_id);
590 type_id);
598 str, id->id, type_id, id->id);
600 id->id = type_id;
/linux-master/net/tipc/
H A Dbearer.c97 if (media_info_array[i]->type_id == type)
461 b->bcast_addr.media_id = b->media->type_id;
847 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP)
854 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP) {
1089 if (b->media->type_id != TIPC_MEDIA_TYPE_UDP) {
1149 if (b->media->type_id != TIPC_MEDIA_TYPE_UDP) {
1209 if (media->type_id == TIPC_MEDIA_TYPE_UDP)
1344 if (m->type_id != TIPC_MEDIA_TYPE_UDP) {
/linux-master/net/netfilter/
H A Dnf_bpf_link.c270 s32 type_id; local
276 type_id = btf_find_by_name_kind(btf, name, BTF_KIND_STRUCT);
277 if (WARN_ON_ONCE(type_id < 0))
281 info->btf_id = type_id;
/linux-master/net/ipv4/
H A Dbpf_tcp_ca.c27 s32 type_id; local
29 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT);
30 if (type_id < 0)
32 sock_id = type_id;
34 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT);
35 if (type_id < 0)
37 tcp_sock_id = type_id;
40 type_id = btf_find_by_name_kind(btf, "tcp_congestion_ops", BTF_KIND_STRUCT);
41 if (type_id < 0)
43 tcp_congestion_ops_type = btf_type_by_id(btf, type_id);
[all...]
/linux-master/net/ethtool/
H A Dioctl.c2536 tuna->type_id != ETHTOOL_TUNABLE_U32)
2541 tuna->type_id != ETHTOOL_TUNABLE_U16)
2726 tuna->type_id != ETHTOOL_TUNABLE_U8)
2731 tuna->type_id != ETHTOOL_TUNABLE_U16)
/linux-master/net/bpf/
H A Dbpf_dummy_struct_ops.c96 s32 type_id; local
99 type_id = btf_find_by_name_kind(bpf_dummy_ops_btf,
102 if (type_id < 0)
104 if (prog->aux->attach_btf_id != type_id)
190 s32 type_id; local
192 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state",
194 if (type_id < 0)
198 state = btf_type_by_id(reg->btf, type_id);
/linux-master/include/uapi/linux/
H A Dethtool.h256 __u32 type_id; member in struct:ethtool_tunable
H A Dbpf.h1470 __u32 btf_key_type_id; /* BTF type_id of the key */
1471 __u32 btf_value_type_id; /* BTF type_id of the value */
1472 __u32 btf_vmlinux_value_type_id;/* BTF type_id of a kernel-
4836 * using *ptr*->type_id. This value should specify the type
4872 * *ptr*->ptr, using *ptr*->type_id as per bpf_snprintf_btf().
7265 __u32 type_id; member in struct:bpf_func_info
7364 __u32 type_id; member in struct:btf_ptr
7411 * - type_id - BTF type ID of the "root" (containing) entity of a relocatable
7438 * type_id for all relocs in this example will capture BTF type id of
7454 __u32 type_id; member in struct:bpf_core_relo
[all...]

Completed in 430 milliseconds

1234