| /tools/perf/util/ |
| A D | expr.y | 27 struct ids { 41 } ids; 57 %destructor { ids__free($$.ids); } <ids> 81 static struct ids union_expr(struct ids ids1, struct ids ids2) 85 .ids = ids__union(ids1.ids, ids2.ids), 117 if (!result.ids || ids__insert(result.ids, id)) { 150 ctx->ids = ids__union($1.ids, ctx->ids); 165 $$.ids = $5.ids; 175 $$.ids = $1.ids; 202 $$.ids = NULL; [all …]
|
| A D | expr.c | 76 void ids__free(struct hashmap *ids) in ids__free() argument 81 if (ids == NULL) in ids__free() 84 hashmap__for_each_entry(ids, cur, bkt) { in ids__free() 89 hashmap__free(ids); in ids__free() 92 int ids__insert(struct hashmap *ids, const char *id) in ids__insert() argument 144 return ids__insert(ctx->ids, id); in expr__add_id() 299 if (IS_ERR(ctx->ids)) { in expr__ctx_new() 312 hashmap__for_each_entry(ctx->ids, cur, bkt) { in expr__ctx_clear() 316 hashmap__clear(ctx->ids); in expr__ctx_clear() 328 hashmap__for_each_entry(ctx->ids, cur, bkt) { in expr__ctx_free() [all …]
|
| A D | expr.h | 16 struct hashmap *ids; member 23 void ids__free(struct hashmap *ids); 24 int ids__insert(struct hashmap *ids, const char *id); 52 struct expr_parse_ctx *ids);
|
| A D | metricgroup.c | 298 ids_size = hashmap__size(ids); in setup_metric_events() 326 if (hashmap__find(ids, metric_id, &val_ptr)) { in setup_metric_events() 561 hashmap__for_each_entry(ctx->ids, cur, bkt) { in metricgroup__build_event_string() 980 left_count = hashmap__size(left->pctx->ids); in metric_list_cmp() 986 right_count = hashmap__size(right->pctx->ids); in metric_list_cmp() 1218 hashmap__for_each_entry(m->pctx->ids, cur, bkt) { in build_combined_expr_ctx() 1250 struct expr_parse_ctx *ids, const char *modifier, in parse_ids() argument 1260 if (!metric_no_merge || hashmap__size(ids->ids) == 0) { in parse_ids() 1282 ids__insert(ids->ids, tmp); in parse_ids() 1286 if (!added_event && hashmap__size(ids->ids) == 0) { in parse_ids() [all …]
|
| A D | bpf-filter.c | 239 u64 *ids = calloc(alloced, sizeof(*ids)); in destroy_event_hash() local 241 if (ids == NULL) in destroy_event_hash() 247 free(ids); in destroy_event_hash() 260 tmp = realloc(ids, alloced * sizeof(*ids)); in destroy_event_hash() 264 ids = tmp; in destroy_event_hash() 266 ids[num++] = key; in destroy_event_hash() 273 bpf_map_delete_elem(fd, &ids[i]); in destroy_event_hash() 275 free(ids); in destroy_event_hash()
|
| A D | header.c | 84 struct perf_file_section ids; member 536 nri = evsel->core.ids; in write_event_desc() 1979 evsel->core.ids = nr; in read_event_desc() 2022 if (evsel->core.ids) { in print_event_desc() 3732 .ids = { in perf_session__do_write_header() 4185 ret = readn(fd, &f_attr->ids, sizeof(f_attr->ids)); in read_attr() 4301 f_attr.ids.size = bswap_64(f_attr.ids.size); in perf_session__read_header() 4302 f_attr.ids.offset = bswap_64(f_attr.ids.offset); in perf_session__read_header() 4319 nr_ids = f_attr.ids.size / sizeof(u64); in perf_session__read_header() 4328 lseek(fd, f_attr.ids.offset, SEEK_SET); in perf_session__read_header() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf_field_iter.c | 10 __u32 ids[5]; member 13 { .ids = {}, .strs = {} }, 14 { .ids = {}, .strs = { "int" } }, 15 { .ids = {}, .strs = { "int64" } }, 16 { .ids = { 1 }, .strs = { "" } }, 17 { .ids = { 2, 1 }, .strs = { "" } }, 21 { .ids = {}, .strs = { "fw1" } }, 22 { .ids = { 1 }, .strs = { "t" } }, 23 { .ids = { 2 }, .strs = { "" } }, 24 { .ids = { 1 }, .strs = { "" } }, [all …]
|
| A D | resolve_btfids.c | 150 if (test_symbols[j].id != test_set.ids[i]) in test_resolve_btfids() 158 test_set.ids[i]); in test_resolve_btfids() 163 if (!ASSERT_LE(test_set.ids[i - 1], test_set.ids[i], "sort_check")) in test_resolve_btfids()
|
| A D | tp_attach_query.c | 124 if (CHECK(saved_prog_ids[j] != query->ids[j], in serial_test_tp_attach_query() 127 j, saved_prog_ids[j], query->ids[j])) in serial_test_tp_attach_query()
|
| /tools/perf/tests/ |
| A D | expr.c | 137 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr() 147 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 155 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 170 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr() 179 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr() 189 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr() 195 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr() 199 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0); in test__expr() 203 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr() 208 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1); in test__expr() [all …]
|
| A D | pmu-events.c | 979 hashmap__for_each_entry(ctx->ids, cur, bkt) in metric_parse_fake() 982 hashmap__for_each_entry(ctx->ids, cur, bkt) { in metric_parse_fake() 996 hashmap__for_each_entry(ctx->ids, cur, bkt) in metric_parse_fake()
|
| /tools/testing/selftests/hid/tests/ |
| A D | conftest.py | 64 ids = [] 76 ids.append(f"{module.name} {vid:04x}:{pid:04x}") 77 metafunc.parametrize("usbVidPid", params, ids=ids)
|
| A D | test_tablet.py | 725 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 737 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 755 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 776 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 797 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 818 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 838 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 858 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"])
|
| /tools/testing/selftests/lsm/ |
| A D | common.h | 25 static inline int lsm_list_modules(__u64 *ids, __u32 *size, __u32 flags) in lsm_list_modules() argument 27 return syscall(__NR_lsm_list_modules, ids, size, flags); in lsm_list_modules()
|
| /tools/perf/Documentation/ |
| A D | perf-inject.txt | 17 this case build-ids (-b option) are read and injected as needed into the event 20 Build-ids are just the first user of perf-inject - potentially anything that 27 --build-ids:: 28 Inject build-ids of DSOs hit by samples into the output stream. 32 Inject build-ids of all DSOs into the output stream regardless of hits 35 --known-build-ids=:: 36 Override build-ids to inject using these comma-separated pairs of
|
| A D | perf-archive.txt | 6 perf-archive - Create archive with object files with build-ids found in perf.data file
|
| A D | db-export.txt | 15 The export process provides records with unique sequential ids which allows the
|
| A D | perf.data-file-format.txt | 148 uint64_t ids[nr_ids]; 526 Map event ids to CPUs and TIDs. 648 struct perf_file_section ids; 651 ids points to a array of uint64_t defining the ids for event attr attr.
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | rss_ctx.py | 369 ids = [] 371 ids.append(ethtool_create(cfg, "-X", f"context new")) 374 ids.append(ethtool_create(cfg, "-X", f"context new weight 1 1")) 377 ids.append(ethtool_create(cfg, "-X", f"context new hkey {key}")) 380 if not ids: 384 expect_tuples = set([(cfg.ifname, -1)] + [(cfg.ifname, ctx_id) for ctx_id in ids]) 399 if len(ids) > 1 and data.get('context') == ids[1]: 402 if len(ids) > 2 and data.get('context') == ids[2]:
|
| /tools/usb/usbip/ |
| A D | configure.ac | 86 # Sets directory containing usb.ids. 89 [where usb.ids is found (default /usr/share/hwdata/)])],
|
| /tools/lib/perf/include/internal/ |
| A D | evsel.h | 108 u32 ids; member
|
| /tools/testing/selftests/bpf/ |
| A D | veristat.c | 119 enum stat_id ids[ALL_STATS_CNT]; member 723 .ids = { 774 .ids = { 785 .ids = { 794 .ids = { 929 specs->ids[specs->spec_cnt] = id; in parse_stat() 2375 env.sort_spec.ids[i], in cmp_join_stats() 2413 int id = env.output_spec.ids[i]; in output_headers() 2491 int id = env.output_spec.ids[i]; in output_stats() 2734 int id = env.output_spec.ids[i]; in output_comp_header_underlines() [all …]
|
| /tools/include/linux/ |
| A D | btf_ids.h | 10 u32 ids[]; member
|
| /tools/perf/scripts/python/ |
| A D | exported-sql-viewer.py | 744 callback(ids) 789 ids = [] 801 if ids[0] == 1: 802 del ids[0] 805 return ids 984 ids = [] 997 return ids 1055 if not len(ids): 3413 ids = [] 3420 return ids [all …]
|
| /tools/bpf/bpftool/ |
| A D | gen.c | 2434 unsigned int *ids = NULL; in btfgen_get_btf() local 2444 ids = calloc(n, sizeof(*ids)); in btfgen_get_btf() 2445 if (!ids) { in btfgen_get_btf() 2503 ids[i] = new_id; in btfgen_get_btf() 2517 *type_id = ids[*type_id]; in btfgen_get_btf() 2520 free(ids); in btfgen_get_btf() 2525 free(ids); in btfgen_get_btf()
|