summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/debug.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-16 19:24:21 +0200
committerIngo Molnar <mingo@elte.hu>2009-08-16 19:42:31 +0200
commit2cec19d9d0716f8d68f1c5a87667d0387d4d252d (patch)
treeaf5de5945e4b1aa53c2e97028c18281471ffa1c6 /tools/perf/util/debug.h
parent0d31b82dd5c54a0b1e1d789427abdcc180bc4602 (diff)
downloadblackbird-op-linux-2cec19d9d0716f8d68f1c5a87667d0387d4d252d.tar.gz
blackbird-op-linux-2cec19d9d0716f8d68f1c5a87667d0387d4d252d.zip
perf tools: Factorize the dprintf definition
We have two users of dprintf: report and annotate. Another one is coming with perf trace. Then factorize it into the debug file. While at it, rename dprintf() to dump_printf() so that it doesn't conflicts with its libc homograph. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <1250443461-28130-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/debug.h')
-rw-r--r--tools/perf/util/debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h
index 2ae9090108d3..a683bd571f1c 100644
--- a/tools/perf/util/debug.h
+++ b/tools/perf/util/debug.h
@@ -1,5 +1,7 @@
/* For debugging general purposes */
extern int verbose;
+extern int dump_trace;
int eprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
+int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
OpenPOWER on IntegriCloud