• Jiri Olsa's avatar
    tracing: Fix set_ftrace_filter probe function display · 1106b699
    Jiri Olsa authored
    If one or more function probes (like traceon) are enabled,
    and there's no other function filter, the first probe
    func is skipped (which one depends on the position in the hash).
    
    $ echo sys_open:traceon sys_close:traceon > ./set_ftrace_filter
    $ cat set_ftrace_filter
    #### all functions enabled ####
    sys_close:traceon:unlimited
    $
    
    The reason was, that in the case of no other function filter,
    the func_pos was not properly updated before calling t_hash_start.
    Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
    LKML-Reference: <1297874134-7008-1-git-send-email-jolsa@redhat.com>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    1106b699
ftrace.c 73 KB