diff options
author | Robert Richter <robert.richter@amd.com> | 2008-07-22 15:09:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-26 05:48:13 -0400 |
commit | 852402cc27bfa1200164e9e8dc7f6e5f0a4fbd46 (patch) | |
tree | 0194e23373230888de9115f5ffaacb09e005b57a /drivers/oprofile/cpu_buffer.c | |
parent | 6aa360e6c16c145edf1837690e0f7aaea6b86ef3 (diff) |
x86/oprofile: add CONFIG_OPROFILE_IBS option
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r-- | drivers/oprofile/cpu_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index c9ac4e156918..aba905b3afb8 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c | |||
@@ -253,6 +253,8 @@ void oprofile_add_sample(struct pt_regs * const regs, unsigned long event) | |||
253 | oprofile_add_ext_sample(pc, regs, event, is_kernel); | 253 | oprofile_add_ext_sample(pc, regs, event, is_kernel); |
254 | } | 254 | } |
255 | 255 | ||
256 | #ifdef CONFIG_OPROFILE_IBS | ||
257 | |||
256 | #define MAX_IBS_SAMPLE_SIZE 14 | 258 | #define MAX_IBS_SAMPLE_SIZE 14 |
257 | static int log_ibs_sample(struct oprofile_cpu_buffer *cpu_buf, | 259 | static int log_ibs_sample(struct oprofile_cpu_buffer *cpu_buf, |
258 | unsigned long pc, int is_kernel, unsigned int *ibs, int ibs_code) | 260 | unsigned long pc, int is_kernel, unsigned int *ibs, int ibs_code) |
@@ -318,6 +320,8 @@ void oprofile_add_ibs_sample(struct pt_regs *const regs, | |||
318 | oprofile_ops.backtrace(regs, backtrace_depth); | 320 | oprofile_ops.backtrace(regs, backtrace_depth); |
319 | } | 321 | } |
320 | 322 | ||
323 | #endif | ||
324 | |||
321 | void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) | 325 | void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) |
322 | { | 326 | { |
323 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); | 327 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); |