]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: toplevel d_entry already initialized
authorWei Yang <richard.weiyang@linux.alibaba.com>
Sun, 12 Jul 2020 01:10:35 +0000 (09:10 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 19 Sep 2020 02:17:14 +0000 (22:17 -0400)
commit89958e8ca7125b125a3d045c5d62bcaf2beaec11
tree56c4a404067873c29a3d629eb35b3acae972b4a4
parent8932a5329b1931249a6c6b313be3637862e495c7
tracing: toplevel d_entry already initialized

Currently we have following call flow:

    tracer_init_tracefs()
        tracing_init_dentry()
        event_trace_init()
            tracing_init_dentry()

This shows tracing_init_dentry() is called twice in this flow and this
is not necessary.

Let's remove the second one when it is for sure be properly initialized.

Link: https://lkml.kernel.org/r/20200712011036.70948-4-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events.c