aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/builtin-report.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-27 03:50:13 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-27 03:59:00 -0400
commita930d2c0d0a685ab955472b08baad041cc5edb4a (patch)
tree988e0da70e64ef72437058828974d946328280af /Documentation/perf_counter/builtin-report.c
parent23ac9cbed82b00ca3520bb81dbe9ea3b7a936a1b (diff)
perf_counter tools: Add built-in pager support
Add Git's pager.c (and sigchain) code. A command only has to call setup_pager() to get paged interactive output. Non-interactive (redirected, command-piped, etc.) uses are not affected. Update perf-report to make use of this. [ Impact: new feature ] Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Kacur <jkacur@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-report.c')
-rw-r--r--Documentation/perf_counter/builtin-report.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index e2712cd06310..9aef7c54483e 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -7,6 +7,7 @@
7#include <ctype.h> 7#include <ctype.h>
8 8
9#include "util/list.h" 9#include "util/list.h"
10#include "util/cache.h"
10#include "util/rbtree.h" 11#include "util/rbtree.h"
11 12
12#include "perf.h" 13#include "perf.h"
@@ -992,5 +993,7 @@ int cmd_report(int argc, const char **argv, const char *prefix)
992 993
993 parse_options(argc, argv, options, report_usage, 0); 994 parse_options(argc, argv, options, report_usage, 0);
994 995
996 setup_pager();
997
995 return __cmd_report(); 998 return __cmd_report();
996} 999}