Skip to content

oprofile: implement support of samples with variable data size

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9oprofile: add op_cpu_buffer_write_reserve()drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+37 -150 replies
2/9oprofile: modify op_cpu_buffer_read_entry()drivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+25 -140 replies
3/9oprofile: rework implementation of cpu buffer eventsarch/x86/oprofile/op_model_amd.c drivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c +1 more+106 -950 replies
4/9oprofile: add op_cpu_buffer_add_data()drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h+13 -10 replies
5/9oprofile: add op_cpu_buffer_get_data()drivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.h+24 -20 replies
6/9oprofile: use new data sample format for ibsarch/x86/oprofile/op_model_amd.c drivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c +1 more+76 -1370 replies
7/9ring_buffer: fix ring_buffer_event_length()kernel/trace/ring_buffer.c+7 -10 replies
8/9oprofile: remove #ifdef CONFIG_OPROFILE_IBS in non-ibs codedrivers/oprofile/buffer_sync.c drivers/oprofile/cpu_buffer.c+0 -100 replies
9/9oprofile: make new cpu buffer functions part of the apiarch/x86/oprofile/op_model_amd.c drivers/oprofile/cpu_buffer.c drivers/oprofile/cpu_buffer.h +1 more+57 -430 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] oprofile: implement support of samples with variable data size

This patch series implements support of samples with variable data size. Current implementation has a fixed sample size of 2 unsigned longs. This makes it hard to implement use cases with a different sample size (AMD IBS or power pc cell) since buffer locking is required or samples my become incomplete. The internal cpu buffer usage has been changed now and allows the attachment of data with varable length to samples.

There are patches that also change the current ibs implementation. In the end the ibs implentation could be removed from the general oprofile code to model specific code. An API is available that provides generic functions to use variable sample sizes.

The patches are also available here:

git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git oprofile-for-tip

-Robert