Lines Matching defs:cpu

10749 		      pid == -1 ? 0 : -1 /* cpu */,
10890 pid == -1 ? 0 : -1, /* cpu */
11551 pid == -1 ? 0 : -1, /* cpu */
12168 pfd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, 0 /* cpu */,
12831 int cpu;
12857 pr_warn("failed to munmap cpu_buf #%d\n", cpu_buf->cpu);
12892 int cpu, int map_key)
12903 cpu_buf->cpu = cpu;
12906 cpu_buf->fd = syscall(__NR_perf_event_open, attr, -1 /* pid */, cpu,
12910 pr_warn("failed to open perf buffer event on cpu #%d: %s\n",
12911 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
12921 pr_warn("failed to mmap perf buffer on cpu #%d: %s\n",
12922 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
12928 pr_warn("failed to enable perf buffer event on cpu #%d: %s\n",
12929 cpu, libbpf_strerror_r(err, msg, sizeof(msg)));
13003 const char *online_cpus_file = "/sys/devices/system/cpu/online";
13095 int cpu, map_key;
13097 cpu = p->cpu_cnt > 0 ? p->cpus[i] : i;
13103 if (p->cpu_cnt <= 0 && (cpu >= n || !online[cpu]))
13106 cpu_buf = perf_buffer__open_cpu_buf(pb, p->attr, cpu, map_key);
13118 pr_warn("failed to set cpu #%d, key %d -> perf FD %d: %s\n",
13119 cpu, map_key, cpu_buf->fd,
13129 pr_warn("failed to epoll_ctl cpu #%d perf FD %d: %s\n",
13130 cpu, cpu_buf->fd,
13170 return pb->event_cb(pb->ctx, cpu_buf->cpu, e);
13177 pb->sample_cb(pb->ctx, cpu_buf->cpu, s->data, s->size);
13184 pb->lost_cb(pb->ctx, cpu_buf->cpu, s->lost);
13421 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
13428 pr_warn("Failed to read cpu mask from %s: %d\n", fcpu, err);
13442 static const char *fcpu = "/sys/devices/system/cpu/possible";