• Steven Rostedt (Red Hat)'s avatar
    tools lib traceevent: Add options to function plugin · 49440828
    Steven Rostedt (Red Hat) authored
    Add the options "parent" and "indent" to the function plugin.
    
    When parent is set, the output looks like this:
    
    function:             fsnotify_modify <-- vfs_write
    function:             zone_statistics <-- get_page_from_freelist
    function:                __inc_zone_state <-- zone_statistics
    function:                inotify_inode_queue_event <-- fsnotify_modify
    function:                fsnotify_parent <-- fsnotify_modify
    function:                __inc_zone_state <-- zone_statistics
    function:                   __fsnotify_parent <-- fsnotify_parent
    function:                   inotify_dentry_parent_queue_event <-- fsnotify_parent
    function:             add_to_page_cache_lru <-- do_read_cache_page
    
    When it's not set, it looks like:
    
    function:             fsnotify_modify
    function:             zone_statistics
    function:                __inc_zone_state
    function:                inotify_inode_queue_event
    function:                fsnotify_parent
    function:                __inc_zone_state
    function:                   __fsnotify_parent
    function:                   inotify_dentry_parent_queue_event
    function:             add_to_page_cache_lru
    
    When the otpion "indent" is not set, it looks like this:
    
    function:             fsnotify_modify <-- vfs_write
    function:             zone_statistics <-- get_page_from_freelist
    function:             __inc_zone_state <-- zone_statistics
    function:             inotify_inode_queue_event <-- fsnotify_modify
    function:             fsnotify_parent <-- fsnotify_modify
    function:             __inc_zone_state <-- zone_statistics
    function:             __fsnotify_parent <-- fsnotify_parent
    function:             inotify_dentry_parent_queue_event <-- fsnotify_parent
    function:             add_to_page_cache_lru <-- do_read_cache_page
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Link: http://lkml.kernel.org/r/20140603032224.056940410@goodmis.orgSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    49440828
plugin_function.c 4.38 KB