Searched refs:nr_types (Results 1 – 10 of 10) sorted by relevance
| /tools/testing/selftests/bpf/ |
| A D | btf_helpers.h | 11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
|
| A 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/ |
| A D | btf_relocate.c | 446 unsigned int nr_types = btf__type_cnt(btf); in btf_relocate() local 459 r.nr_split_types = nr_types - r.nr_dist_base_types; in btf_relocate() 463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 482 for (id = r.nr_dist_base_types; id < nr_types; id++) in btf_relocate()
|
| A D | btf.c | 95 __u32 nr_types; member 448 btf->nr_types++; in btf_parse_type_sec() 1004 btf->nr_types = 0; in btf_new_empty() 1057 btf->nr_types = 0; in btf_new() 1854 btf->nr_types++; in btf_commit_type() 2035 btf->nr_types += cnt; in btf__add_btf() 2328 if (btf->nr_types == 0) in btf__add_field() 2443 if (btf->nr_types == 0) in btf__add_enum_value() 2520 if (btf->nr_types == 0) in btf__add_enum64_value() 2762 if (btf->nr_types == 0) in btf__add_func_param() [all …]
|
| A D | libbpf.c | 2991 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 3008 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 3009 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
|
| /tools/perf/trace/beauty/ |
| A 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/perf/util/ |
| A D | lock-contention.h | 9 int nr_types; member
|
| A D | bpf_lock_contention.c | 225 if (con->filters->nr_types) { in lock_contention_prepare() 227 ntypes = con->filters->nr_types; in lock_contention_prepare() 349 if (con->filters->nr_types) { in lock_contention_prepare() 354 for (i = 0; i < con->filters->nr_types; i++) in lock_contention_prepare()
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 541 __u32 nr_types; in symbols_resolve() local 562 nr_types = btf__type_cnt(btf); in symbols_resolve() 567 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
|
| /tools/perf/ |
| A D | builtin-lock.c | 1042 if (filters.nr_types) { in report_lock_contention_begin_event() 1045 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1535 filters.nr_types = 0; in lock_filter_finish() 2270 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type() 2274 tmp[filters.nr_types++] = flags; in add_lock_type()
|
Completed in 69 milliseconds