diff options
author | Robert Richter <robert.richter@amd.com> | 2008-12-16 10:19:54 -0500 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2008-12-16 11:52:49 -0500 |
commit | bd2172f58094b3f8afa017e68f3f0b57577824e1 (patch) | |
tree | a5a0c5aad2bb04567622a5259164a30e7ba80fb4 /drivers/oprofile/cpu_buffer.c | |
parent | d69d59f49763e6bd047c591c6c1f84c8e13da931 (diff) |
oprofile: rename kernel-wide identifiers
This patch renames kernel-wide identifiers to something more oprofile
specific names.
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r-- | drivers/oprofile/cpu_buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index 61090969158f..fcf96f608d86 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c | |||
@@ -66,7 +66,7 @@ void free_cpu_buffers(void) | |||
66 | 66 | ||
67 | unsigned long oprofile_get_cpu_buffer_size(void) | 67 | unsigned long oprofile_get_cpu_buffer_size(void) |
68 | { | 68 | { |
69 | return fs_cpu_buffer_size; | 69 | return oprofile_cpu_buffer_size; |
70 | } | 70 | } |
71 | 71 | ||
72 | void oprofile_cpu_buffer_inc_smpl_lost(void) | 72 | void oprofile_cpu_buffer_inc_smpl_lost(void) |
@@ -81,7 +81,7 @@ int alloc_cpu_buffers(void) | |||
81 | { | 81 | { |
82 | int i; | 82 | int i; |
83 | 83 | ||
84 | unsigned long buffer_size = fs_cpu_buffer_size; | 84 | unsigned long buffer_size = oprofile_cpu_buffer_size; |
85 | 85 | ||
86 | op_ring_buffer_read = ring_buffer_alloc(buffer_size, OP_BUFFER_FLAGS); | 86 | op_ring_buffer_read = ring_buffer_alloc(buffer_size, OP_BUFFER_FLAGS); |
87 | if (!op_ring_buffer_read) | 87 | if (!op_ring_buffer_read) |
@@ -238,7 +238,7 @@ void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, | |||
238 | { | 238 | { |
239 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); | 239 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); |
240 | 240 | ||
241 | if (!backtrace_depth) { | 241 | if (!oprofile_backtrace_depth) { |
242 | log_sample(cpu_buf, pc, is_kernel, event); | 242 | log_sample(cpu_buf, pc, is_kernel, event); |
243 | return; | 243 | return; |
244 | } | 244 | } |
@@ -251,7 +251,7 @@ void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, | |||
251 | * source of this event | 251 | * source of this event |
252 | */ | 252 | */ |
253 | if (log_sample(cpu_buf, pc, is_kernel, event)) | 253 | if (log_sample(cpu_buf, pc, is_kernel, event)) |
254 | oprofile_ops.backtrace(regs, backtrace_depth); | 254 | oprofile_ops.backtrace(regs, oprofile_backtrace_depth); |
255 | oprofile_end_trace(cpu_buf); | 255 | oprofile_end_trace(cpu_buf); |
256 | } | 256 | } |
257 | 257 | ||
@@ -308,8 +308,8 @@ void oprofile_add_ibs_sample(struct pt_regs * const regs, | |||
308 | if (fail) | 308 | if (fail) |
309 | goto fail; | 309 | goto fail; |
310 | 310 | ||
311 | if (backtrace_depth) | 311 | if (oprofile_backtrace_depth) |
312 | oprofile_ops.backtrace(regs, backtrace_depth); | 312 | oprofile_ops.backtrace(regs, oprofile_backtrace_depth); |
313 | 313 | ||
314 | return; | 314 | return; |
315 | 315 | ||