Skip to content

oprofile: port to the new ring buffer

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9oprofile: adding cpu buffer r/w access functionsdrivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+22 -120 replies
2/9oprofile: adding cpu_buffer_write_commit()drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+18 -170 replies
3/9oprofile: adding cpu_buffer_entries()drivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.h+29 -290 replies
4/9oprofile: moving cpu_buffer_reset() to cpu_buffer.hdrivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+14 -270 replies
5/9ring_buffer: add remaining cpu functions to ring_buffer.hinclude/linux/ring_buffer.h+2 -01 reply
6/9oprofile: port to the new ring_bufferdrivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+114 -854 replies
7/9oprofile: remove nr_available_slots()drivers/oprofile/cpu_buffer.c+0 -340 replies
8/9oprofile: fix lost sample counterdrivers/oprofile/cpu_buffer.c+53 -300 replies
9/9ring_buffer: adding EXPORT_SYMBOLskernel/trace/ring_buffer.c+34 -00 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchSteven Rostedt
1/9
2/9
3/9
4/9
5/9A-b
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] oprofile: port to the new ring buffer

This patch set ports cpu buffers in oprofile to the new ring buffer provided by the tracing framework. The motivation here is to leave the pain of implementing ring buffers to others. Oh, no, there are more advantages. Main reason is the support of different sample sizes that could be stored in the buffer. Use cases for this are IBS and Cell spu profiling. Using the new ring buffer ensures valid and complete samples and allows copying the cpu buffer stateless without knowing its content. Second it will use generic kernel API and also reduce code size. And hopefully, there are less bugs.

The patch set is also available here:

git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git ring_buffer

-Robert