lkml.org 
[lkml]   [1999]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Trace Toolkit
On Mon, 23 Aug 1999, Karim Yaghmour wrote:

> > - I like the idea of tracing bottom half handlers; now it should also
> > trace interrupts
>
> I must disagree to some extent here. I thought a lot before deciding not
> to trace interrupts. The reason is that interrupts under linux often are
> short and only take care of some hardware issues before setting a bottom
> half and "exiting". Therefore, the "important" stuff only happens in the
> bottom half.

Not necessarily.

> Moreover, when logging a certain event, the kernel trace module uses spin
> locks ... I am not sure that it is safe to use spin locks inside
> interrupts. No?

Spinlocks are the _only_ kind of lock that is safe to use in an interrupt
handler. Provided (as with any place you use them) that you are only
spinning for a very small amount of time.

cheers,
-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


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

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