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>
Showing
- arch/x86/oprofile/nmi_int.c 92 additions, 8 deletionsarch/x86/oprofile/nmi_int.c
- arch/x86/oprofile/op_counter.h 2 additions, 1 deletionarch/x86/oprofile/op_counter.h
- arch/x86/oprofile/op_model_amd.c 46 additions, 30 deletionsarch/x86/oprofile/op_model_amd.c
- arch/x86/oprofile/op_model_p4.c 4 additions, 0 deletionsarch/x86/oprofile/op_model_p4.c
- arch/x86/oprofile/op_model_ppro.c 2 additions, 0 deletionsarch/x86/oprofile/op_model_ppro.c
- arch/x86/oprofile/op_x86_model.h 3 additions, 0 deletionsarch/x86/oprofile/op_x86_model.h
- drivers/oprofile/oprof.c 55 additions, 3 deletionsdrivers/oprofile/oprof.c
- drivers/oprofile/oprof.h 3 additions, 1 deletiondrivers/oprofile/oprof.h
- drivers/oprofile/oprofile_files.c 37 additions, 2 deletionsdrivers/oprofile/oprofile_files.c
- include/linux/oprofile.h 3 additions, 0 deletionsinclude/linux/oprofile.h
Loading
Please register or sign in to comment