]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf hists browser: Fixup the "cpu" column width calculation
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Sep 2015 15:14:00 +0000 (12:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Sep 2015 15:50:22 +0000 (12:50 -0300)
commita4978eca684a3b471f3da862f427e419283e93a3
tree9b84f6077f6da9f8a644c0f62b4ff9b32a3854d1
parentb699869285c4f6949f281ea57ac35ea9b9c6f467
perf hists browser: Fixup the "cpu" column width calculation

Since we were not setting it to at least 3 chars ('CPU'), it was being
reset to zero when recalculating the columns width when refreshing the
screen, in 'perf top'. Fix it.

Tested-by: Wang Nan <wangnan0@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-iqcdnkkqm6sew06x01fbijmy@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c