libperf: Add debug output support
authorJiri Olsa <jolsa@kernel.org>
Sun, 21 Jul 2019 11:24:14 +0000 (13:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:44 +0000 (18:34 -0300)
commita1556f8479ed58b8d5a33aef54578bad0165c7e7
treef00f4e19160f6b4d5663f53dc8cc06424b12fddf
parent5b7f445d684fc287a2101e29d42d1fee19ae14ff
libperf: Add debug output support

Add the perf_set_print() function to allow setting an output function
for warn/info/debug messages.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-28-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/core.c
tools/perf/lib/include/perf/core.h
tools/perf/lib/internal.h [new file with mode: 0644]
tools/perf/lib/libperf.map