summaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/util/environment.c
diff options
context:
space:
mode:
authorIngo Molnar2009-05-27 09:50:13 +0200
committerIngo Molnar2009-05-27 09:59:00 +0200
commita930d2c0d0a685ab955472b08baad041cc5edb4a (patch)
tree988e0da70e64ef72437058828974d946328280af /Documentation/perf_counter/util/environment.c
parentperf_counter tools: Rename output.perf to perf.data (diff)
downloadkernel-qcow2-linux-a930d2c0d0a685ab955472b08baad041cc5edb4a.tar.gz
kernel-qcow2-linux-a930d2c0d0a685ab955472b08baad041cc5edb4a.tar.xz
kernel-qcow2-linux-a930d2c0d0a685ab955472b08baad041cc5edb4a.zip
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/util/environment.c')
-rw-r--r--Documentation/perf_counter/util/environment.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/perf_counter/util/environment.c b/Documentation/perf_counter/util/environment.c
new file mode 100644
index 000000000000..9b1c8199e729
--- /dev/null
+++ b/Documentation/perf_counter/util/environment.c
@@ -0,0 +1,8 @@
+/*
+ * We put all the perf config variables in this same object
+ * file, so that programs can link against the config parser
+ * without having to link against all the rest of perf.
+ */
+#include "cache.h"
+
+const char *pager_program;