On Sat, May 30, 2009 at 12:04:50AM +0200, Pavel Filipensky wrote: > Hi, > > is it somehow possible to use Dtrace for error injection in a kernel module? > > Something like changing: > - function return value > - value of a register > > If not, can it be implemented?
No; it violates the basic safety constraints of dtrace(1M). > I can do that via kmdb, but I need Dtrace for the time synchronization > - chill() action. > I can not combine Dtrace & kmdb: > > dtrace: failed to initialize dtrace: DTrace cannot be used when kernel > debugger is active In kmdb: ...]> kdi_dtrace_state/W 1 will allow dtrace to start. If it breaks, you get to keep both pieces. If you put a debugger breakpoint at the same place a dtrace tracepoint is, things will not be happy. Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org