diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-02-20 05:26:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-02-20 05:26:21 -0500 |
commit | ff1fb5f6b4925a536ffb8171e5f2dbd01ccfeb97 (patch) | |
tree | a88ff0074d2ff11fa71e653c2e74d6a47440975e /arch/x86 | |
parent | 69943182bb9e19e4b60ea5033f683ec1af1703a9 (diff) | |
parent | 8c189ea64eea01ca20d102ddb74d6936dd16c579 (diff) |
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent
Pull two fixes from Steven Rostedt.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/ftrace.h | 24 | ||||
-rw-r--r-- | arch/x86/include/asm/thread_info.h | 1 |
2 files changed, 24 insertions, 1 deletions
diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index 86cb51e1ca96..0525a8bdf65d 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h | |||
@@ -72,4 +72,28 @@ int ftrace_int3_handler(struct pt_regs *regs); | |||
72 | #endif /* __ASSEMBLY__ */ | 72 | #endif /* __ASSEMBLY__ */ |
73 | #endif /* CONFIG_FUNCTION_TRACER */ | 73 | #endif /* CONFIG_FUNCTION_TRACER */ |
74 | 74 | ||
75 | |||
76 | #if !defined(__ASSEMBLY__) && !defined(COMPILE_OFFSETS) | ||
77 | |||
78 | #if defined(CONFIG_FTRACE_SYSCALLS) && defined(CONFIG_IA32_EMULATION) | ||
79 | #include <asm/compat.h> | ||
80 | |||
81 | /* | ||
82 | * Because ia32 syscalls do not map to x86_64 syscall numbers | ||
83 | * this screws up the trace output when tracing a ia32 task. | ||
84 | * Instead of reporting bogus syscalls, just do not trace them. | ||
85 | * | ||
86 | * If the user realy wants these, then they should use the | ||
87 | * raw syscall tracepoints with filtering. | ||
88 | */ | ||
89 | #define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 1 | ||
90 | static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs) | ||
91 | { | ||
92 | if (is_compat_task()) | ||
93 | return true; | ||
94 | return false; | ||
95 | } | ||
96 | #endif /* CONFIG_FTRACE_SYSCALLS && CONFIG_IA32_EMULATION */ | ||
97 | #endif /* !__ASSEMBLY__ && !COMPILE_OFFSETS */ | ||
98 | |||
75 | #endif /* _ASM_X86_FTRACE_H */ | 99 | #endif /* _ASM_X86_FTRACE_H */ |
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2d946e63ee82..2cd056e3ada3 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h | |||
@@ -20,7 +20,6 @@ | |||
20 | struct task_struct; | 20 | struct task_struct; |
21 | struct exec_domain; | 21 | struct exec_domain; |
22 | #include <asm/processor.h> | 22 | #include <asm/processor.h> |
23 | #include <asm/ftrace.h> | ||
24 | #include <linux/atomic.h> | 23 | #include <linux/atomic.h> |
25 | 24 | ||
26 | struct thread_info { | 25 | struct thread_info { |