Home
last modified time | relevance | path

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

/tools/lib/perf/
Devlist.c230 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evlist__id_hash() local
232 sid->id = id; in perf_evlist__id_hash()
233 sid->evsel = evsel; in perf_evlist__id_hash()
234 hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id_hash()
235 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
378 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evsel__set_sid_idx() local
380 sid->idx = idx; in perf_evsel__set_sid_idx()
381 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); in perf_evsel__set_sid_idx()
382 sid->tid = perf_thread_map__pid(evsel->threads, thread); in perf_evsel__set_sid_idx()
/tools/thermal/tmon/
Dtmon.c340 pid_t sid, pid = fork(); in start_daemon_mode() local
355 sid = setsid(); in start_daemon_mode()
356 if (sid < 0) in start_daemon_mode()
/tools/perf/util/
Devlist.c603 struct perf_sample_id *sid; in evlist__id2sid() local
609 hlist_for_each_entry(sid, head, node) in evlist__id2sid()
610 if (sid->id == id) in evlist__id2sid()
611 return sid; in evlist__id2sid()
618 struct perf_sample_id *sid; in evlist__id2evsel() local
623 sid = evlist__id2sid(evlist, id); in evlist__id2evsel()
624 if (sid) in evlist__id2evsel()
625 return container_of(sid->evsel, struct evsel, core); in evlist__id2evsel()
635 struct perf_sample_id *sid; in evlist__id2evsel_strict() local
640 sid = evlist__id2sid(evlist, id); in evlist__id2evsel_strict()
[all …]
Dsession.c1414 struct perf_sample_id *sid = evlist__id2sid(evlist, v->id); in deliver_sample_value() local
1417 if (sid) { in deliver_sample_value()
1419 sample->period = v->value - sid->period; in deliver_sample_value()
1420 sid->period = v->value; in deliver_sample_value()
1423 if (!sid || sid->evsel == NULL) { in deliver_sample_value()
1435 evsel = container_of(sid->evsel, struct evsel, core); in deliver_sample_value()
2518 struct perf_sample_id *sid; in perf_event__process_id_index() local
2527 sid = evlist__id2sid(evlist, e->id); in perf_event__process_id_index()
2528 if (!sid) in perf_event__process_id_index()
2530 sid->idx = e->idx; in perf_event__process_id_index()
[all …]
Dauxtrace.c1015 struct perf_sample_id *sid; in auxtrace_queues__sample_queue() local
1023 sid = evlist__id2sid(session->evlist, id); in auxtrace_queues__sample_queue()
1024 if (!sid) in auxtrace_queues__sample_queue()
1027 idx = sid->idx; in auxtrace_queues__sample_queue()
1046 struct perf_sample_id *sid; in auxtrace_queues__add_sample() local
1053 sid = evlist__id2sid(session->evlist, id); in auxtrace_queues__add_sample()
1054 if (!sid) in auxtrace_queues__add_sample()
1057 idx = sid->idx; in auxtrace_queues__add_sample()
1058 buffer.tid = sid->tid; in auxtrace_queues__add_sample()
1059 buffer.cpu = sid->cpu; in auxtrace_queues__add_sample()
Dsynthetic-events.c1750 struct perf_sample_id *sid; in perf_event__synthesize_id_index() local
1764 sid = evlist__id2sid(evlist, e->id); in perf_event__synthesize_id_index()
1765 if (!sid) { in perf_event__synthesize_id_index()
1770 e->idx = sid->idx; in perf_event__synthesize_id_index()
1771 e->cpu = sid->cpu; in perf_event__synthesize_id_index()
1772 e->tid = sid->tid; in perf_event__synthesize_id_index()
/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/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh203 sid=$(devlink -j region new $DL_HANDLE/dummy | jq '.[][][][]')
208 devlink region dump $DL_HANDLE/dummy snapshot $sid >> /dev/null
211 devlink region del $DL_HANDLE/dummy snapshot $sid
/tools/perf/
Dbuiltin-stat.c333 struct perf_sample_id *sid = SID(counter, cpu, thread); in evsel__write_stat_event() local
335 return perf_event__synthesize_stat(NULL, cpu, thread, sid->id, count, in evsel__write_stat_event()