diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-12 15:17:38 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 15:26:38 +0300 |
commit | 2b7d0390a6d6d595f43ea3806639664afe5b9ebe (patch) | |
tree | 661cd33467685dd268e35d7e4dc1dbf2aa83d994 /include/linux/compiler.h | |
parent | f88c4ae9f8c3939bee4337c75c7a673b5de7a8a7 (diff) | |
download | linux-2b7d0390a6d6d595f43ea3806639664afe5b9ebe.tar.xz |
tracing: branch tracer, fix vdso crash
Impact: fix bootup crash
the branch tracer missed arch/x86/vdso/vclock_gettime.c from
disabling tracing, which caused such bootup crashes:
[ 201.840097] init[1]: segfault at 7fffed3fe7c0 ip 00007fffed3fea2e sp 000077
also clean up the ugly ifdefs in arch/x86/kernel/vsyscall_64.c by
creating DISABLE_UNLIKELY_PROFILE facility for code to turn off
instrumentation on a per file basis.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 935e30cfaf3c..63b7d9089d6e 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -59,7 +59,11 @@ extern void __chk_io_ptr(const volatile void __iomem *); * specific implementations come from the above header files */ -#ifdef CONFIG_TRACE_UNLIKELY_PROFILE +/* + * Note: DISABLE_UNLIKELY_PROFILE can be used by special lowlevel code + * to disable branch tracing on a per file basis. + */ +#if defined(CONFIG_TRACE_UNLIKELY_PROFILE) && !defined(DISABLE_UNLIKELY_PROFILE) struct ftrace_likely_data { const char *func; const char *file; |