lkml.org 
[lkml]   [2004]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectlocal interrupt disabling
From
Date
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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.017 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site