aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-10-07 03:47:00 -0400
committerIngo Molnar <mingo@kernel.org>2013-10-09 02:48:31 -0400
commit430be5ab0a50a9116c689b2b2ea7acd7a635aabe (patch)
tree52f43ebb3597e897e7e661d5a79d9c3d0e7887f9 /tools/perf/config/feature-checks
parent90ac5422b617fcab0c6f02249502ffc17dfbf6e3 (diff)
tools/perf/build: Split out feature check: 'stackprotector'
Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-eyLYjhskzn6qxkoyjtjic4ap@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/config/feature-checks')
-rw-r--r--tools/perf/config/feature-checks/Makefile4
-rw-r--r--tools/perf/config/feature-checks/test-stackprotector.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/Makefile b/tools/perf/config/feature-checks/Makefile
index 7538c148b40c..46b7650983cb 100644
--- a/tools/perf/config/feature-checks/Makefile
+++ b/tools/perf/config/feature-checks/Makefile
@@ -2,6 +2,7 @@
2FILES= \ 2FILES= \
3 test-hello \ 3 test-hello \
4 test-stackprotector-all \ 4 test-stackprotector-all \
5 test-stackprotector \
5 test-libnuma 6 test-libnuma
6 7
7CC := $(CC) -MD 8CC := $(CC) -MD
@@ -18,6 +19,9 @@ test-hello:
18test-stackprotector-all: 19test-stackprotector-all:
19 $(BUILD) -Werror -fstack-protector-all 20 $(BUILD) -Werror -fstack-protector-all
20 21
22test-stackprotector:
23 $(BUILD) -Werror -fstack-protector
24
21test-libnuma: 25test-libnuma:
22 $(BUILD) -lnuma 26 $(BUILD) -lnuma
23 27
diff --git a/tools/perf/config/feature-checks/test-stackprotector.c b/tools/perf/config/feature-checks/test-stackprotector.c
new file mode 100644
index 000000000000..c9f398d87868
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-stackprotector.c
@@ -0,0 +1,6 @@
1#include <stdio.h>
2
3int main(void)
4{
5 return puts("hi");
6}