]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Add color overhead for stdio output buffer
authorJiri Olsa <jolsa@redhat.com>
Fri, 25 Oct 2013 11:24:53 +0000 (13:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Oct 2013 19:05:59 +0000 (16:05 -0300)
commit9eeb4914c953abc70ed6fd67436372fb72b57e75
tree2a7035d6acba325c3111eeb50a5dec29f2dc69f2
parente34d6ded32ac7f9605c13600326c59e362c85a78
perf hists: Add color overhead for stdio output buffer

Following commit tightened up the buffer size for output to strict width
of used format columns:

  d4a36b7 perf hists: Fix formatting of long symbol names

This works fine until you hit color overhead output which places extra
bytes into output buffer. We need to account for color overhead in the
output buffer. Adding maximum color byte size to the output buffer size.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1382700293-1803-1-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/stdio/hist.c
tools/perf/util/hist.h