Skip to content

Commit e83dd37

Browse files
drewrichardson-armRussell King
authored andcommitted
ARM: 8409/1: Mark ret_fast_syscall as a function
ret_fast_syscall runs when user space makes a syscall. However it needs to be marked as such so the ELF information is correct. Before it was: 101: 8000f300 0 NOTYPE LOCAL DEFAULT 2 ret_fast_syscall But with this change it correctly shows as: 101: 8000f300 96 FUNC LOCAL DEFAULT 2 ret_fast_syscall I see this function when using perf to unwind call stacks from kernel space to user space. Without this change I would need to add some special case logic when using the vmlinux ELF information. Signed-off-by: Drew Richardson <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 998ef5d commit e83dd37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/kernel/entry-common.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ work_pending:
6161
movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE)
6262
ldmia sp, {r0 - r6} @ have to reload r0 - r6
6363
b local_restart @ ... and off we go
64+
ENDPROC(ret_fast_syscall)
6465

6566
/*
6667
* "slow" syscall return path. "why" tells us if this was a real syscall.

0 commit comments

Comments
 (0)