| /tools/perf/util/ |
| D | expr.y | 27 struct ids { 32 struct hashmap *ids; 41 } ids; 56 %type <ids> expr if_expr 57 %destructor { ids__free($$.ids); } <ids> 81 static struct ids union_expr(struct ids ids1, struct ids ids2) 83 struct ids result = { 85 .ids = ids__union(ids1.ids, ids2.ids), 90 static struct ids handle_id(struct expr_parse_ctx *ctx, char *id, 93 struct ids result; [all …]
|
| D | expr.c | 79 void ids__free(struct hashmap *ids) in ids__free() argument 84 if (ids == NULL) in ids__free() 87 hashmap__for_each_entry(ids, cur, bkt) { in ids__free() 92 hashmap__free(ids); in ids__free() 95 int ids__insert(struct hashmap *ids, const char *id) in ids__insert() argument 101 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert() 147 return ids__insert(ctx->ids, id); in expr__add_id() 171 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); in expr__add_id_val_source_count() 206 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data); in expr__add_ref() 221 return hashmap__find(ctx->ids, id, data) ? 0 : -1; in expr__get_id() [all …]
|
| 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);
|
| D | bpf-filter.c | 238 u64 *ids = calloc(alloced, sizeof(*ids)); in destroy_event_hash() local 240 if (ids == NULL) in destroy_event_hash() 246 free(ids); in destroy_event_hash() 259 tmp = realloc(ids, alloced * sizeof(*ids)); in destroy_event_hash() 263 ids = tmp; in destroy_event_hash() 265 ids[num++] = key; in destroy_event_hash() 272 bpf_map_delete_elem(fd, &ids[i]); in destroy_event_hash() 274 free(ids); in destroy_event_hash()
|
| D | metricgroup.c | 278 static int setup_metric_events(const char *pmu, struct hashmap *ids, in setup_metric_events() argument 289 ids_size = hashmap__size(ids); in setup_metric_events() 317 if (hashmap__find(ids, metric_id, &val_ptr)) { in setup_metric_events() 681 hashmap__for_each_entry(ctx->ids, cur, bkt) { in metricgroup__build_event_string() 867 hashmap__for_each_entry(root_metric->pctx->ids, cur, bkt) { in resolve_metric() 1149 left_count = hashmap__size(left->pctx->ids); in metric_list_cmp() 1155 right_count = hashmap__size(right->pctx->ids); in metric_list_cmp() 1416 hashmap__for_each_entry(m->pctx->ids, cur, bkt) { in build_combined_expr_ctx() 1448 struct expr_parse_ctx *ids, const char *modifier, in parse_ids() argument 1458 if (!metric_no_merge || hashmap__size(ids->ids) == 0) { in parse_ids() [all …]
|
| D | header.c | 83 struct perf_file_section ids; member 535 nri = evsel->core.ids; in write_event_desc() 549 ret = do_write(ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in write_event_desc() 1994 evsel->core.ids = nr; in read_event_desc() 2037 if (evsel->core.ids) { in print_event_desc() 2039 for (j = 0, id = evsel->core.id; j < evsel->core.ids; j++, id++) { in print_event_desc() 3718 err = do_write(&ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in perf_session__do_write_header() 3724 attr_offset += evsel->core.ids * sizeof(u64); in perf_session__do_write_header() 3740 .ids = { in perf_session__do_write_header() 3742 .size = evsel->core.ids * sizeof(u64), in perf_session__do_write_header() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| 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 = { "" } }, 18 { .ids = { 3, 1 }, .strs = { "s1", "f1", "f2" } }, 19 { .ids = { 1, 5 }, .strs = { "u1", "f1", "f2" } }, 20 { .ids = {}, .strs = { "e1", "v1", "v2" } }, 21 { .ids = {}, .strs = { "fw1" } }, [all …]
|
| 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()
|
| 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/ |
| D | expr.c | 138 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr() 139 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr() 140 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr() 141 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr() 148 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 149 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr() 150 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr() 156 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 157 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", &val_ptr)); in test__expr() 158 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", &val_ptr)); in test__expr() [all …]
|
| D | pmu-events.c | 1010 hashmap__for_each_entry(ctx->ids, cur, bkt) in metric_parse_fake() 1013 hashmap__for_each_entry(ctx->ids, cur, bkt) { in metric_parse_fake() 1027 hashmap__for_each_entry(ctx->ids, cur, bkt) in metric_parse_fake()
|
| /tools/testing/selftests/hid/tests/ |
| D | conftest.py | 64 ids = [] 76 ids.append(f"{module.name} {vid:04x}:{pid:04x}") 77 metafunc.parametrize("usbVidPid", params, ids=ids)
|
| D | test_tablet.py | 724 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 736 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 754 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 775 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 796 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 817 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 837 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"]) 857 @pytest.mark.parametrize("scribble", [True, False], ids=["scribble", "static"])
|
| /tools/testing/selftests/lsm/ |
| 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/ |
| 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
|
| D | perf-archive.txt | 6 perf-archive - Create archive with object files with build-ids found in perf.data file
|
| D | db-export.txt | 15 The export process provides records with unique sequential ids which allows the
|
| D | perf.data-file-format.txt | 148 uint64_t ids[nr_ids]; 526 Map event ids to CPUs and TIDs. 634 struct perf_file_section ids; 637 ids points to a array of uint64_t defining the ids for event attr attr.
|
| /tools/testing/selftests/drivers/net/hw/ |
| D | rss_ctx.py | 319 ids = [] 321 ids.append(ethtool_create(cfg, "-X", f"context new")) 324 ids.append(ethtool_create(cfg, "-X", f"context new weight 1 1")) 327 ids.append(ethtool_create(cfg, "-X", f"context new hkey {key}")) 330 if not ids: 334 expect_tuples = set([(cfg.ifname, -1)] + [(cfg.ifname, ctx_id) for ctx_id in ids]) 349 if len(ids) > 1 and data.get('context') == ids[1]: 352 if len(ids) > 2 and data.get('context') == ids[2]:
|
| /tools/testing/selftests/bpf/ |
| D | veristat.c | 101 enum stat_id ids[ALL_STATS_CNT]; member 634 .ids = { 642 .ids = { 651 .ids = { 660 .ids = { 761 if (specs->spec_cnt >= ARRAY_SIZE(specs->ids)) { in parse_stat() 762 fprintf(stderr, "Can't specify more than %zd stats\n", ARRAY_SIZE(specs->ids)); in parse_stat() 777 specs->ids[specs->spec_cnt] = id; in parse_stat() 1189 cmp = cmp_stat(s1, s2, env.sort_spec.ids[i], in cmp_prog_stats() 1289 env.sort_spec.ids[i], in cmp_join_stats() [all …]
|
| /tools/lib/perf/include/internal/ |
| D | evsel.h | 58 u32 ids; member
|
| /tools/usb/usbip/ |
| D | configure.ac | 86 # Sets directory containing usb.ids. 89 [where usb.ids is found (default /usr/share/hwdata/)])],
|
| /tools/include/linux/ |
| D | btf_ids.h | 10 u32 ids[]; member
|
| /tools/perf/scripts/python/ |
| D | exported-sql-viewer.py | 721 ids = self.FindValue(c.value, c.pattern, c.query, c.last_value, c.last_pattern) 723 ids = self.FindNext(c.query) 725 ids = self.FindPrev(c.query) 726 return (True, ids) 740 …thread.done.connect(lambda ids, t=thread, c=callback: self.FindDone(t, c, ids), Qt.QueuedConnectio… 743 def FindDone(self, thread, callback, ids): argument 744 callback(ids) 789 ids = [] 792 ids.insert(0, parent_id) 801 if ids[0] == 1: [all …]
|
| /tools/bpf/bpftool/ |
| 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()
|