linux/drivers/oprofile
Jason Yeh 4d4036e0e7 oprofile: Implement performance counter multiplexing
The number of hardware counters is limited. The multiplexing feature
enables OProfile to gather more events than counters are provided by
the hardware. This is realized by switching between events at an user
specified time interval.

A new file (/dev/oprofile/time_slice) is added for the user to specify
the timer interval in ms. If the number of events to profile is higher
than the number of hardware counters available, the patch will
schedule a work queue that switches the event counter and re-writes
the different sets of values into it. The switching mechanism needs to
be implemented for each architecture to support multiplexing. This
patch only implements AMD CPU support, but multiplexing can be easily
extended for other models and architectures.

There are follow-on patches that rework parts of this patch.

Signed-off-by: Jason Yeh <jason.yeh@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
2009-07-20 16:33:53 +02:00
..
buffer_sync.c oprofile: Thou shalt not call __exit functions from __init functions 2009-03-30 22:05:18 +10:30
buffer_sync.h cpumask: modifiy oprofile initialization 2009-01-22 14:37:06 +01:00
cpu_buffer.c x86/oprofile: introduce oprofile_add_data64() 2009-06-11 20:16:00 +02:00
cpu_buffer.h oprofile: fix uninitialized use of struct op_entry 2009-01-17 17:26:39 +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: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00
oprof.h oprofile: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00
oprofile_files.c oprofile: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00
oprofile_stats.c oprofile: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00
oprofile_stats.h oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00
oprofilefs.c zero i_uid/i_gid on inode allocation 2009-01-05 11:54:28 -05:00
timer_int.c oprofile: fixing whitespaces in drivers/oprofile/* 2008-10-16 15:01:40 +02:00