From: Thomas Gleixner <tglx@linutronix.de>
To: Ivan Novick <novickivan@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sys_rt_sigreturn calling sys_futex?
Date: Fri, 22 Jan 2010 23:00:15 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1001222257480.2906@localhost.localdomain> (raw)
In-Reply-To: <619ad6271001221346j19c9038bx8013e5b560d0c138@mail.gmail.com>
On Fri, 22 Jan 2010, Ivan Novick wrote:
> Hello,
>
> 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-2.6.27.39-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.
Thanks,
tglx
prev parent reply other threads:[~2010-01-22 22:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 21:46 Ivan Novick
2010-01-22 22:00 ` Thomas Gleixner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1001222257480.2906@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=novickivan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®