diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-07-06 04:15:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-10 06:09:04 -0400 |
commit | 80098c200e2ee3b4c86a9d1e156dbcd05380e08f (patch) | |
tree | 25a216567c02e94a9f4203ddc452fb24bb200176 /kernel | |
parent | 6a167c655858cbec4175532fd00417661c87f149 (diff) |
kmemtrace: Rename some functions
So we have:
- kmemtrace_print_alloc/free() for kmemtrace default output
- kmemtrace_print_alloc/free_user() for binary output used
by kmemtrace-user.
Suggested-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A51B288.70505@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/kmemtrace.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c index 2f6fa47d410c..dda53ccf749b 100644 --- a/kernel/trace/kmemtrace.c +++ b/kernel/trace/kmemtrace.c | |||
@@ -239,7 +239,7 @@ struct kmemtrace_user_event_alloc { | |||
239 | }; | 239 | }; |
240 | 240 | ||
241 | static enum print_line_t | 241 | static enum print_line_t |
242 | kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags) | 242 | kmemtrace_print_alloc(struct trace_iterator *iter, int flags) |
243 | { | 243 | { |
244 | struct trace_seq *s = &iter->seq; | 244 | struct trace_seq *s = &iter->seq; |
245 | struct kmemtrace_alloc_entry *entry; | 245 | struct kmemtrace_alloc_entry *entry; |
@@ -259,7 +259,7 @@ kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags) | |||
259 | } | 259 | } |
260 | 260 | ||
261 | static enum print_line_t | 261 | static enum print_line_t |
262 | kmemtrace_print_free_user(struct trace_iterator *iter, int flags) | 262 | kmemtrace_print_free(struct trace_iterator *iter, int flags) |
263 | { | 263 | { |
264 | struct trace_seq *s = &iter->seq; | 264 | struct trace_seq *s = &iter->seq; |
265 | struct kmemtrace_free_entry *entry; | 265 | struct kmemtrace_free_entry *entry; |
@@ -277,7 +277,7 @@ kmemtrace_print_free_user(struct trace_iterator *iter, int flags) | |||
277 | } | 277 | } |
278 | 278 | ||
279 | static enum print_line_t | 279 | static enum print_line_t |
280 | kmemtrace_print_alloc_user_bin(struct trace_iterator *iter, int flags) | 280 | kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags) |
281 | { | 281 | { |
282 | struct trace_seq *s = &iter->seq; | 282 | struct trace_seq *s = &iter->seq; |
283 | struct kmemtrace_alloc_entry *entry; | 283 | struct kmemtrace_alloc_entry *entry; |
@@ -311,7 +311,7 @@ kmemtrace_print_alloc_user_bin(struct trace_iterator *iter, int flags) | |||
311 | } | 311 | } |
312 | 312 | ||
313 | static enum print_line_t | 313 | static enum print_line_t |
314 | kmemtrace_print_free_user_bin(struct trace_iterator *iter, int flags) | 314 | kmemtrace_print_free_user(struct trace_iterator *iter, int flags) |
315 | { | 315 | { |
316 | struct trace_seq *s = &iter->seq; | 316 | struct trace_seq *s = &iter->seq; |
317 | struct kmemtrace_free_entry *entry; | 317 | struct kmemtrace_free_entry *entry; |
@@ -467,14 +467,14 @@ static enum print_line_t kmemtrace_print_line(struct trace_iterator *iter) | |||
467 | 467 | ||
468 | static struct trace_event kmem_trace_alloc = { | 468 | static struct trace_event kmem_trace_alloc = { |
469 | .type = TRACE_KMEM_ALLOC, | 469 | .type = TRACE_KMEM_ALLOC, |
470 | .trace = kmemtrace_print_alloc_user, | 470 | .trace = kmemtrace_print_alloc, |
471 | .binary = kmemtrace_print_alloc_user_bin, | 471 | .binary = kmemtrace_print_alloc_user, |
472 | }; | 472 | }; |
473 | 473 | ||
474 | static struct trace_event kmem_trace_free = { | 474 | static struct trace_event kmem_trace_free = { |
475 | .type = TRACE_KMEM_FREE, | 475 | .type = TRACE_KMEM_FREE, |
476 | .trace = kmemtrace_print_free_user, | 476 | .trace = kmemtrace_print_free, |
477 | .binary = kmemtrace_print_free_user_bin, | 477 | .binary = kmemtrace_print_free_user, |
478 | }; | 478 | }; |
479 | 479 | ||
480 | static struct tracer kmem_tracer __read_mostly = { | 480 | static struct tracer kmem_tracer __read_mostly = { |