perf tools: Factorize the dprintf definition
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 16 Aug 2009 17:24:21 +0000 (19:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Aug 2009 17:42:31 +0000 (19:42 +0200)
commit2cec19d9d0716f8d68f1c5a87667d0387d4d252d
treeaf5de5945e4b1aa53c2e97028c18281471ffa1c6
parent0d31b82dd5c54a0b1e1d789427abdcc180bc4602
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>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/util/debug.c
tools/perf/util/debug.h