Searched refs:nr_types (Results 1 – 7 of 7) sorted by relevance
/tools/testing/selftests/bpf/ |
D | btf_helpers.h | 11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
|
D | btf_helpers.c | 234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw() argument 239 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types"); in btf_validate_raw() 241 for (i = 1; i <= nr_types; i++) { in btf_validate_raw()
|
/tools/lib/bpf/ |
D | btf.c | 93 __u32 nr_types; member 195 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem() 428 pr_warn("BTF type [%d] is malformed\n", btf->start_id + btf->nr_types); in btf_parse_type_sec() 440 btf->nr_types++; in btf_parse_type_sec() 453 return btf->start_id + btf->nr_types; in btf__type_cnt() 473 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 736 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() local 741 for (i = 1; i < nr_types; i++) { in btf__find_by_name() 755 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() local 760 for (i = start_id; i < nr_types; i++) { in btf_find_by_name_kind() [all …]
|
D | libbpf.c | 2559 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 2576 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 2577 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/tools/perf/trace/beauty/ |
D | ioctl.c | 146 const int nr_types = ARRAY_SIZE(ioctl_types); in ioctl__scnprintf_cmd() local 148 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) { in ioctl__scnprintf_cmd()
|
/tools/bpf/resolve_btfids/ |
D | main.c | 514 __u32 nr_types; in symbols_resolve() local 535 nr_types = btf__type_cnt(btf); in symbols_resolve() 540 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
|
/tools/perf/util/ |
D | bpf-loader.c | 73 int nr_types; member 672 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue() 765 int *nr_types) in map_prologue() argument 803 *nr_types = type + 1; in map_prologue() 866 return map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor()
|