aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-10-07 07:27:23 -0400
committerIngo Molnar <mingo@kernel.org>2013-10-09 02:49:03 -0400
commit20c99e82173bed9e4e0013ec45c0b2b3b80b65d5 (patch)
treeb6954bcf7f48893b30d04dfc358b964cda38b58e /tools/perf/config/feature-checks
parent1f7c645ab4b8326fef5afcd842795e071ecce9df (diff)
tools/perf/build: Harmonize the style of the feature testcases
The various testcases used different styles, which was not really visible as long as they hid in feature-tests.mak. Now that they are out in the open make them prettier. ( Also delete the leftover, empty feature-tests.mak file. ) 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-drDWk8xltndjdsespzjbhu6w@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/test-backtrace.c1
-rw-r--r--tools/perf/config/feature-checks/test-cplus-demangle.c1
-rw-r--r--tools/perf/config/feature-checks/test-dwarf.c1
-rw-r--r--tools/perf/config/feature-checks/test-glibc.c2
-rw-r--r--tools/perf/config/feature-checks/test-libaudit.c1
-rw-r--r--tools/perf/config/feature-checks/test-libbfd.c1
-rw-r--r--tools/perf/config/feature-checks/test-libelf-getphdrnum.c3
-rw-r--r--tools/perf/config/feature-checks/test-libelf-mmap.c3
-rw-r--r--tools/perf/config/feature-checks/test-libelf.c1
-rw-r--r--tools/perf/config/feature-checks/test-libnuma.c1
-rw-r--r--tools/perf/config/feature-checks/test-libpython.c3
11 files changed, 11 insertions, 7 deletions
diff --git a/tools/perf/config/feature-checks/test-backtrace.c b/tools/perf/config/feature-checks/test-backtrace.c
index 5b33bcf12c27..7124aa1dc8fb 100644
--- a/tools/perf/config/feature-checks/test-backtrace.c
+++ b/tools/perf/config/feature-checks/test-backtrace.c
@@ -11,4 +11,3 @@ int main(void)
11 11
12 return 0; 12 return 0;
13} 13}
14
diff --git a/tools/perf/config/feature-checks/test-cplus-demangle.c b/tools/perf/config/feature-checks/test-cplus-demangle.c
index ab29f80570af..610c686e0009 100644
--- a/tools/perf/config/feature-checks/test-cplus-demangle.c
+++ b/tools/perf/config/feature-checks/test-cplus-demangle.c
@@ -12,4 +12,3 @@ int main(void)
12 12
13 return 0; 13 return 0;
14} 14}
15
diff --git a/tools/perf/config/feature-checks/test-dwarf.c b/tools/perf/config/feature-checks/test-dwarf.c
index 783dfcd9a5c4..3fc1801ce4a9 100644
--- a/tools/perf/config/feature-checks/test-dwarf.c
+++ b/tools/perf/config/feature-checks/test-dwarf.c
@@ -5,5 +5,6 @@
5int main(void) 5int main(void)
6{ 6{
7 Dwarf *dbg = dwarf_begin(0, DWARF_C_READ); 7 Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
8
8 return (long)dbg; 9 return (long)dbg;
9} 10}
diff --git a/tools/perf/config/feature-checks/test-glibc.c b/tools/perf/config/feature-checks/test-glibc.c
index 13c66a58f2ec..b0820345cd98 100644
--- a/tools/perf/config/feature-checks/test-glibc.c
+++ b/tools/perf/config/feature-checks/test-glibc.c
@@ -3,6 +3,6 @@
3int main(void) 3int main(void)
4{ 4{
5 const char *version = gnu_get_libc_version(); 5 const char *version = gnu_get_libc_version();
6
6 return (long)version; 7 return (long)version;
7} 8}
8
diff --git a/tools/perf/config/feature-checks/test-libaudit.c b/tools/perf/config/feature-checks/test-libaudit.c
index f7e791efa6d1..afc019f08641 100644
--- a/tools/perf/config/feature-checks/test-libaudit.c
+++ b/tools/perf/config/feature-checks/test-libaudit.c
@@ -5,5 +5,6 @@ extern int printf(const char *format, ...);
5int main(void) 5int main(void)
6{ 6{
7 printf("error message: %s\n", audit_errno_to_name(0)); 7 printf("error message: %s\n", audit_errno_to_name(0));
8
8 return audit_open(); 9 return audit_open();
9} 10}
diff --git a/tools/perf/config/feature-checks/test-libbfd.c b/tools/perf/config/feature-checks/test-libbfd.c
index 1886c78c30e7..24059907e990 100644
--- a/tools/perf/config/feature-checks/test-libbfd.c
+++ b/tools/perf/config/feature-checks/test-libbfd.c
@@ -13,4 +13,3 @@ int main(void)
13 13
14 return 0; 14 return 0;
15} 15}
16
diff --git a/tools/perf/config/feature-checks/test-libelf-getphdrnum.c b/tools/perf/config/feature-checks/test-libelf-getphdrnum.c
index 58eca5332520..d710459306c3 100644
--- a/tools/perf/config/feature-checks/test-libelf-getphdrnum.c
+++ b/tools/perf/config/feature-checks/test-libelf-getphdrnum.c
@@ -1,7 +1,8 @@
1#include <libelf.h> 1#include <libelf.h>
2# 2
3int main(void) 3int main(void)
4{ 4{
5 size_t dst; 5 size_t dst;
6
6 return elf_getphdrnum(0, &dst); 7 return elf_getphdrnum(0, &dst);
7} 8}
diff --git a/tools/perf/config/feature-checks/test-libelf-mmap.c b/tools/perf/config/feature-checks/test-libelf-mmap.c
index 1c648159c705..564427d7ef18 100644
--- a/tools/perf/config/feature-checks/test-libelf-mmap.c
+++ b/tools/perf/config/feature-checks/test-libelf-mmap.c
@@ -1,7 +1,8 @@
1#include <libelf.h> 1#include <libelf.h>
2# 2
3int main(void) 3int main(void)
4{ 4{
5 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0); 5 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
6
6 return (long)elf; 7 return (long)elf;
7} 8}
diff --git a/tools/perf/config/feature-checks/test-libelf.c b/tools/perf/config/feature-checks/test-libelf.c
index 1a08f9717344..08db322d8957 100644
--- a/tools/perf/config/feature-checks/test-libelf.c
+++ b/tools/perf/config/feature-checks/test-libelf.c
@@ -3,5 +3,6 @@
3int main(void) 3int main(void)
4{ 4{
5 Elf *elf = elf_begin(0, ELF_C_READ, 0); 5 Elf *elf = elf_begin(0, ELF_C_READ, 0);
6
6 return (long)elf; 7 return (long)elf;
7} 8}
diff --git a/tools/perf/config/feature-checks/test-libnuma.c b/tools/perf/config/feature-checks/test-libnuma.c
index 70510a923e5a..4763d9cd587d 100644
--- a/tools/perf/config/feature-checks/test-libnuma.c
+++ b/tools/perf/config/feature-checks/test-libnuma.c
@@ -4,5 +4,6 @@
4int main(void) 4int main(void)
5{ 5{
6 numa_available(); 6 numa_available();
7
7 return 0; 8 return 0;
8} 9}
diff --git a/tools/perf/config/feature-checks/test-libpython.c b/tools/perf/config/feature-checks/test-libpython.c
index 72267972fa98..b24b28ad6324 100644
--- a/tools/perf/config/feature-checks/test-libpython.c
+++ b/tools/perf/config/feature-checks/test-libpython.c
@@ -1,7 +1,8 @@
1#include <Python.h> 1#include <Python.h>
2# 2
3int main(void) 3int main(void)
4{ 4{
5 Py_Initialize(); 5 Py_Initialize();
6
6 return 0; 7 return 0;
7} 8}