• Li Zefan's avatar
    ftrace: Fix t_hash_start() · d82d6244
    Li Zefan authored
    When the output of set_ftrace_filter is larger than PAGE_SIZE,
    t_hash_start() will be called the 2nd time, and then we start
    from the head of a hlist, which is wrong and causes some entries
    to be outputed twice.
    
    The worse is, if the hlist is large enough, reading set_ftrace_filter
    won't stop but in a dead loop.
    Reviewed-by: default avatarLiming Wang <liming.wang@windriver.com>
    Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <4A41876E.2060407@cn.fujitsu.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    d82d6244
ftrace.c 70.5 KB