Commit 80098c20 authored by Li Zefan's avatar Li Zefan Committed by Ingo Molnar

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: default avatarEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarPekka 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: default avatarIngo Molnar <mingo@elte.hu>
parent 6a167c65
...@@ -239,7 +239,7 @@ struct kmemtrace_user_event_alloc { ...@@ -239,7 +239,7 @@ struct kmemtrace_user_event_alloc {
}; };
static enum print_line_t static enum print_line_t
kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags) kmemtrace_print_alloc(struct trace_iterator *iter, int flags)
{ {
struct trace_seq *s = &iter->seq; struct trace_seq *s = &iter->seq;
struct kmemtrace_alloc_entry *entry; struct kmemtrace_alloc_entry *entry;
...@@ -259,7 +259,7 @@ kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags) ...@@ -259,7 +259,7 @@ kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags)
} }
static enum print_line_t static enum print_line_t
kmemtrace_print_free_user(struct trace_iterator *iter, int flags) kmemtrace_print_free(struct trace_iterator *iter, int flags)
{ {
struct trace_seq *s = &iter->seq; struct trace_seq *s = &iter->seq;
struct kmemtrace_free_entry *entry; struct kmemtrace_free_entry *entry;
...@@ -277,7 +277,7 @@ kmemtrace_print_free_user(struct trace_iterator *iter, int flags) ...@@ -277,7 +277,7 @@ kmemtrace_print_free_user(struct trace_iterator *iter, int flags)
} }
static enum print_line_t static enum print_line_t
kmemtrace_print_alloc_user_bin(struct trace_iterator *iter, int flags) kmemtrace_print_alloc_user(struct trace_iterator *iter, int flags)
{ {
struct trace_seq *s = &iter->seq; struct trace_seq *s = &iter->seq;
struct kmemtrace_alloc_entry *entry; struct kmemtrace_alloc_entry *entry;
...@@ -311,7 +311,7 @@ kmemtrace_print_alloc_user_bin(struct trace_iterator *iter, int flags) ...@@ -311,7 +311,7 @@ kmemtrace_print_alloc_user_bin(struct trace_iterator *iter, int flags)
} }
static enum print_line_t static enum print_line_t
kmemtrace_print_free_user_bin(struct trace_iterator *iter, int flags) kmemtrace_print_free_user(struct trace_iterator *iter, int flags)
{ {
struct trace_seq *s = &iter->seq; struct trace_seq *s = &iter->seq;
struct kmemtrace_free_entry *entry; struct kmemtrace_free_entry *entry;
...@@ -467,14 +467,14 @@ static enum print_line_t kmemtrace_print_line(struct trace_iterator *iter) ...@@ -467,14 +467,14 @@ static enum print_line_t kmemtrace_print_line(struct trace_iterator *iter)
static struct trace_event kmem_trace_alloc = { static struct trace_event kmem_trace_alloc = {
.type = TRACE_KMEM_ALLOC, .type = TRACE_KMEM_ALLOC,
.trace = kmemtrace_print_alloc_user, .trace = kmemtrace_print_alloc,
.binary = kmemtrace_print_alloc_user_bin, .binary = kmemtrace_print_alloc_user,
}; };
static struct trace_event kmem_trace_free = { static struct trace_event kmem_trace_free = {
.type = TRACE_KMEM_FREE, .type = TRACE_KMEM_FREE,
.trace = kmemtrace_print_free_user, .trace = kmemtrace_print_free,
.binary = kmemtrace_print_free_user_bin, .binary = kmemtrace_print_free_user,
}; };
static struct tracer kmem_tracer __read_mostly = { static struct tracer kmem_tracer __read_mostly = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment