summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/sort.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2015-08-10 21:53:54 +0200
committerArnaldo Carvalho de Melo2015-08-10 22:19:59 +0200
commite8e6d37e73e6b950c891c780745460b87f4755b6 (patch)
tree008c923aeea11295721f3e24b4fbcdf35a4b05e5 /tools/perf/util/sort.h
parentperf hists: hist_entry__cmp() may use he_tmp.hists, initialize it (diff)
downloadkernel-qcow2-linux-e8e6d37e73e6b950c891c780745460b87f4755b6.tar.gz
kernel-qcow2-linux-e8e6d37e73e6b950c891c780745460b87f4755b6.tar.xz
kernel-qcow2-linux-e8e6d37e73e6b950c891c780745460b87f4755b6.zip
perf hists: Update the column width for the "srcline" sort key
When we introduce a new sort key, we need to update the hists__calc_col_len() function accordingly, otherwise the width will be limited to strlen(header). We can't update it when obtaining a line value for a column (for instance, in sort__srcline_cmp()), because we reset it all when doing a resort (see hists__output_recalc_col_len()), so we need to, from what is in the hist_entry fields, set each of the column widths. Cc: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: Jiri Olsa <jolsa@kernel.org> Fixes: 409a8be61560 ("perf tools: Add sort by src line/number") Link: http://lkml.kernel.org/n/tip-jgbe0yx8v1gs89cslr93pvz2@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/sort.h')
0 files changed, 0 insertions, 0 deletions