summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2011-02-03 14:27:22 +1100
committerSteven Rostedt <rostedt@goodmis.org>2011-02-07 21:26:22 -0500
commitc763ba06bd9b5db2c46c36276c89103d92d2c604 (patch)
tree776ce215fc5900e747fb79dc91a160da35f4325c /kernel/trace
parent3773b389b6927595512558594d040c1edba46f36 (diff)
downloadlinux-c763ba06bd9b5db2c46c36276c89103d92d2c604.tar.gz
linux-c763ba06bd9b5db2c46c36276c89103d92d2c604.tar.bz2
linux-c763ba06bd9b5db2c46c36276c89103d92d2c604.zip
tracing/syscalls: Make arch_syscall_addr weak
Some architectures use non-trivial system call tables and will not work with the generic arch_syscall_addr code. For example, PowerPC64 uses a table of twin long longs. This patch makes the generic arch_syscall_addr weak to allow architectures with non-trivial system call tables to override it. Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> LKML-Reference: <1296703645-18718-4-git-send-email-imunsie@au1.ibm.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 423094288fb5..af831545f656 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -446,7 +446,7 @@ int init_syscall_trace(struct ftrace_event_call *call)
return id;
}
-unsigned long __init arch_syscall_addr(int nr)
+unsigned long __init __weak arch_syscall_addr(int nr)
{
return (unsigned long)sys_call_table[nr];
}