• S
    tracing: append ":*" to internal setting of system events · d6bf81ef
    Steven Rostedt 提交于
    The system enabling of events uses the same code as the set_event file.
    It passes in the name of the system to the parser and that will enable
    all the events that has that system as a name.
    
    The problem is that it will also enable events with the same name as the
    system.
    
    If you have system name foo, and system name bar, but within the system
    bar, there exists an event called foo. By setting the system name foo,
    you will also be enabling the event foo in the system bar. This is not
    an expected result.
    
    The solution is to pass in "foo:*", which will only enable the system
    foo and not events called foo.
    
    [ Impact: prevent accidental enabling of events with same name as a system ]
    Reported-by: NLi Zefan <lizf@cn.fujitsu.com>
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    d6bf81ef
trace_events.c 28.3 KB