Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 25 of 33) sorted by relevance

12

/tools/perf/tests/
Dexpr.c67 TEST_ASSERT_VAL("find other", hashmap__size(&ctx.ids) == 3); in test__expr()
68 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BAR", in test__expr()
70 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BAZ", in test__expr()
72 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BOZO", in test__expr()
79 TEST_ASSERT_VAL("find other", hashmap__size(&ctx.ids) == 2); in test__expr()
80 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "EVENT1,param=3/", in test__expr()
82 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "EVENT2,param=3/", in test__expr()
Dpmu-events.c784 hashmap__for_each_entry_safe((&pctx->ids), cur, cur_tmp, bkt) { in resolve_metric_simple()
879 hashmap__for_each_entry((&ctx.ids), cur, bkt) in test_parsing()
882 hashmap__for_each_entry((&ctx.ids), cur, bkt) { in test_parsing()
940 hashmap__for_each_entry((&ctx.ids), cur, bkt) in metric_parse_fake()
943 hashmap__for_each_entry((&ctx.ids), cur, bkt) { in metric_parse_fake()
/tools/perf/util/
Dmetricgroup.c138 static struct expr_id *expr_ids__alloc(struct expr_ids *ids) in expr_ids__alloc() argument
140 if (ids->cnt >= RECURSION_ID_MAX) in expr_ids__alloc()
142 return &ids->id[ids->cnt++]; in expr_ids__alloc()
145 static void expr_ids__exit(struct expr_ids *ids) in expr_ids__exit() argument
149 for (i = 0; i < ids->cnt; i++) in expr_ids__exit()
150 free(ids->id[i].id); in expr_ids__exit()
201 const int idnum = (int)hashmap__size(&pctx->ids); in find_evsel_group()
209 hashmap__find(&pctx->ids, "duration_time", (void **)&val_ptr)) in find_evsel_group()
245 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group()
325 hashmap__size(&m->pctx.ids) + 1); in metricgroup__setup_events()
[all …]
Dexpr.c76 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id()
98 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id_val()
143 ret = hashmap__set(&ctx->ids, name, data_ptr, in expr__add_ref()
159 return hashmap__find(&ctx->ids, id, (void **)data) ? 0 : -1; in expr__get_id()
208 hashmap__delete(&ctx->ids, id, in expr__del_id()
216 hashmap__init(&ctx->ids, key_hash, key_equal, NULL); in expr__ctx_init()
224 hashmap__for_each_entry((&ctx->ids), cur, bkt) { in expr__ctx_clear()
228 hashmap__clear(&ctx->ids); in expr__ctx_clear()
Dexpr.h22 struct hashmap ids; member
46 struct expr_parse_ctx *ids, int runtime);
Dheader.c76 struct perf_file_section ids; member
524 nri = evsel->core.ids; in write_event_desc()
538 ret = do_write(ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in write_event_desc()
1880 evsel->core.ids = nr; in read_event_desc()
1923 if (evsel->core.ids) { in print_event_desc()
1925 for (j = 0, id = evsel->core.id; j < evsel->core.ids; j++, id++) { in print_event_desc()
3527 err = do_write(&ff, evsel->core.id, evsel->core.ids * sizeof(u64)); in perf_session__write_header()
3547 .ids = { in perf_session__write_header()
3549 .size = evsel->core.ids * sizeof(u64), in perf_session__write_header()
3949 ret = readn(fd, &f_attr->ids, sizeof(f_attr->ids)); in read_attr()
[all …]
Dsynthetic-events.h34 int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 …
Dsynthetic-events.c1733 nr += evsel->core.ids; in perf_event__synthesize_id_index()
1748 for (j = 0; j < evsel->core.ids; j++) { in perf_event__synthesize_id_index()
1915 err = perf_event__synthesize_attr(tool, &evsel->core.attr, evsel->core.ids, in perf_event__synthesize_attrs()
1993 u32 ids, u64 *id, perf_event__handler_t process) in perf_event__synthesize_attr() argument
2002 size += ids * sizeof(u64); in perf_event__synthesize_attr()
2010 memcpy(ev->attr.id, id, ids * sizeof(u64)); in perf_event__synthesize_attr()
Dstat-shadow.c395 hashmap__size(&ctx.ids) + 1); in perf_stat__collect_metric_expr()
404 hashmap__for_each_entry((&ctx.ids), cur, bkt) { in perf_stat__collect_metric_expr()
/tools/testing/selftests/bpf/prog_tests/
Dresolve_btfids.c150 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()
Dtp_attach_query.c118 if (CHECK(saved_prog_ids[j] != query->ids[j], in test_tp_attach_query()
121 j, saved_prog_ids[j], query->ids[j])) in test_tp_attach_query()
/tools/perf/Documentation/
Dperf-inject.txt17 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 into the output stream
31 Inject build-ids of all DSOs into the output stream
Dperf-archive.txt6 perf-archive - Create archive with object files with build-ids found in perf.data file
Ddb-export.txt15 The export process provides records with unique sequential ids which allows the
Dperf.data-file-format.txt148 uint64_t ids[nr_ids];
524 Map event ids to CPUs and TIDs.
622 struct perf_file_section ids;
625 ids points to a array of uint64_t defining the ids for event attr attr.
Dperf-buildid-cache.txt56 List missing build ids in the cache for the specified file.
/tools/lib/perf/include/internal/
Devsel.h47 u32 ids; member
/tools/usb/usbip/
Dconfigure.ac86 # Sets directory containing usb.ids.
89 [where usb.ids is found (default /usr/share/hwdata/)])],
/tools/include/linux/
Dbtf_ids.h8 u32 ids[]; member
/tools/perf/scripts/python/
Dexported-sql-viewer.py718 ids = self.FindValue(c.value, c.pattern, c.query, c.last_value, c.last_pattern)
720 ids = self.FindNext(c.query)
722 ids = self.FindPrev(c.query)
723 return (True, ids)
737 …thread.done.connect(lambda ids, t=thread, c=callback: self.FindDone(t, c, ids), Qt.QueuedConnectio…
740 def FindDone(self, thread, callback, ids): argument
741 callback(ids)
786 ids = []
789 ids.insert(0, parent_id)
798 if ids[0] == 1:
[all …]
/tools/lib/bpf/
Dbtf_dump.c626 const __u32 *ids; member
1259 decl_stack.ids = d->decl_stack + stack_start; in btf_dump_emit_type_decl()
1279 id = decl_stack->ids[decl_stack->cnt - 1]; in btf_dump_emit_mods()
1305 id = decl_stack->ids[decl_stack->cnt - 1]; in btf_dump_drop_mods()
1341 id = decls->ids[--decls->cnt]; in btf_dump_emit_type_chain()
1420 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain()
/tools/testing/selftests/tc-testing/creating-plugins/
DAddingPlugins.txt44 testidlist (array of test ids for tests that will be run). This is
/tools/include/uapi/linux/
Dperf_event.h495 __u32 ids[0]; member
/tools/lib/perf/
Devsel.c432 evsel->ids = 0; in perf_evsel__free_id()
Devlist.c251 evsel->id[evsel->ids++] = id; in perf_evlist__id_add()

12