Home
last modified time | relevance | path

Searched refs:cpu_buf (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/oprofile/
Dcpu_buffer.c50 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in oprofile_cpu_buffer_inc_smpl_lost() local
52 cpu_buf->sample_lost_overflow++; in oprofile_cpu_buffer_inc_smpl_lost()
184 op_add_code(struct oprofile_cpu_buffer *cpu_buf, unsigned long backtrace, in op_add_code() argument
199 if (cpu_buf->last_is_kernel != is_kernel) { in op_add_code()
200 cpu_buf->last_is_kernel = is_kernel; in op_add_code()
207 if (cpu_buf->last_task != task) { in op_add_code()
208 cpu_buf->last_task = task; in op_add_code()
237 op_add_sample(struct oprofile_cpu_buffer *cpu_buf, in op_add_sample() argument
262 log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, in log_sample() argument
267 cpu_buf->sample_received++; in log_sample()
[all …]
Doprofile_stats.c22 struct oprofile_cpu_buffer *cpu_buf; in oprofile_reset_stats() local
26 cpu_buf = &per_cpu(op_cpu_buffer, i); in oprofile_reset_stats()
27 cpu_buf->sample_received = 0; in oprofile_reset_stats()
28 cpu_buf->sample_lost_overflow = 0; in oprofile_reset_stats()
29 cpu_buf->backtrace_aborted = 0; in oprofile_reset_stats()
30 cpu_buf->sample_invalid_eip = 0; in oprofile_reset_stats()
43 struct oprofile_cpu_buffer *cpu_buf; in oprofile_create_stats_files() local
54 cpu_buf = &per_cpu(op_cpu_buffer, i); in oprofile_create_stats_files()
63 &cpu_buf->sample_received); in oprofile_create_stats_files()
65 &cpu_buf->sample_lost_overflow); in oprofile_create_stats_files()
[all …]
Dcpu_buffer.h64 struct oprofile_cpu_buffer *cpu_buf = &per_cpu(op_cpu_buffer, cpu); in op_cpu_buffer_reset() local
66 cpu_buf->last_is_kernel = -1; in op_cpu_buffer_reset()
67 cpu_buf->last_task = NULL; in op_cpu_buffer_reset()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c9974 struct perf_cpu_buf *cpu_buf) in perf_buffer__free_cpu_buf() argument
9976 if (!cpu_buf) in perf_buffer__free_cpu_buf()
9978 if (cpu_buf->base && in perf_buffer__free_cpu_buf()
9979 munmap(cpu_buf->base, pb->mmap_size + pb->page_size)) in perf_buffer__free_cpu_buf()
9980 pr_warn("failed to munmap cpu_buf #%d\n", cpu_buf->cpu); in perf_buffer__free_cpu_buf()
9981 if (cpu_buf->fd >= 0) { in perf_buffer__free_cpu_buf()
9982 ioctl(cpu_buf->fd, PERF_EVENT_IOC_DISABLE, 0); in perf_buffer__free_cpu_buf()
9983 close(cpu_buf->fd); in perf_buffer__free_cpu_buf()
9985 free(cpu_buf->buf); in perf_buffer__free_cpu_buf()
9986 free(cpu_buf); in perf_buffer__free_cpu_buf()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c483 struct perf_cpu_buf *cpu_buf; in perfbuf_custom_consumer() local
502 cpu_buf = pb->events[i].data.ptr; in perfbuf_custom_consumer()
503 header = cpu_buf->base; in perfbuf_custom_consumer()