Re: [PATCH 01/50] kallsyms/printk: Add loglvl to print_ip_sym()
From: Steven Rostedt
Date: Wed Nov 13 2019 - 10:49:51 EST
On Wed, 6 Nov 2019 03:04:52 +0000
Dmitry Safonov <dima@xxxxxxxxxx> wrote:
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -2002,12 +2002,12 @@ void ftrace_bug(int failed, struct dyn_ftrace *rec)
> case -EFAULT:
> FTRACE_WARN_ON_ONCE(1);
> pr_info("ftrace faulted on modifying ");
Hmm, I wonder if I should change that from info to something more
important, as this is important information for debugging. But this has
nothing to do with this patch set.
> - print_ip_sym(ip);
> + print_ip_sym(KERN_INFO, ip);
Acked-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
-- Steve
> break;
> case -EINVAL:
> FTRACE_WARN_ON_ONCE(1);
> pr_info("ftrace failed to modify ");
> - print_ip_sym(ip);
> + print_ip_sym(KERN_INFO, ip);
> print_ip_ins(" actual: ", (unsigned char *)ip);
> pr_cont("\n");
> if (ftrace_expected) {
> @@ -2018,12 +2018,12 @@ void ftrace_bug(int failed, struct dyn_ftrace *rec)
> case -EPERM:
> FTRACE_WARN_ON_ONCE(1);
> pr_info("ftrace faulted on writing ");
> - print_ip_sym(ip);
> + print_ip_sym(KERN_INFO, ip);
> break;
> default:
> FTRACE_WARN_ON_ONCE(1);
> pr_info("ftrace faulted on unknown error ");
> - print_ip_sym(ip);
> + print_ip_sym(KERN_INFO, ip);
> }
> print_bug_type();
> if (rec) {