OSDN Git Service

powerpc/trace/syscalls: Update syscall name matching logic
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 4 May 2018 13:14:24 +0000 (18:44 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 May 2018 11:29:30 +0000 (21:29 +1000)
commit0b7758aaf6543b9a10c8671db559e9d374a3fd95
treefa542503c8f9a04d35cad225003d906e27e24e2a
parentc4ec1f0353b342473b93637fd0c3fb524bedbb2d
powerpc/trace/syscalls: Update syscall name matching logic

On powerpc64 ABIv1, we are enabling syscall tracing for only ~20
syscalls. This is due to commit e145242ea0df6 ("syscalls/core,
syscalls/x86: Clean up syscall stub naming convention") which has
changed the syscall entry wrapper prefix from "SyS" to "__se_sys".

Update the logic for ABIv1 to not just skip the initial dot, but also
the "__se_sys" prefix.

Fixes: commit e145242ea0df6 ("syscalls/core, syscalls/x86: Clean up syscall stub naming convention")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ftrace.h