tools/perf/build: Harmonize the style of the feature testcases
authorIngo Molnar <mingo@kernel.org>
Mon, 7 Oct 2013 11:27:23 +0000 (13:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 06:49:03 +0000 (08:49 +0200)
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>
12 files changed:
tools/perf/config/feature-checks/test-backtrace.c
tools/perf/config/feature-checks/test-cplus-demangle.c
tools/perf/config/feature-checks/test-dwarf.c
tools/perf/config/feature-checks/test-glibc.c
tools/perf/config/feature-checks/test-libaudit.c
tools/perf/config/feature-checks/test-libbfd.c
tools/perf/config/feature-checks/test-libelf-getphdrnum.c
tools/perf/config/feature-checks/test-libelf-mmap.c
tools/perf/config/feature-checks/test-libelf.c
tools/perf/config/feature-checks/test-libnuma.c
tools/perf/config/feature-checks/test-libpython.c
tools/perf/config/feature-tests.mak [deleted file]

index 5b33bcf12c27d064128d1f3ab56314132af6a713..7124aa1dc8fb77d5fe1adae0cc4a0dcaff2ff3a3 100644 (file)
@@ -11,4 +11,3 @@ int main(void)
 
        return 0;
 }
-
index ab29f80570afd697d7c64884c5eddbc5d00ecf2a..610c686e0009a572d471954e32bea26a96a046b0 100644 (file)
@@ -12,4 +12,3 @@ int main(void)
 
        return 0;
 }
-
index 783dfcd9a5c4062f7e39e7e84a5f949a381a3161..3fc1801ce4a9760dce3a2db564747ace639e88aa 100644 (file)
@@ -5,5 +5,6 @@
 int main(void)
 {
        Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
+
        return (long)dbg;
 }
index 13c66a58f2ecf40585c134c43f59b63d0f3f010f..b0820345cd9843776bad77dd92e926e226da1551 100644 (file)
@@ -3,6 +3,6 @@
 int main(void)
 {
        const char *version = gnu_get_libc_version();
+
        return (long)version;
 }
-
index f7e791efa6d100762d80b60241c98ab0cff0b07b..afc019f08641c5d9cd9d8cfeeb69aec7cd1d7687 100644 (file)
@@ -5,5 +5,6 @@ extern int printf(const char *format, ...);
 int main(void)
 {
        printf("error message: %s\n", audit_errno_to_name(0));
+
        return audit_open();
 }
index 1886c78c30e742226fff19203405dff5eca6d4ca..24059907e990da208af957549b662e29f13695b9 100644 (file)
@@ -13,4 +13,3 @@ int main(void)
 
        return 0;
 }
-
index 58eca53325204ad4a6ee12290514735699a39f89..d710459306c3aad3d322be3ad9073d5f886691fd 100644 (file)
@@ -1,7 +1,8 @@
 #include <libelf.h>
-#
+
 int main(void)
 {
        size_t dst;
+
        return elf_getphdrnum(0, &dst);
 }
index 1c648159c705dbc7d8d9de521c908eb4fe313655..564427d7ef18d09a650f8cdc7cb21c09746e3d50 100644 (file)
@@ -1,7 +1,8 @@
 #include <libelf.h>
-#
+
 int main(void)
 {
        Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
+
        return (long)elf;
 }
index 1a08f9717344e5f81471ba3f126e29566c67974a..08db322d89576cf9cc6f459a151a5f154224e447 100644 (file)
@@ -3,5 +3,6 @@
 int main(void)
 {
        Elf *elf = elf_begin(0, ELF_C_READ, 0);
+
        return (long)elf;
 }
index 70510a923e5a1d057f0036cc8b70b12c286e1caa..4763d9cd587d51c8528ee9d5f80165dc93bb6565 100644 (file)
@@ -4,5 +4,6 @@
 int main(void)
 {
        numa_available();
+
        return 0;
 }
index 72267972fa9886aa6a266be49686fc1bc1a7a2c0..b24b28ad6324ecab7b3c4ffa3545a4aa1a68faae 100644 (file)
@@ -1,7 +1,8 @@
 #include <Python.h>
-#
+
 int main(void)
 {
        Py_Initialize();
+
        return 0;
 }
diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak
deleted file mode 100644 (file)
index 139597f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-