diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-01-31 17:31:11 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-12 12:53:57 -0400 |
commit | 2c5d4b4a087c448d7818b89294c98d4977dfe76c (patch) | |
tree | 78a9c1ae951002fe5861684a8e539cdb4fc4e4a4 /tools/perf/ui/stdio/hist.c | |
parent | b21484f1a1f300d422cfe5d4f8f50015e22cea24 (diff) |
perf tools: Add struct perf_hpp_fmt into hpp callbacks
Adding 'struct perf_hpp_fmt' into hpp callbacks, so commands can access
their private data.
It'll be handy for diff command in future to be able to access file
related data for each column.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
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/n/tip-7vy2m18574b1bicoljn8e9lw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/stdio/hist.c')
-rw-r--r-- | tools/perf/ui/stdio/hist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index ae7a75432249..ee703720649d 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c | |||
@@ -365,7 +365,7 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
365 | else | 365 | else |
366 | first = false; | 366 | first = false; |
367 | 367 | ||
368 | fmt->header(&dummy_hpp); | 368 | fmt->header(fmt, &dummy_hpp); |
369 | fprintf(fp, "%s", bf); | 369 | fprintf(fp, "%s", bf); |
370 | } | 370 | } |
371 | 371 | ||
@@ -410,7 +410,7 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
410 | else | 410 | else |
411 | first = false; | 411 | first = false; |
412 | 412 | ||
413 | width = fmt->width(&dummy_hpp); | 413 | width = fmt->width(fmt, &dummy_hpp); |
414 | for (i = 0; i < width; i++) | 414 | for (i = 0; i < width; i++) |
415 | fprintf(fp, "."); | 415 | fprintf(fp, "."); |
416 | } | 416 | } |