Lines Matching refs:core
101 return (enum tool_pmu_event)evsel->core.attr.config; in evsel__tool_event()
106 return tool_pmu__event_to_str(evsel->core.attr.config); in evsel__tool_pmu_event_name()
217 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
230 if (evsel->core.attr.sample_period) /* no sampling */ in evsel__tool_pmu_open()
245 if (!evsel->cgrp && !evsel->core.system_wide) in evsel__tool_pmu_open()
253 if (evsel->core.attr.sample_period) { in evsel__tool_pmu_open()
279 cpu = perf_cpu_map__cpu(evsel->core.cpus, idx); in evsel__tool_pmu_open()
350 if (!evsel || perf_cpu_map__is_empty(evsel->core.cpus)) { in tool_pmu__read_event()
353 } else if (!perf_cpu_map__has_any_cpu(evsel->core.cpus)) { in tool_pmu__read_event()
355 *result = perf_cpu_map__nr(evsel->core.cpus); in tool_pmu__read_event()
362 if (!perf_cpu_map__is_empty(evsel->core.pmu_cpus)) in tool_pmu__read_event()
363 *result = perf_cpu_map__nr(evsel->core.pmu_cpus); in tool_pmu__read_event()
375 if (!evsel || perf_cpu_map__is_empty(evsel->core.cpus)) { in tool_pmu__read_event()
378 } else if (!perf_cpu_map__has_any_cpu(evsel->core.cpus)) { in tool_pmu__read_event()
381 perf_cpu_map__intersect(online, evsel->core.cpus); in tool_pmu__read_event()
392 if (!perf_cpu_map__is_empty(evsel->core.pmu_cpus)) { in tool_pmu__read_event()
394 perf_cpu_map__intersect(online, evsel->core.pmu_cpus); in tool_pmu__read_event()
505 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()