Lines Matching defs:cpu

10293 		      pid == -1 ? 0 : -1 /* cpu */,
10434 pid == -1 ? 0 : -1, /* cpu */
11095 pid == -1 ? 0 : -1, /* cpu */
11688 pfd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, 0 /* cpu */,
12317 int cpu;
12343 pr_warn("failed to munmap cpu_buf #%d\n", cpu_buf->cpu);
12378 int cpu, int map_key)
12389 cpu_buf->cpu = cpu;
12392 cpu_buf->fd = syscall(__NR_perf_event_open, attr, -1 /* pid */, cpu,
12396 pr_warn("failed to open perf buffer event on cpu #%d: %s\n",
12397 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
12407 pr_warn("failed to mmap perf buffer on cpu #%d: %s\n",
12408 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
12414 pr_warn("failed to enable perf buffer event on cpu #%d: %s\n",
12415 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
12489 const char *online_cpus_file = "/sys/devices/system/cpu/online";
12581 int cpu, map_key;
12583 cpu = p->cpu_cnt > 0 ? p->cpus[i] : i;
12589 if (p->cpu_cnt <= 0 && (cpu >= n || !online[cpu]))
12592 cpu_buf = perf_buffer__open_cpu_buf(pb, p->attr, cpu, map_key);
12604 pr_warn("failed to set cpu #%d, key %d -> perf FD %d: %s\n",
12605 cpu, map_key, cpu_buf->fd,
12615 pr_warn("failed to epoll_ctl cpu #%d perf FD %d: %s\n",
12616 cpu, cpu_buf->fd,
12656 return pb->event_cb(pb->ctx, cpu_buf->cpu, e);
12663 pb->sample_cb(pb->ctx, cpu_buf->cpu, s->data, s->size);
12670 pb->lost_cb(pb->ctx, cpu_buf->cpu, s->lost);
12907 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
12914 pr_warn("Failed to read cpu mask from %s: %d\n", fcpu, err);
12928 static const char *fcpu = "/sys/devices/system/cpu/possible";