diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2019-09-11 11:54:33 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-09-20 12:19:21 +0000 |
| commit | 5939cacc60d22161adba3d6c8b3fe88b76e0f6c0 (patch) | |
| tree | ffcad516a8c1e52e825b463d47ce1e6e3c20e389 /tools/perf/util/python.c | |
| parent | perf callchain: Remove needless event.h include (diff) | |
| download | kernel-5939cacc60d22161adba3d6c8b3fe88b76e0f6c0.tar.gz kernel-5939cacc60d22161adba3d6c8b3fe88b76e0f6c0.zip | |
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 <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 3 |
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 @@ #include <linux/err.h> #include <perf/cpumap.h> #include <traceevent/event-parse.h> -#include "debug.h" #include "evlist.h" #include "callchain.h" #include "evsel.h" @@ -60,6 +59,8 @@ int parse_callchain_record(const char *arg __maybe_unused, */ int verbose; +int eprintf(int level, int var, const char *fmt, ...); + int eprintf(int level, int var, const char *fmt, ...) { va_list args; |
