Commit ef92480a authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Steven Rostedt

tracing: Turn seq_print_user_ip() into a static function

seq_print_user_ip() is used in only one location in one file. Turn it into a
static function. We could inject its code into the caller, but that would
make the code a bit too complex. Keep the code separate.
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 6b1032d5
...@@ -322,7 +322,7 @@ seq_print_sym_offset(struct trace_seq *s, const char *fmt, ...@@ -322,7 +322,7 @@ seq_print_sym_offset(struct trace_seq *s, const char *fmt,
# define IP_FMT "%016lx" # define IP_FMT "%016lx"
#endif #endif
int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, static int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
unsigned long ip, unsigned long sym_flags) unsigned long ip, unsigned long sym_flags)
{ {
struct file *file = NULL; struct file *file = NULL;
......
...@@ -14,8 +14,6 @@ trace_print_printk_msg_only(struct trace_iterator *iter); ...@@ -14,8 +14,6 @@ trace_print_printk_msg_only(struct trace_iterator *iter);
extern int extern int
seq_print_ip_sym(struct trace_seq *s, unsigned long ip, seq_print_ip_sym(struct trace_seq *s, unsigned long ip,
unsigned long sym_flags); unsigned long sym_flags);
extern int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
unsigned long ip, unsigned long sym_flags);
extern int trace_print_context(struct trace_iterator *iter); extern int trace_print_context(struct trace_iterator *iter);
extern int trace_print_lat_context(struct trace_iterator *iter); extern int trace_print_lat_context(struct trace_iterator *iter);
......
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