Home
last modified time | relevance | path

Searched refs:sid (Results 1 – 7 of 7) sorted by relevance

/tools/perf/lib/
Devlist.c189 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evlist__id_hash() local
191 sid->id = id; in perf_evlist__id_hash()
192 sid->evsel = evsel; in perf_evlist__id_hash()
193 hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id_hash()
194 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
/tools/perf/util/
Devlist.c430 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evlist__set_sid_idx() local
431 sid->idx = idx; in perf_evlist__set_sid_idx()
433 sid->cpu = evlist->core.cpus->map[cpu]; in perf_evlist__set_sid_idx()
435 sid->cpu = -1; in perf_evlist__set_sid_idx()
437 sid->tid = perf_thread_map__pid(evlist->core.threads, thread); in perf_evlist__set_sid_idx()
439 sid->tid = -1; in perf_evlist__set_sid_idx()
445 struct perf_sample_id *sid; in perf_evlist__id2sid() local
451 hlist_for_each_entry(sid, head, node) in perf_evlist__id2sid()
452 if (sid->id == id) in perf_evlist__id2sid()
453 return sid; in perf_evlist__id2sid()
[all …]
Dsession.c1326 struct perf_sample_id *sid = perf_evlist__id2sid(evlist, v->id); in deliver_sample_value() local
1329 if (sid) { in deliver_sample_value()
1331 sample->period = v->value - sid->period; in deliver_sample_value()
1332 sid->period = v->value; in deliver_sample_value()
1335 if (!sid || sid->evsel == NULL) { in deliver_sample_value()
1347 evsel = container_of(sid->evsel, struct evsel, core); in deliver_sample_value()
2426 struct perf_sample_id *sid; in perf_event__process_id_index() local
2435 sid = perf_evlist__id2sid(evlist, e->id); in perf_event__process_id_index()
2436 if (!sid) in perf_event__process_id_index()
2438 sid->idx = e->idx; in perf_event__process_id_index()
[all …]
Dsynthetic-events.c1433 struct perf_sample_id *sid; in perf_event__synthesize_id_index() local
1447 sid = perf_evlist__id2sid(evlist, e->id); in perf_event__synthesize_id_index()
1448 if (!sid) { in perf_event__synthesize_id_index()
1453 e->idx = sid->idx; in perf_event__synthesize_id_index()
1454 e->cpu = sid->cpu; in perf_event__synthesize_id_index()
1455 e->tid = sid->tid; in perf_event__synthesize_id_index()
/tools/thermal/tmon/
Dtmon.c347 pid_t sid, pid = fork(); in start_daemon_mode() local
361 sid = setsid(); in start_daemon_mode()
362 if (sid < 0) in start_daemon_mode()
/tools/testing/radix-tree/
Didr-test.c184 int sid = 0; in idr_u32_test1() local
193 ptr = idr_get_next(idr, &sid); in idr_u32_test1()
196 BUG_ON(sid != 0); in idr_u32_test1()
199 BUG_ON(sid != id); in idr_u32_test1()
/tools/perf/
Dbuiltin-stat.c244 struct perf_sample_id *sid = SID(counter, cpu, thread); in perf_evsel__write_stat_event() local
246 return perf_event__synthesize_stat(NULL, cpu, thread, sid->id, count, in perf_evsel__write_stat_event()