Home | History | Annotate | Download | only in linux-tools-perf

Lines Matching defs:cpus

332 	struct cpu_map *cpus;
350 cpus = cpu_map__new(NULL);
351 if (cpus == NULL) {
368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) {
375 for (cpu = 0; cpu < cpus->nr; ++cpu) {
380 * without CPU_ALLOC. 1024 cpus in 2010 still seems
383 if (cpus->map[cpu] >= CPU_SETSIZE) {
384 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]);
388 CPU_SET(cpus->map[cpu], &cpu_set);
391 cpus->map[cpu],
399 CPU_CLR(cpus->map[cpu], &cpu_set);
407 if (perf_evsel__alloc_counts(evsel, cpus->nr) < 0) {
408 pr_debug("perf_evsel__alloc_counts(ncpus=%d)\n", cpus->nr);
414 for (cpu = 0; cpu < cpus->nr; ++cpu) {
417 if (cpus->map[cpu] >= CPU_SETSIZE)
429 expected, cpus->map[cpu], evsel->counts->cpu[cpu].val);
463 struct cpu_map *cpus;
502 cpus = cpu_map__new(NULL);
503 if (cpus == NULL) {
509 CPU_SET(cpus->map[0], &cpu_set);
513 cpus->map[0], strerror(errno));
517 evlist = perf_evlist__new(cpus, threads);
537 if (perf_evsel__open(evsels[i], cpus, threads, false) < 0) {
600 cpu_map__delete(cpus);
622 .desc = "detect open syscall event on all cpus",