Searched refs:cpu_buf (Results 1 – 2 of 2) sorted by relevance
479 struct perf_cpu_buf *cpu_buf; in perfbuf_custom_consumer() local498 cpu_buf = pb->events[i].data.ptr; in perfbuf_custom_consumer()499 header = cpu_buf->base; in perfbuf_custom_consumer()
13108 struct perf_cpu_buf *cpu_buf) in perf_buffer__free_cpu_buf() argument13110 if (!cpu_buf) in perf_buffer__free_cpu_buf()13112 if (cpu_buf->base && in perf_buffer__free_cpu_buf()13113 munmap(cpu_buf->base, pb->mmap_size + pb->page_size)) in perf_buffer__free_cpu_buf()13114 pr_warn("failed to munmap cpu_buf #%d\n", cpu_buf->cpu); in perf_buffer__free_cpu_buf()13115 if (cpu_buf->fd >= 0) { in perf_buffer__free_cpu_buf()13116 ioctl(cpu_buf->fd, PERF_EVENT_IOC_DISABLE, 0); in perf_buffer__free_cpu_buf()13117 close(cpu_buf->fd); in perf_buffer__free_cpu_buf()13119 free(cpu_buf->buf); in perf_buffer__free_cpu_buf()13120 free(cpu_buf); in perf_buffer__free_cpu_buf()[all …]