Lines Matching refs:cpu_cnt
9956 int cpu_cnt; member
9981 int cpu_cnt; /* number of allocated CPU buffers */ member
10009 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free()
10108 p.cpu_cnt = opts->cpu_cnt; in perf_buffer__new_raw()
10177 if (p->cpu_cnt > 0) { in __perf_buffer__new()
10178 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new()
10180 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new()
10181 if (pb->cpu_cnt < 0) { in __perf_buffer__new()
10182 err = pb->cpu_cnt; in __perf_buffer__new()
10185 if (map.max_entries && map.max_entries < pb->cpu_cnt) in __perf_buffer__new()
10186 pb->cpu_cnt = map.max_entries; in __perf_buffer__new()
10189 pb->events = calloc(pb->cpu_cnt, sizeof(*pb->events)); in __perf_buffer__new()
10195 pb->cpu_bufs = calloc(pb->cpu_cnt, sizeof(*pb->cpu_bufs)); in __perf_buffer__new()
10208 for (i = 0, j = 0; i < pb->cpu_cnt; i++) { in __perf_buffer__new()
10212 cpu = p->cpu_cnt > 0 ? p->cpus[i] : i; in __perf_buffer__new()
10213 map_key = p->cpu_cnt > 0 ? p->map_keys[i] : i; in __perf_buffer__new()
10218 if (p->cpu_cnt <= 0 && (cpu >= n || !online[cpu])) in __perf_buffer__new()
10251 pb->cpu_cnt = j; in __perf_buffer__new()
10332 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); in perf_buffer__poll()
10350 return pb->cpu_cnt; in perf_buffer__buffer_cnt()
10362 if (buf_idx >= pb->cpu_cnt) in perf_buffer__buffer_fd()
10384 if (buf_idx >= pb->cpu_cnt) in perf_buffer__consume_buffer()
10398 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__consume()