From: Gary Thomas <gary@mlbassoc.com>
To: Joakim Tjernlund <Joakim.Tjernlund@lumentis.se>
Cc: linuxppc embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: __restore_flags shows in kernel profile
Date: 23 Oct 2003 04:50:07 -0600 [thread overview]
Message-ID: <1066906206.29481.268.camel@hermes> (raw)
In-Reply-To: <200310230755.h9N7tLIr024281@blooper.utfors.se>
On Thu, 2003-10-23 at 01:55, Joakim Tjernlund wrote:
> I did a kernel profile(included below) of the bootup of my custom MPC862 board and I
> noticed that __restore_flags gets a very high count. I am suprised that such a small
> assembler routine gets such a high count. __cli, _save_flags_ptr and __sti are much lower.
> A small test program with a tight select loop on fds 0,1 or 2 also makes __restore_flags
> go wild.
> Anyone know why?
>
Simple: when interrupts are off (typically after a __save_flags),
there can't be any profiling interrupts. As soon as you restore
the interrupts (_restore_flags), the interrupt used for profiling
will fire.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-10-23 10:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 7:55 __restore_flags shows in kernel profile Joakim Tjernlund
2003-10-23 10:50 ` Gary Thomas [this message]
2003-10-23 11:55 ` Joakim Tjernlund
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=1066906206.29481.268.camel@hermes \
--to=gary@mlbassoc.com \
--cc=Joakim.Tjernlund@lumentis.se \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.