linux/arch/powerpc/kernel/trace
Michael Ellerman 7bea7ac0ca powerpc/syscalls: Fix syscall tracing
Recently in commit fbf508da74 ("powerpc: split compat syscall table
out from native table") we changed the layout of the system call
table. Instead of having two entries for each syscall number, one for
the regular entry point and one for the compat entry point, we now
have separate tables for regular and compat entry points.

This inadvertently broke syscall tracing (CONFIG_FTRACE_SYSCALLS),
because our implementation of arch_syscall_addr() knew about the
layout of the table (it did nr * 2).

We can fix it just by dropping our version of arch_syscall_addr() and
using the generic version which does:

	return (unsigned long)sys_call_table[nr];

Fixes: fbf508da74 ("powerpc: split compat syscall table out from native table")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-01-15 21:32:25 +11:00
..
Makefile powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
ftrace.c powerpc/syscalls: Fix syscall tracing 2019-01-15 21:32:25 +11:00
ftrace_32.S powerpc: Only support DYNAMIC_FTRACE not static 2018-05-03 22:32:29 +10:00
ftrace_64.S powerpc/ftrace: Handle large kernel configs 2018-10-20 13:26:47 +11:00
ftrace_64_mprofile.S powerpc/kprobes: Remove jprobe powerpc implementation 2018-06-21 12:33:08 +02:00
ftrace_64_pg.S powerpc: Only support DYNAMIC_FTRACE not static 2018-05-03 22:32:29 +10:00
trace_clock.c powerpc: Split ftrace bits into a separate file 2017-04-27 22:20:29 +10:00