Re: [PATCH] do not call trace_printk on non-debug build

From: Wei Wang
Date: Tue Apr 24 2018 - 17:32:46 EST


I have seen case when LLVM appends postfix to most function names, causing
func such as tracing_mark_write becomes tracing_mark_write.XXX which messed
all post-processing.
Also I think this is a typo?
https://lkml.org/lkml/2018/4/24/1176
On Tue, Apr 24, 2018 at 1:48 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 24 Apr 2018 16:45:05 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> > On Tue, 24 Apr 2018 20:39:27 +0000
> > Wei Wang <wvw@xxxxxxxxxx> wrote:
> >
> > > The config is not something new and it is controlling pr_debug and
> > > pr_devel, so might not be too annoying, IMHO. But I agree this is not
a
> > > problem from us but from abusers.
> >
> > And is the reason I never use pr_debug() and pr_devel().
> >

> Which reminds me, I need to replace pr_debug() to pr_info() for this
> line:

> pr_debug("syscall %s metadata not mapped, disabling ftrace event\n",

> In trace_syscalls.c (I didn't add that), as a different commit that
> changed syscall names for x86 caused all syscall tracepoints to
> disappear. And if this was pr_info() and not pr_debug() the one that
> made the change would have noticed his change had impact someplace else.

> -- Steve