mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* local interrupt disabling
@ 2004-04-18  0:18 Fabiano Ramos
  0 siblings, 0 replies; only message in thread
From: Fabiano Ramos @ 2004-04-18  0:18 UTC (permalink / raw)
  To: linux-kernel

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-18  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-18  0:18 local interrupt disabling Fabiano Ramos

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®