Lines Matching defs:cpu_map_idx
87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd)
104 fd = FD(leader, cpu_map_idx, thread);
180 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu_map_idx)
185 int *fd = FD(evsel, cpu_map_idx, thread);
215 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx)
220 perf_evsel__close_fd_cpu(evsel, cpu_map_idx);
282 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread)
284 int *fd = FD(evsel, cpu_map_idx, thread);
286 if (fd == NULL || *fd < 0 || MMAP(evsel, cpu_map_idx, thread) == NULL)
289 return MMAP(evsel, cpu_map_idx, thread)->base;
321 static int perf_evsel__read_group(struct perf_evsel *evsel, int cpu_map_idx,
325 int *fd = FD(evsel, cpu_map_idx, thread);
387 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
391 int *fd = FD(evsel, cpu_map_idx, thread);
401 return perf_evsel__read_group(evsel, cpu_map_idx, thread, count);
403 if (MMAP(evsel, cpu_map_idx, thread) &&
405 !perf_mmap__read_self(MMAP(evsel, cpu_map_idx, thread), count))
416 int cpu_map_idx, int thread)
418 int *fd = FD(evsel, cpu_map_idx, thread);
428 int cpu_map_idx)
433 int err = perf_evsel__ioctl(evsel, ioc, arg, cpu_map_idx, thread);
442 int perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx)
444 return perf_evsel__run_ioctl(evsel, PERF_EVENT_IOC_ENABLE, NULL, cpu_map_idx);
472 int perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx)
474 return perf_evsel__run_ioctl(evsel, PERF_EVENT_IOC_DISABLE, NULL, cpu_map_idx);