aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/hist.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-12-06 08:22:28 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-12-09 06:46:07 -0500
commitdb6d0bb86164497f6c9ef46020cf1881953f4b08 (patch)
tree5529ab9d501cc19d7e2d26cf5f4dfac7231c1833 /tools/perf/ui/hist.c
parentf0bf9107679f3670e5fbd52a934b7816256007f7 (diff)
perf diff: Remove displacement output option
It seems not very useful, because it's possible and event more convenient to lookup related symbol by name. Also the output value for both 'baseline' and 'new' data is quite apparent from diff output. And above all it complicates hist code factoring ;) Ditching out PERF_HPP__DISPL column with related output functions. Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Ingo Molnar <mingo@kernel.org> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/20121206132228.GB1080@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/hist.c')
-rw-r--r--tools/perf/ui/hist.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c
index 1785bab7adfd..1889c12ca81f 100644
--- a/tools/perf/ui/hist.c
+++ b/tools/perf/ui/hist.c
@@ -351,30 +351,6 @@ static int hpp__entry_wdiff(struct perf_hpp *hpp, struct hist_entry *he)
351 return scnprintf(hpp->buf, hpp->size, fmt, buf); 351 return scnprintf(hpp->buf, hpp->size, fmt, buf);
352} 352}
353 353
354static int hpp__header_displ(struct perf_hpp *hpp)
355{
356 return scnprintf(hpp->buf, hpp->size, "Displ.");
357}
358
359static int hpp__width_displ(struct perf_hpp *hpp __maybe_unused)
360{
361 return 6;
362}
363
364static int hpp__entry_displ(struct perf_hpp *hpp,
365 struct hist_entry *he)
366{
367 struct hist_entry *pair = hist_entry__next_pair(he);
368 long displacement = pair ? pair->position - he->position : 0;
369 const char *fmt = symbol_conf.field_sep ? "%s" : "%6.6s";
370 char buf[32] = " ";
371
372 if (displacement)
373 scnprintf(buf, sizeof(buf), "%+4ld", displacement);
374
375 return scnprintf(hpp->buf, hpp->size, fmt, buf);
376}
377
378static int hpp__header_formula(struct perf_hpp *hpp) 354static int hpp__header_formula(struct perf_hpp *hpp)
379{ 355{
380 const char *fmt = symbol_conf.field_sep ? "%s" : "%70s"; 356 const char *fmt = symbol_conf.field_sep ? "%s" : "%70s";
@@ -427,7 +403,6 @@ struct perf_hpp_fmt perf_hpp__format[] = {
427 HPP__PRINT_FNS(delta), 403 HPP__PRINT_FNS(delta),
428 HPP__PRINT_FNS(ratio), 404 HPP__PRINT_FNS(ratio),
429 HPP__PRINT_FNS(wdiff), 405 HPP__PRINT_FNS(wdiff),
430 HPP__PRINT_FNS(displ),
431 HPP__PRINT_FNS(formula) 406 HPP__PRINT_FNS(formula)
432}; 407};
433 408