public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Functions that require interrupts be enabled
@ 2007-05-15 22:33 Mike Mason
  2007-05-16  0:49 ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Mason @ 2007-05-15 22:33 UTC (permalink / raw)
  To: SystemTAP

I want to add a function to the task.stp tapset file that grabs a process' arguments from its user address space.  We couldn't do this before because all probes ran with interrupts disabled and couldn't sleep.  Now that begin/end probes no longer require that interrupts be disabled, this function can be used in begin/end probes at least.  

How do I prevent the function from being used in other probes?  Is there a way to detect if interrupts are disabled or detect that the function was called from a begin/end probe?  Do we even want to provide functions with this type of limitation?

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-17 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-15 22:33 Functions that require interrupts be enabled Mike Mason
2007-05-16  0:49 ` Frank Ch. Eigler
2007-05-16 19:00   ` Mike Mason
2007-05-17 19:46     ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).