• Arnaldo Carvalho de Melo's avatar
    perf annotate tui: Move have_cycles to struct annotation · 0e83a7e9
    Arnaldo Carvalho de Melo authored
    This is to pave the way to have more functions shared between TUI, stdio
    and the upcoming stdio2 formatting, that will use the __scnprintf
    functions used by --tui in a --stdio fashion.
    
    This partially addresses the comments added in cset 30e863bb ("perf
    annotate: Compute IPC and basic block cycles"):
    
    /*
     * This should probably be in util/annotate.c to share with the tty
     * annotate, but right now we need the per byte offsets arrays,
     * which are only here.
     */
    
    The following patches will address the rest.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-yftvybgx1s8sevs6kp1an0ft@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    0e83a7e9
annotate.c 32.5 KB