2013-10-02 14:21:37 +00:00
|
|
|
/*
|
|
|
|
* test-all.c: Try to build all the main testcases at once.
|
|
|
|
*
|
|
|
|
* A well-configured system will have all the prereqs installed, so we can speed
|
|
|
|
* up auto-detection on such systems.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Quirk: Python and Perl headers cannot be in arbitrary places, so keep
|
|
|
|
* these 3 testcases at the top:
|
|
|
|
*/
|
|
|
|
#define main main_test_libpython
|
|
|
|
# include "test-libpython.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libpython_version
|
|
|
|
# include "test-libpython-version.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libperl
|
|
|
|
# include "test-libperl.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_hello
|
|
|
|
# include "test-hello.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libelf
|
|
|
|
# include "test-libelf.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libelf_mmap
|
|
|
|
# include "test-libelf-mmap.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_glibc
|
|
|
|
# include "test-glibc.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_dwarf
|
|
|
|
# include "test-dwarf.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libelf_getphdrnum
|
|
|
|
# include "test-libelf-getphdrnum.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libunwind
|
|
|
|
# include "test-libunwind.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libaudit
|
|
|
|
# include "test-libaudit.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libslang
|
|
|
|
# include "test-libslang.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_gtk2
|
|
|
|
# include "test-gtk2.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_gtk2_infobar
|
|
|
|
# include "test-gtk2-infobar.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libbfd
|
|
|
|
# include "test-libbfd.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_backtrace
|
|
|
|
# include "test-backtrace.c"
|
|
|
|
#undef main
|
|
|
|
|
|
|
|
#define main main_test_libnuma
|
|
|
|
# include "test-libnuma.c"
|
|
|
|
#undef main
|
2013-10-01 12:14:31 +00:00
|
|
|
|
2013-10-29 16:43:16 +00:00
|
|
|
#define main main_test_timerfd
|
|
|
|
# include "test-timerfd.c"
|
|
|
|
#undef main
|
|
|
|
|
2013-11-28 11:33:01 +00:00
|
|
|
#define main main_test_stackprotector_all
|
|
|
|
# include "test-stackprotector-all.c"
|
|
|
|
#undef main
|
|
|
|
|
2014-02-19 15:52:56 +00:00
|
|
|
#define main main_test_libdw_dwarf_unwind
|
|
|
|
# include "test-libdw-dwarf-unwind.c"
|
|
|
|
#undef main
|
|
|
|
|
2014-07-14 10:02:53 +00:00
|
|
|
#define main main_test_sync_compare_and_swap
|
|
|
|
# include "test-sync-compare-and-swap.c"
|
|
|
|
#undef main
|
|
|
|
|
perf tools: Add gzip decompression support for kernel module
Now my Archlinux box shows module symbols correctly.
Before:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/date, maybe install a debug package?
No kallsyms or vmlinux with build-id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 was found
[drm] with build id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 not found, continuing without symbols
No kallsyms or vmlinux with build-id edd931629094b660ca9dec09a1b635c8d87aa2ee was found
[jbd2] with build id edd931629094b660ca9dec09a1b635c8d87aa2ee not found, continuing without symbols
No kallsyms or vmlinux with build-id a7b1eada671c34933e5610bb920b2ca4945a82c3 was found
[ext4] with build id a7b1eada671c34933e5610bb920b2ca4945a82c3 not found, continuing without symbols
No kallsyms or vmlinux with build-id d69511fa3e5840e770336ef45b06c83fef8d74e3 was found
[scsi_mod] with build id d69511fa3e5840e770336ef45b06c83fef8d74e3 not found, continuing without symbols
No kallsyms or vmlinux with build-id af0430af13461af058770ee9b87afc07922c2e77 was found
[libata] with build id af0430af13461af058770ee9b87afc07922c2e77 not found, continuing without symbols
No kallsyms or vmlinux with build-id aaeedff8160ce631a5f0333591c6ff291201d29f was found
[libahci] with build id aaeedff8160ce631a5f0333591c6ff291201d29f not found, continuing without symbols
No kallsyms or vmlinux with build-id c57907712becaf662dc4981824bb372c0441d605 was found
[mac80211] with build id c57907712becaf662dc4981824bb372c0441d605 not found, continuing without symbols
No kallsyms or vmlinux with build-id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f was found
[iwldvm] with build id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f not found, continuing without symbols
No kallsyms or vmlinux with build-id 2d86086bf136bf374a2f029cf85a48194f9b950b was found
[cfg80211] with build id 2d86086bf136bf374a2f029cf85a48194f9b950b not found, continuing without symbols
No kallsyms or vmlinux with build-id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 was found
[iwlwifi] with build id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 not found, continuing without symbols
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ....................... ........................................................
#
0.03% swapper [ext4] [k] 0x000000000000fe2e
0.03% swapper [kernel.kallsyms] [k] account_entity_enqueue
0.03% swapper [ext4] [k] 0x000000000000fc2b
0.03% irq/50-iwlwifi [iwlwifi] [k] 0x000000000000200b
0.03% swapper [kernel.kallsyms] [k] ktime_add_safe
0.03% swapper [kernel.kallsyms] [k] elv_completed_request
0.03% swapper [libata] [k] 0x0000000000003997
0.03% swapper [libahci] [k] 0x0000000000001f25
0.03% swapper [kernel.kallsyms] [k] rb_next
0.03% swapper [kernel.kallsyms] [k] blk_finish_request
0.03% swapper [ext4] [k] 0x0000000000010248
0.00% perf [kernel.kallsyms] [k] native_write_msr_safe
After:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/tr, maybe install a debug package?
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ........................... ......................................................
#
0.04% kworker/u16:3 [ext4] [k] ext4_read_block_bitmap
0.03% kworker/u16:0 [mac80211] [k] ieee80211_sta_reset_beacon_monitor
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_get_bssid
0.02% firefox [e1000e] [k] __ew32_prepare
0.02% swapper [libahci] [k] ahci_handle_port_interrupt
0.02% emacs libglib-2.0.so.0.4000.0 [.] g_mutex_unlock
0.02% swapper [e1000e] [k] e1000_clean_tx_irq
0.02% dwm [kernel.kallsyms] [k] __schedule
0.02% gnome-terminal- [vdso] [.] __vdso_clock_gettime
0.02% swapper [e1000e] [k] e1000_alloc_rx_buffers
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_rx
0.01% firefox [vdso] [.] __vdso_gettimeofday
0.01% irq/50-iwlwifi [iwlwifi] [k] iwl_pcie_rxq_restock.part.13
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/87h9yexshi.fsf@sejong.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-10-31 07:51:38 +00:00
|
|
|
#define main main_test_zlib
|
|
|
|
# include "test-zlib.c"
|
|
|
|
#undef main
|
|
|
|
|
2015-01-13 13:43:24 +00:00
|
|
|
#define main main_test_pthread_attr_setaffinity_np
|
2015-03-11 08:02:00 +00:00
|
|
|
# include "test-pthread-attr-setaffinity-np.c"
|
2015-01-13 13:43:24 +00:00
|
|
|
#undef main
|
|
|
|
|
2015-03-11 08:00:41 +00:00
|
|
|
# if 0
|
|
|
|
/*
|
|
|
|
* Disable libbabeltrace check for test-all, because the requested
|
|
|
|
* library version is not released yet in most distributions. Will
|
|
|
|
* reenable later.
|
|
|
|
*/
|
|
|
|
|
2015-02-20 22:16:58 +00:00
|
|
|
#define main main_test_libbabeltrace
|
|
|
|
# include "test-libbabeltrace.c"
|
|
|
|
#undef main
|
2015-03-11 08:00:41 +00:00
|
|
|
#endif
|
2015-02-20 22:16:58 +00:00
|
|
|
|
2013-10-01 12:14:31 +00:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2013-10-02 14:21:37 +00:00
|
|
|
main_test_libpython();
|
|
|
|
main_test_libpython_version();
|
|
|
|
main_test_libperl();
|
|
|
|
main_test_hello();
|
|
|
|
main_test_libelf();
|
|
|
|
main_test_libelf_mmap();
|
|
|
|
main_test_glibc();
|
|
|
|
main_test_dwarf();
|
|
|
|
main_test_libelf_getphdrnum();
|
|
|
|
main_test_libunwind();
|
|
|
|
main_test_libaudit();
|
|
|
|
main_test_libslang();
|
|
|
|
main_test_gtk2(argc, argv);
|
|
|
|
main_test_gtk2_infobar(argc, argv);
|
|
|
|
main_test_libbfd();
|
|
|
|
main_test_backtrace();
|
|
|
|
main_test_libnuma();
|
2013-10-29 16:43:16 +00:00
|
|
|
main_test_timerfd();
|
2013-11-28 11:33:01 +00:00
|
|
|
main_test_stackprotector_all();
|
2014-02-19 15:52:56 +00:00
|
|
|
main_test_libdw_dwarf_unwind();
|
2014-07-14 10:02:53 +00:00
|
|
|
main_test_sync_compare_and_swap(argc, argv);
|
perf tools: Add gzip decompression support for kernel module
Now my Archlinux box shows module symbols correctly.
Before:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/date, maybe install a debug package?
No kallsyms or vmlinux with build-id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 was found
[drm] with build id 7b4ea0a49ae2111925857099aaf05c3246ff33e0 not found, continuing without symbols
No kallsyms or vmlinux with build-id edd931629094b660ca9dec09a1b635c8d87aa2ee was found
[jbd2] with build id edd931629094b660ca9dec09a1b635c8d87aa2ee not found, continuing without symbols
No kallsyms or vmlinux with build-id a7b1eada671c34933e5610bb920b2ca4945a82c3 was found
[ext4] with build id a7b1eada671c34933e5610bb920b2ca4945a82c3 not found, continuing without symbols
No kallsyms or vmlinux with build-id d69511fa3e5840e770336ef45b06c83fef8d74e3 was found
[scsi_mod] with build id d69511fa3e5840e770336ef45b06c83fef8d74e3 not found, continuing without symbols
No kallsyms or vmlinux with build-id af0430af13461af058770ee9b87afc07922c2e77 was found
[libata] with build id af0430af13461af058770ee9b87afc07922c2e77 not found, continuing without symbols
No kallsyms or vmlinux with build-id aaeedff8160ce631a5f0333591c6ff291201d29f was found
[libahci] with build id aaeedff8160ce631a5f0333591c6ff291201d29f not found, continuing without symbols
No kallsyms or vmlinux with build-id c57907712becaf662dc4981824bb372c0441d605 was found
[mac80211] with build id c57907712becaf662dc4981824bb372c0441d605 not found, continuing without symbols
No kallsyms or vmlinux with build-id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f was found
[iwldvm] with build id e0589077cc0ec8c3e4c40eb9f2d9e69d236bee8f not found, continuing without symbols
No kallsyms or vmlinux with build-id 2d86086bf136bf374a2f029cf85a48194f9b950b was found
[cfg80211] with build id 2d86086bf136bf374a2f029cf85a48194f9b950b not found, continuing without symbols
No kallsyms or vmlinux with build-id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 was found
[iwlwifi] with build id 4493c48599bdb3d91d0f8db5150e0be33fdd9221 not found, continuing without symbols
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ....................... ........................................................
#
0.03% swapper [ext4] [k] 0x000000000000fe2e
0.03% swapper [kernel.kallsyms] [k] account_entity_enqueue
0.03% swapper [ext4] [k] 0x000000000000fc2b
0.03% irq/50-iwlwifi [iwlwifi] [k] 0x000000000000200b
0.03% swapper [kernel.kallsyms] [k] ktime_add_safe
0.03% swapper [kernel.kallsyms] [k] elv_completed_request
0.03% swapper [libata] [k] 0x0000000000003997
0.03% swapper [libahci] [k] 0x0000000000001f25
0.03% swapper [kernel.kallsyms] [k] rb_next
0.03% swapper [kernel.kallsyms] [k] blk_finish_request
0.03% swapper [ext4] [k] 0x0000000000010248
0.00% perf [kernel.kallsyms] [k] native_write_msr_safe
After:
$ perf report --stdio
Failed to open /tmp/perf-3477.map, continuing without symbols
no symbols found in /usr/bin/tr, maybe install a debug package?
...
#
# Overhead Command Shared Object Symbol
# ........ ............... ........................... ......................................................
#
0.04% kworker/u16:3 [ext4] [k] ext4_read_block_bitmap
0.03% kworker/u16:0 [mac80211] [k] ieee80211_sta_reset_beacon_monitor
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_get_bssid
0.02% firefox [e1000e] [k] __ew32_prepare
0.02% swapper [libahci] [k] ahci_handle_port_interrupt
0.02% emacs libglib-2.0.so.0.4000.0 [.] g_mutex_unlock
0.02% swapper [e1000e] [k] e1000_clean_tx_irq
0.02% dwm [kernel.kallsyms] [k] __schedule
0.02% gnome-terminal- [vdso] [.] __vdso_clock_gettime
0.02% swapper [e1000e] [k] e1000_alloc_rx_buffers
0.02% irq/50-iwlwifi [mac80211] [k] ieee80211_rx
0.01% firefox [vdso] [.] __vdso_gettimeofday
0.01% irq/50-iwlwifi [iwlwifi] [k] iwl_pcie_rxq_restock.part.13
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/87h9yexshi.fsf@sejong.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-10-31 07:51:38 +00:00
|
|
|
main_test_zlib();
|
2015-01-13 13:43:24 +00:00
|
|
|
main_test_pthread_attr_setaffinity_np();
|
2013-10-01 12:14:31 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|