History log of /arch/x86/oprofile/op_counter.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
914a76ca5eedc9f286a36f61c4eaa95b451ba3e6 16-Mar-2011 Andi Kleen <ak@linux.intel.com> oprofile, x86: Allow setting EDGE/INV/CMASK for counter events

For some performance events it's useful to set the EDGE and INV
bits and the CMASK mask in the counter control register. The list
of predefined events Intel releases for each CPU has some events which
require these settings to get more "natural" to use higher level events.

oprofile currently doesn't allow this.

This patch adds new extra configuration fields for them, so that
they can be specified in oprofilefs.

An updated oprofile daemon can then make use of this to set them.

v2: Write back masked extra value to variable.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
/arch/x86/oprofile/op_counter.h
4d4036e0e7299c6cbb2d2421b4b30b7a409ce61a 08-Jul-2009 Jason Yeh <jason.yeh@amd.com> 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>
/arch/x86/oprofile/op_counter.h
0f019cc477b494dfc472f2a98eb64d02d4937741 16-Oct-2008 Robert Richter <robert.richter@amd.com> oprofile: fixing whitespaces in arch/x86/oprofile/*

Signed-off-by: Robert Richter <robert.richter@amd.com>
/arch/x86/oprofile/op_counter.h
4c168eaf7ea39f25a45a3d8c7eebc3fedb633a1d 24-Sep-2008 Robert Richter <robert.richter@amd.com> Revert "Oprofile Multiplexing Patch"

Reverting commit 1a960b402a51d80abf54e3f8e4972374ffe5f22d for the main
branch. Multiplexing will be tracked on a separate feature branch.

Conflicts:

arch/x86/oprofile/nmi_int.c
/arch/x86/oprofile/op_counter.h
1a960b402a51d80abf54e3f8e4972374ffe5f22d 23-Jul-2008 Jason Yeh <jason.yeh@amd.com> Oprofile Multiplexing Patch

This patch introduces multiplexing support for the Oprofile kernel
module. It basically adds a new function pointer in oprofile_operator
allowing each architecture to supply its callback to switch between
different sets of event when the timer expires. Userspace tools can
modify the time slice through /dev/oprofile/time_slice.

It also modifies the number of counters exposed to the userspace through
/dev/oprofile. For example, the number of counters for AMD CPUs are
changed to 32 and multiplexed in the sets of 4.

Signed-off-by: Jason Yeh <jason.yeh@amd.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
/arch/x86/oprofile/op_counter.h
ff4395654dc6a3a5e35611940047114d4f3d0a7a 11-Oct-2007 Thomas Gleixner <tglx@linutronix.de> i386: move oprofile

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
/arch/x86/oprofile/op_counter.h