Home
last modified time | relevance | path

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

/tools/lib/perf/
A Devlist.c311 struct perf_sample_id *sid = SID(evsel, cpu_map_idx, thread); in perf_evlist__id_hash() local
313 sid->id = id; in perf_evlist__id_hash()
314 sid->evsel = evsel; in perf_evlist__id_hash()
315 hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id_hash()
316 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
465 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evsel__set_sid_idx() local
467 sid->idx = idx; in perf_evsel__set_sid_idx()
468 sid->cpu = perf_cpu_map__cpu(evsel->cpus, cpu); in perf_evsel__set_sid_idx()
469 sid->tid = perf_thread_map__pid(evsel->threads, thread); in perf_evsel__set_sid_idx()
A Devsel.c567 u64 *perf_sample_id__get_period_storage(struct perf_sample_id *sid, u32 tid, bool per_thread) in perf_sample_id__get_period_storage() argument
574 return &sid->period; in perf_sample_id__get_period_storage()
577 head = &sid->periods[hash]; in perf_sample_id__get_period_storage()
583 if (sid->evsel == NULL) in perf_sample_id__get_period_storage()
593 list_add_tail(&res->node, &sid->evsel->per_stream_periods); in perf_sample_id__get_period_storage()
594 hlist_add_head(&res->hnode, &sid->periods[hash]); in perf_sample_id__get_period_storage()
/tools/power/x86/intel-speed-select/
A Disst-daemon.c149 int pid, sid, i; local
183 sid = setsid();
184 if (sid < 0)
/tools/thermal/tmon/
A 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/
A Devlist.c602 struct perf_sample_id *sid; in evlist__id2sid() local
609 if (sid->id == id) in evlist__id2sid()
610 return sid; in evlist__id2sid()
617 struct perf_sample_id *sid; in evlist__id2evsel() local
623 if (sid) in evlist__id2evsel()
634 struct perf_sample_id *sid; in evlist__id2evsel_strict() local
640 if (sid) in evlist__id2evsel_strict()
670 struct perf_sample_id *sid; in evlist__event2evsel() local
692 if (sid->id == id) in evlist__event2evsel()
1588 if (sid) { in evlist__parse_sample()
[all …]
A Dbpf_off_cpu.c322 u64 sample_type, val, sid = 0; in off_cpu_write() local
352 sid = evsel->core.id[0]; in off_cpu_write()
366 data.array[n++] = sid; in off_cpu_write()
A Dsession.c1197 if (sid) { in deliver_sample_value()
2686 struct perf_sample_id *sid; in perf_event__process_id_index() local
2703 if (!sid) in perf_event__process_id_index()
2706 sid->idx = e->idx; in perf_event__process_id_index()
2707 sid->cpu.cpu = e->cpu; in perf_event__process_id_index()
2708 sid->tid = e->tid; in perf_event__process_id_index()
2713 sid->machine_pid = e2->machine_pid; in perf_event__process_id_index()
2714 sid->vcpu.cpu = e2->vcpu; in perf_event__process_id_index()
2716 if (!sid->machine_pid) in perf_event__process_id_index()
2719 if (sid->machine_pid != last_pid) { in perf_event__process_id_index()
[all …]
A Dauxtrace.c1103 struct perf_sample_id *sid; in auxtrace_queues__sample_queue() local
1111 sid = evlist__id2sid(session->evlist, id); in auxtrace_queues__sample_queue()
1112 if (!sid) in auxtrace_queues__sample_queue()
1115 idx = sid->idx; in auxtrace_queues__sample_queue()
1134 struct perf_sample_id *sid; in auxtrace_queues__add_sample() local
1141 sid = evlist__id2sid(session->evlist, id); in auxtrace_queues__add_sample()
1142 if (!sid) in auxtrace_queues__add_sample()
1145 idx = sid->idx; in auxtrace_queues__add_sample()
1146 buffer.tid = sid->tid; in auxtrace_queues__add_sample()
1147 buffer.cpu = sid->cpu; in auxtrace_queues__add_sample()
A Dsynthetic-events.c1893 struct perf_sample_id *sid; in __perf_event__synthesize_id_index() local
1909 sid = evlist__id2sid(evlist, e->id); in __perf_event__synthesize_id_index()
1910 if (!sid) { in __perf_event__synthesize_id_index()
1915 e->idx = sid->idx; in __perf_event__synthesize_id_index()
1916 e->cpu = sid->cpu.cpu; in __perf_event__synthesize_id_index()
1917 e->tid = sid->tid; in __perf_event__synthesize_id_index()
1919 if (sid->machine_pid) in __perf_event__synthesize_id_index()
1923 e2[i].machine_pid = sid->machine_pid; in __perf_event__synthesize_id_index()
1924 e2[i].vcpu = sid->vcpu.cpu; in __perf_event__synthesize_id_index()
/tools/lib/perf/include/internal/
A Devsel.h148 u64 *perf_sample_id__get_period_storage(struct perf_sample_id *sid, u32 tid,
/tools/testing/radix-tree/
A 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/connector/
A Dproc_filter.c183 event->event_data.sid.process_pid, in handle_packet()
184 event->event_data.sid.process_tgid); in handle_packet()
/tools/perf/
A Dbuiltin-inject.c1182 struct perf_sample_id *sid; in guest_session__map_ids() local
1187 sid = evlist__id2sid(evlist, id); in guest_session__map_ids()
1188 if (!sid || sid->cpu.cpu == -1) in guest_session__map_ids()
1191 ret = guest_session__map_id(gs, id, host_id, sid->cpu.cpu); in guest_session__map_ids()
1265 struct perf_sample_id *sid; in guest_session__add_attr() local
1268 sid = evlist__id2sid(inject->session->evlist, id_array[i]); in guest_session__add_attr()
1270 sid->cpu.cpu = -1; in guest_session__add_attr()
1271 sid->tid = gs->vcpu[vcpu].tid; in guest_session__add_attr()
1272 sid->machine_pid = gs->machine_pid; in guest_session__add_attr()
1273 sid->vcpu.cpu = vcpu; in guest_session__add_attr()
A Dbuiltin-stat.c263 struct perf_sample_id *sid = SID(counter, cpu_map_idx, thread); in evsel__write_stat_event() local
266 return perf_event__synthesize_stat(NULL, cpu, thread, sid->id, count, in evsel__write_stat_event()
A Dbuiltin-record.c1942 struct perf_sample_id *sid; in __record__save_lost_samples() local
1949 sid = xyarray__entry(evsel->core.sample_id, cpu_idx, thread_idx); in __record__save_lost_samples()
1950 sample.id = sid->id; in __record__save_lost_samples()
/tools/testing/selftests/drivers/net/netdevsim/
A Ddevlink.sh212 sid=$(devlink -j region new $DL_HANDLE/dummy | jq '.[][][][]')
217 devlink region dump $DL_HANDLE/dummy snapshot $sid >> /dev/null
220 devlink region del $DL_HANDLE/dummy snapshot $sid

Completed in 52 milliseconds