summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 23:51:14 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-24 18:43:30 +0200
commit391e42060098a743a87380ed02bf4c8126742b04 (patch)
treeeaf7f2d5b7cc0fbf12d3ac00543597bcafed30be /tools/perf/tests
parentperf callchain: Move callchain specific routines from util.[ch] (diff)
downloadlinux-391e42060098a743a87380ed02bf4c8126742b04.tar.xz
linux-391e42060098a743a87380ed02bf4c8126742b04.zip
perf tools: Include sys/param.h where needed
As it is going away from util.h, where it is not needed. This is mostly for things like MAXPATHLEN, MAX() and MIN(), these later two probably should go away in favor of its kernel sources replacements. Link: http://lkml.kernel.org/n/tip-z1666f3fl3fqobxvjr5o2r39@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r--tools/perf/tests/attr.c1
-rw-r--r--tools/perf/tests/code-reading.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/tests/attr.c b/tools/perf/tests/attr.c
index ba87cd529bfc..c19e0da54337 100644
--- a/tools/perf/tests/attr.c
+++ b/tools/perf/tests/attr.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <linux/types.h>
#include <linux/kernel.h>
+#include <sys/param.h>
#include "../perf.h"
#include "util.h"
#include <subcmd/exec-cmd.h>
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index 3a8bf1565493..1f14e7612cbb 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -6,6 +6,7 @@
#include <unistd.h>
#include <stdio.h>
#include <string.h>
+#include <sys/param.h>
#include "parse-events.h"
#include "evlist.h"