Re: sys_rt_sigreturn calling sys_futex?
From: Thomas Gleixner
Date: Fri Jan 22 2010 - 17:00:33 EST
On Fri, 22 Jan 2010, Ivan Novick wrote:
> I have a userspace app that I profiled using SystemTap.
> It says there are frequent calls to sys_futex which come from sys_rt_sigreturn.
> It is true, that my app has many signal handler calls due to
> frequently set timers in the code.
> I had a look at the source for my kernel: Suse: linux-188.8.131.52-0.3
> but I don't see any calls to futex from inside sys_rt_sigreturn.
> Do you know if sys_rt_sigreturn is somehow calling sys_futex?
Well, it is not calling sys_futex, it is resuming the sys_futex
syscall which was interrupted by the signal. When the signal handler
returns it returns to the system call automatically.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/