* How performance critical is fsys_rt_sigprocmask()?
@ 2011-08-24 14:39 Matt Fleming
2011-08-24 19:51 ` Matt Fleming
0 siblings, 1 reply; 2+ messages in thread
From: Matt Fleming @ 2011-08-24 14:39 UTC (permalink / raw)
To: linux-ia64
Hi,
I'm looking at the code code in fsys_rt_sigprocmask() and I'm wondering
whether it really needs to be implemented in assembly. I recently posted
a patch series that converted code modifying current->blocked to use the
new set_current_blocked() helper but initially missed the code in
fsys_rt_sigprocmask() because it's not written in C.
It seems this sort of thing has happened before too, e.g. with the
ticket lock implementation as seen in commit f574c8431917 ("[IA64] fix
siglock"), presumably for the same reasons.
So I was wondering, from a code maintenance perspective, would it make
sense to delete the custom implementation of sys_rt_sigprocmask() and
use the generic one? Or does that function genuinely have a need to be
written in hand-optimised assembly?
--
Matt Fleming, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: How performance critical is fsys_rt_sigprocmask()?
2011-08-24 14:39 How performance critical is fsys_rt_sigprocmask()? Matt Fleming
@ 2011-08-24 19:51 ` Matt Fleming
0 siblings, 0 replies; 2+ messages in thread
From: Matt Fleming @ 2011-08-24 19:51 UTC (permalink / raw)
To: linux-ia64
On Wed, 2011-08-24 at 09:13 -0600, David Mosberger-Tang wrote:
> Matt,
>
> As I remember it, it was the single system-call on the critical path of
> libunwind. Don't remember the numbers, but it was significant.
Interesting. So that'd be the critical path for things like performance
analysis tools that record stack traces? Yeah, I can see how you'd want
the stack trace recording to have very little overhead.
I guess I'll start writing ia64 assembly then...
--
Matt Fleming, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-24 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-24 14:39 How performance critical is fsys_rt_sigprocmask()? Matt Fleming
2011-08-24 19:51 ` Matt Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox