diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-25 05:39:33 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-25 05:39:33 -0400 |
commit | c68e3206862f647117a46a73af76764d750c05bd (patch) | |
tree | 82e919a69f482d62a991f272cd7123930050a5b3 /arch/sh | |
parent | 12cceb6251c2cd23e936b25eca66be99ba41b081 (diff) |
sh: Fix an off-by-1 in FTRACE_SYSCALL_MAX.
This is supposed to be the equivalent of __NR_syscalls, not
__NR_syscalls -1. The x86 code this was based on had simply fallen
out of sync at the time this was implemented. Fix it up now.
As a result, tracing of __NR_perf_counter_open works as advertised.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/ftrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ftrace.h b/arch/sh/include/asm/ftrace.h index 3c2ede3690d7..12f3a31f20af 100644 --- a/arch/sh/include/asm/ftrace.h +++ b/arch/sh/include/asm/ftrace.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #ifdef CONFIG_FUNCTION_TRACER | 4 | #ifdef CONFIG_FUNCTION_TRACER |
5 | 5 | ||
6 | #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ | 6 | #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ |
7 | #define FTRACE_SYSCALL_MAX (NR_syscalls - 1) | 7 | #define FTRACE_SYSCALL_MAX NR_syscalls |
8 | 8 | ||
9 | #ifndef __ASSEMBLY__ | 9 | #ifndef __ASSEMBLY__ |
10 | extern void mcount(void); | 10 | extern void mcount(void); |