trace_irqsoff: remove redundant reset per-CPU buff
Subsystems (2)
RFC 1/1 trace_irqsoff: remove redundant reset per-CPU buff
There is no reason to do it twice: from commit b6f11df26fdc28
("trace: Call tracing_reset_online_cpus before tracer->init()") resetting of per-CPU buffers done before tracer->init() call.
tracer->init() calls {irqs,preempt,preemptirqs}off_tracer_init() and it calls __irqsoff_tracer_init(), which resets per-CPU ringbuffer second time.
It's slowpath, but anyway.
--- kernel/trace/trace_irqsoff.c | 1 - 1 file changed, 1 deletion(-)
kernel/trace/trace_irqsoff.c +0 -1
@@ -612,7 +612,6 @@ static int __irqsoff_tracer_init(struct trace_array *tr) irqsoff_trace = tr;/* make sure that the tracer is visible */ smp_wmb (); -tracing_reset_online_cpus (&tr->trace_buffer);ftrace_init_array_ops (tr, irqsoff_tracer_call);
Signature · 1 line
2.6.1
Ping?
Steven Rostedt
maintainerQuoted 1 line · On Tue, 3 Nov 2015 21:25:44 +0300 Dmitry Safonov <[email protected]> wrote:
Ping?
Thanks, this was lost in my INBOX. I'll take a look at it.
-- Steve
Steven Rostedt
maintainerQuoted 8 lines · On Mon, 19 Oct 2015 21:10:26 +0300 Dmitry Safonov <[email protected]> wrote:
There is no reason to do it twice: from commit
b6f11df26fdc28
("trace: Calltracing_reset_online_cpusbeforetracer->init()") resetting of per-CPU buffers done beforetracer->init()call.
tracer->init()calls {irqs,preempt,preemptirqs}off_tracer_init() and it calls__irqsoff_tracer_init(), which resets per-CPU ringbuffer second time.
It's slowpath, but anyway.
Bah, I said I'd look at this and I did. But never added it to my queue. It's not a big deal as this is the slow path but it makes sense. I knew there was a patch from you to get but saw the TP_ARGS redefining patch and thought that was it.
I Cc'd myself on this to make sure I see it again.
-- Steve
Quoted 18 lines
Signed-off-by Dmitry Safonov <[email protected]>--- kernel/trace/trace_irqsoff.c | 1 - 1 file changed, 1 deletion(-)kernel/trace/trace_irqsoff.c +0
-1@@ -612,7 +612,6 @@ static int __irqsoff_tracer_init(struct trace_array *tr) irqsoff_trace = tr;/* make sure that the tracer is visible */ smp_wmb (); -tracing_reset_online_cpus (&tr->trace_buffer);ftrace_init_array_ops (tr, irqsoff_tracer_call);
2016-02-05 5:40 GMT+03:00 Steven Rostedt <[email protected]>:
Quoted 12 lines
Quoted 8 lines · On Mon, 19 Oct 2015 21:10:26 +0300 Dmitry Safonov <[email protected]> wrote:
There is no reason to do it twice: from commit
b6f11df26fdc28
("trace: Calltracing_reset_online_cpusbeforetracer->init()") resetting of per-CPU buffers done beforetracer->init()call.
tracer->init()calls {irqs,preempt,preemptirqs}off_tracer_init() and it calls__irqsoff_tracer_init(), which resets per-CPU ringbuffer second time.
It's slowpath, but anyway.
Quoted 4 lines
Bah, I said I'd look at this and I did. But never added it to my queue. It's not a big deal as this is the slow path but it makes sense. I knew there was a patch from you to get but saw the
TP_ARGSredefining patch and thought that was it.
Thanks, Steve!
Yeah, I know it may take time to get to unimportant patches that are also mostly cleanups.
Don't worry, please, take a glance when you'll have time on these small also not important cleanings (I'm fine if you'll drop them all):
https://lkml.org/lkml/2015/11/20/290
https://lkml.org/lkml/2015/11/20/291
https://lkml.org/lkml/2015/10/30/580
Quoted 4 lines
I Cc'd myself on this to make sure I see it again.
-- Steve
Signature · 2 lines
Regards, Safonov Dmitry.
Steven Rostedt
maintainerQuoted 18 lines · On Fri, 5 Feb 2016 14:52:53 +0300 Dmitry Safonov <[email protected]> wrote:
2016-02-05 5:40 GMT+03:00 Steven Rostedt <[email protected]>:
Quoted 12 lines
Quoted 8 lines · On Mon, 19 Oct 2015 21:10:26 +0300 Dmitry Safonov <[email protected]> wrote:
There is no reason to do it twice: from commit
b6f11df26fdc28
("trace: Calltracing_reset_online_cpusbeforetracer->init()") resetting of per-CPU buffers done beforetracer->init()call.
tracer->init()calls {irqs,preempt,preemptirqs}off_tracer_init() and it calls__irqsoff_tracer_init(), which resets per-CPU ringbuffer second time.
It's slowpath, but anyway.Quoted 4 lines
Bah, I said I'd look at this and I did. But never added it to my queue. It's not a big deal as this is the slow path but it makes sense. I knew there was a patch from you to get but saw the
TP_ARGSredefining patch and thought that was it.
Quoted 8 lines
Thanks, Steve!
Yeah, I know it may take time to get to unimportant patches that are also mostly cleanups.
Don't worry, please, take a glance when you'll have time on these small also not important cleanings (I'm fine if you'll drop them all):
https://lkml.org/lkml/2015/11/20/290
https://lkml.org/lkml/2015/11/20/291
https://lkml.org/lkml/2015/10/30/580
I'm slowing going through my INBOX (doing clean up to see what I missed). I'm currently at 11/10. I marked your 10/30 one already as a "go back and look at later".
-- Steve
Steven Rostedt
maintainerQuoted 4 lines · On Fri, 5 Feb 2016 14:52:53 +0300 Dmitry Safonov <[email protected]> wrote:
Thanks, Steve!
Yeah, I know it may take time to get to unimportant patches that are also mostly cleanups.
Also, FYI, even if you do an RFC, include "PATCH" in the brackets as well. I usually have "[RFC][PATCH]". Because when I'm looking for patches in my inbox, I will filter for PATCH. If a patch is out there without that in the subject, it is much more likely to be missed (and most likely will).
-- Steve
2016-02-05 18:04 GMT+03:00 Steven Rostedt <[email protected]>:
Quoted 5 lines
Also, FYI, even if you do an RFC, include "PATCH" in the brackets as well. I usually have "[RFC][PATCH]". Because when I'm looking for patches in my inbox, I will filter for PATCH. If a patch is out there without that in the subject, it is much more likely to be missed (and most likely will).
Will do.
And I added RFC mostly because, I didn't see the reason for reseting second time, but if it has been (I wasn't sure), I wanted to add a comment, why.
Signature · 2 lines
Regards, Safonov Dmitry.