From: Fabiano Ramos <fabramos@bol.com.br>
To: linux-kernel@vger.kernel.org
Subject: local interrupt disabling
Date: Sat, 17 Apr 2004 21:18:27 -0300 [thread overview]
Message-ID: <1082247507.1201.7.camel@slack.domain.invalid> (raw)
Hi all.
I am doing some work on 2.4 to count the number of instructions
executed for a given syscall.I set the trap bit on eflags at the syscall
entry, causing a trap for each instruction executed until the iret at
return_from_syscall. At the debug handler, I increment my counter.
I know that the syscall code cannot be preempted by another
exeception handler, only by interrupts or page faults it causes.
I want to track the page faults, no problem, but I wouldn't like
the syscall to be interrupted by a mouse interrupt, for examnple.
Local interrupt disabling while servicing the syscall would solve
my problem, or would it create other problems?
TIA,
Fabiano
reply other threads:[~2004-04-18 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1082247507.1201.7.camel@slack.domain.invalid \
--to=fabramos@bol.com.br \
--cc=linux-kernel@vger.kernel.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 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®