• S
    tracing/events: reuse trace event ids after overflow · 060fa5c8
    Steven Rostedt 提交于
    With modules being able to add trace events, and the max trace event
    counter is 16 bits (65536) we can overflow the counter easily
    with a simple while loop adding and removing modules that contain
    trace events.
    
    This patch links together the registered trace events and on overflow
    searches for available trace event ids. It will still fail if
    over 65536 events are registered, but considering that a typical
    kernel only has 22000 functions, 65000 events should be sufficient.
    Reported-by: NLi Zefan <lizf@cn.fujitsu.com>
    Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
    060fa5c8
trace_output.c 22.9 KB