perf tools: Re-implement debug print function for linking python/perf.so
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 14 Aug 2013 12:48:23 +0000 (15:48 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Aug 2013 20:17:58 +0000 (17:17 -0300)
commit8afb4c018e21c882c8fad196772ef74d494185e2
tree773d8d460fa1d51d9e86d6f419196827ad1d0c38
parentbec196720431db2fd6a9b03cbd77eb336e6f52de
perf tools: Re-implement debug print function for linking python/perf.so

The python/perf.so python binding links a subset of objects.

Re-implement 'verbose' and 'eprintf' so they (and consequently
'pr_debug') can be used in objects linked into pythin/perf.so.

Note 'eprintf' must be re-implemented because the full version links the
browser ui.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1376484517-5339-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python.c