android_kernel_xiaomi_sm8350/drivers/oprofile
Robert Richter ae735e9964 oprofile: rework implementation of cpu buffer events
Special events such as task or context switches are marked with an
escape code in the cpu buffer followed by an event code or a task
identifier. There is one escape code per event. To make escape
sequences also available for data samples the internal cpu buffer
format must be changed. The current implementation does not allow the
extension of event codes since this would lead to collisions with the
task identifiers. To avoid this, this patch introduces an event mask
that allows the storage of multiple events with one escape code. Now,
task identifiers are stored in the data section of the sample. The
implementation also allows the usage of custom data in a sample. As a
side effect the new code is much more readable and easier to
understand.

Signed-off-by: Robert Richter <robert.richter@amd.com>
2009-01-07 22:40:47 +01:00
..
buffer_sync.c oprofile: rework implementation of cpu buffer events 2009-01-07 22:40:47 +01:00
buffer_sync.h oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00
cpu_buffer.c oprofile: rework implementation of cpu buffer events 2009-01-07 22:40:47 +01:00
cpu_buffer.h oprofile: rework implementation of cpu buffer events 2009-01-07 22:40:47 +01:00
event_buffer.c oprofile: rename kernel-wide identifiers 2008-12-16 17:52:49 +01:00
event_buffer.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile 2008-10-23 10:05:40 -07:00
oprof.c oprofile: rename kernel-wide identifiers 2008-12-16 17:52:49 +01:00
oprof.h oprofile: rename kernel-wide identifiers 2008-12-16 17:52:49 +01:00
oprofile_files.c oprofile: rename kernel-wide identifiers 2008-12-16 17:52:49 +01:00
oprofile_stats.c oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00
oprofile_stats.h oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00
oprofilefs.c oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00
timer_int.c oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00