Lines Matching refs:cpu_cnt
5313 int cpu_cnt; member
5338 int cpu_cnt; member
5366 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free()
5465 p.cpu_cnt = opts->cpu_cnt; in perf_buffer__new_raw()
5523 if (p->cpu_cnt > 0) { in __perf_buffer__new()
5524 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new()
5526 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new()
5527 if (pb->cpu_cnt < 0) { in __perf_buffer__new()
5528 err = pb->cpu_cnt; in __perf_buffer__new()
5531 if (map.max_entries < pb->cpu_cnt) in __perf_buffer__new()
5532 pb->cpu_cnt = map.max_entries; in __perf_buffer__new()
5535 pb->events = calloc(pb->cpu_cnt, sizeof(*pb->events)); in __perf_buffer__new()
5541 pb->cpu_bufs = calloc(pb->cpu_cnt, sizeof(*pb->cpu_bufs)); in __perf_buffer__new()
5548 for (i = 0; i < pb->cpu_cnt; i++) { in __perf_buffer__new()
5552 cpu = p->cpu_cnt > 0 ? p->cpus[i] : i; in __perf_buffer__new()
5553 map_key = p->cpu_cnt > 0 ? p->map_keys[i] : i; in __perf_buffer__new()
5657 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); in perf_buffer__poll()