aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks
diff options
context:
space:
mode:
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-bionic.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 529317e6009b..191df97a031d 100644
--- a/tools/perf/config/feature-checks/Makefile
+++ b/tools/perf/config/feature-checks/Makefile
@@ -5,6 +5,7 @@ FILES= \
5 test-stackprotector \ 5 test-stackprotector \
6 test-volatile-register-var \ 6 test-volatile-register-var \
7 test-fortify-source \ 7 test-fortify-source \
8 test-bionic \
8 test-libnuma 9 test-libnuma
9 10
10CC := $(CC) -MD 11CC := $(CC) -MD
@@ -30,6 +31,9 @@ test-volatile-register-var:
30test-fortify-source: 31test-fortify-source:
31 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2 32 $(BUILD) -O2 -Werror -D_FORTIFY_SOURCE=2
32 33
34test-bionic:
35 $(BUILD)
36
33test-libnuma: 37test-libnuma:
34 $(BUILD) -lnuma 38 $(BUILD) -lnuma
35 39
diff --git a/tools/perf/config/feature-checks/test-bionic.c b/tools/perf/config/feature-checks/test-bionic.c
new file mode 100644
index 000000000000..eac24e9513eb
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-bionic.c
@@ -0,0 +1,6 @@
1#include <android/api-level.h>
2
3int main(void)
4{
5 return __ANDROID_API__;
6}