diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-10-07 03:47:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-10-09 02:48:31 -0400 |
commit | 430be5ab0a50a9116c689b2b2ea7acd7a635aabe (patch) | |
tree | 52f43ebb3597e897e7e661d5a79d9c3d0e7887f9 /tools/perf/config/feature-checks | |
parent | 90ac5422b617fcab0c6f02249502ffc17dfbf6e3 (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/Makefile | 4 | ||||
-rw-r--r-- | tools/perf/config/feature-checks/test-stackprotector.c | 6 |
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 @@ | |||
2 | FILES= \ | 2 | FILES= \ |
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 | ||
7 | CC := $(CC) -MD | 8 | CC := $(CC) -MD |
@@ -18,6 +19,9 @@ test-hello: | |||
18 | test-stackprotector-all: | 19 | test-stackprotector-all: |
19 | $(BUILD) -Werror -fstack-protector-all | 20 | $(BUILD) -Werror -fstack-protector-all |
20 | 21 | ||
22 | test-stackprotector: | ||
23 | $(BUILD) -Werror -fstack-protector | ||
24 | |||
21 | test-libnuma: | 25 | test-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 | |||
3 | int main(void) | ||
4 | { | ||
5 | return puts("hi"); | ||
6 | } | ||