summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/mmap-basic.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-30 14:45:20 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-31 22:24:10 -0300
commitf2a39fe84901df2b3d1bec3459b65cee3e8db57c (patch)
tree399cb01cdf9a8c771e734ed4344a18840845f9bf /tools/perf/tests/mmap-basic.c
parentfa0d98462fae5d4951f22f3ac1090d48c53396d1 (diff)
downloadlinux-stable-f2a39fe84901df2b3d1bec3459b65cee3e8db57c.tar.gz
linux-stable-f2a39fe84901df2b3d1bec3459b65cee3e8db57c.tar.bz2
linux-stable-f2a39fe84901df2b3d1bec3459b65cee3e8db57c.zip
perf auxtrace: Uninline functions that touch perf_session
So that we don't carry the session.h include directive in auxtrace.h, which in turn opens a can of worms of files that were getting all sorts of things via that include, fix them all. 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-d2d83aovpgri2z75wlitquni@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/mmap-basic.c')
-rw-r--r--tools/perf/tests/mmap-basic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c
index bdf77bfe1b80..85e1d7337dc0 100644
--- a/tools/perf/tests/mmap-basic.c
+++ b/tools/perf/tests/mmap-basic.c
@@ -3,6 +3,7 @@
#include <inttypes.h>
/* For the CLR_() macros */
#include <pthread.h>
+#include <stdlib.h>
#include <perf/cpumap.h>
#include "debug.h"