summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-09-11 07:54:33 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-20 08:19:21 -0400
commit5939cacc60d22161adba3d6c8b3fe88b76e0f6c0 (patch)
treeffcad516a8c1e52e825b463d47ce1e6e3c20e389
parent9c9e754fb804828473c5131bb3e7df78bde396e6 (diff)
perf python: Remove debug.h
We only need to have the prototype for the eprintf() replacement we use in the python binding, provide it and avoid dragging debug.h as a dependency. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-s0gy4ur3drmhsknsddwjco59@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/python.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 96dd3333c911..0ba19dd75510 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -6,7 +6,6 @@
6#include <linux/err.h> 6#include <linux/err.h>
7#include <perf/cpumap.h> 7#include <perf/cpumap.h>
8#include <traceevent/event-parse.h> 8#include <traceevent/event-parse.h>
9#include "debug.h"
10#include "evlist.h" 9#include "evlist.h"
11#include "callchain.h" 10#include "callchain.h"
12#include "evsel.h" 11#include "evsel.h"
@@ -60,6 +59,8 @@ int parse_callchain_record(const char *arg __maybe_unused,
60 */ 59 */
61int verbose; 60int verbose;
62 61
62int eprintf(int level, int var, const char *fmt, ...);
63
63int eprintf(int level, int var, const char *fmt, ...) 64int eprintf(int level, int var, const char *fmt, ...)
64{ 65{
65 va_list args; 66 va_list args;