diff options
author | Robert Richter <robert.richter@amd.com> | 2008-12-25 17:26:07 +0100 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-01-07 22:40:47 +0100 |
commit | ae735e9964b4584923f2997d98a8d80ae9c1a75c (patch) | |
tree | 0fc72d18bcc5951f9dd519e8a4527593724b816f /kernel/delayacct.c | |
parent | 2d87b14cf8d0b07720de26d90789d02124141616 (diff) | |
download | kernel_samsung_espresso10-ae735e9964b4584923f2997d98a8d80ae9c1a75c.zip kernel_samsung_espresso10-ae735e9964b4584923f2997d98a8d80ae9c1a75c.tar.gz kernel_samsung_espresso10-ae735e9964b4584923f2997d98a8d80ae9c1a75c.tar.bz2 |
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>
Diffstat (limited to 'kernel/delayacct.c')
0 files changed, 0 insertions, 0 deletions