aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 18:38:33 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-24 13:43:26 -0300
commit56e2e05644a9494e8ba3165182dcdf43d40cc6a2 (patch)
tree3e795cfb8e9a01c3350fc1266a88099abd004bc2 /tools/perf/util/python.c
parentperf tools: Add compress.h for the *_decompress_to_file() headers (diff)
downloadwireguard-linux-56e2e05644a9494e8ba3165182dcdf43d40cc6a2.tar.xz
wireguard-linux-56e2e05644a9494e8ba3165182dcdf43d40cc6a2.zip
perf callchain: Move callchain specific routines from util.[ch]
Where they belong, no point in leaving those in the generic "util" files. Link: http://lkml.kernel.org/n/tip-ljx3iiip1hlfa7a7apjem7ph@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/python.c')
-rw-r--r--tools/perf/util/python.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 0533711af44d..c129e99114ae 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -4,6 +4,7 @@
#include <poll.h>
#include <linux/err.h>
#include "evlist.h"
+#include "callchain.h"
#include "evsel.h"
#include "event.h"
#include "cpumap.h"
@@ -11,6 +12,18 @@
#include "thread_map.h"
/*
+ * Provide these two so that we don't have to link against callchain.c and
+ * start dragging hist.c, etc.
+ */
+struct callchain_param callchain_param;
+
+int parse_callchain_record(const char *arg __maybe_unused,
+ struct callchain_param *param __maybe_unused)
+{
+ return 0;
+}
+
+/*
* Support debug printing even though util/debug.c is not linked. That means
* implementing 'verbose' and 'eprintf'.
*/