Prashant Srinivasan
2005-Oct-18 09:16 UTC
[dtrace-discuss] Error while using sdt interrupt-complete.
Has anyone seen the following error before? "error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): invalid address (0x198) in action #3 at DIF offset 20" I''m trying to capture interrupt times as inlined in the below script. The script gives me some output after the errors, and I''m trying to understand if the errors are affecting my output(and the cause, of course) Thanks for any pointers, -ps intr.d from the SDT provider chapter in the guide. ------------------------------------------------- interrupt-start { self->ts = vtimestamp; } interrupt-complete /self->ts/ { this->devi = (struct dev_info *)arg0; @[stringof(`devnamesp[this->devi->devi_major].dn_name), this->devi->devi_instance] = quantize(vtimestamp - self->ts); } output on running: ------------------ bash-3.00# dtrace -s ./intr.d > /tmp/dt.out 2>&1 bash-3.00# more /tmp/dt.out dtrace: script ''./intr.d'' matched 2 probes dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 dtrace: error on enabled probe ID 2 (ID 473: sdt:unix:av_dispatch_autovect:interrupt-complete): inva lid address (0x198) in action #3 at DIF offset 20 [ . . . and so on . . .]
Adam Leventhal
2005-Oct-18 11:49 UTC
[dtrace-discuss] Error while using sdt interrupt-complete.
Hi Prashant, There are times when arg0 can be NULL if there''s no associated device. There''s already a bug open to address the error in the documentation. 6284911 args to interrupt-start and interrupt-complete need more info You can fix the script by adding a predicate to the interrupt-start probe: interrupt-start /arg0 != NULL/ ... Adam On Tue, Oct 18, 2005 at 02:16:44AM -0700, Prashant Srinivasan wrote:> Has anyone seen the following error before? > > "error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): invalid address > (0x198) in action #3 at DIF offset 20" > > I''m trying to capture interrupt times as inlined in the below script. > The script gives me some output after the errors, and I''m trying to > understand if the errors are affecting my output(and the cause, of course) > > Thanks for any pointers, > -ps > > intr.d from the SDT provider chapter in the guide. > ------------------------------------------------- > interrupt-start > { > self->ts = vtimestamp; > } > > interrupt-complete > /self->ts/ > { > this->devi = (struct dev_info *)arg0; > @[stringof(`devnamesp[this->devi->devi_major].dn_name), > this->devi->devi_instance] = quantize(vtimestamp - self->ts); > } > > > output on running: > ------------------ > bash-3.00# dtrace -s ./intr.d > /tmp/dt.out 2>&1 > bash-3.00# more /tmp/dt.out > dtrace: script ''./intr.d'' matched 2 probes > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > dtrace: error on enabled probe ID 2 (ID 473: > sdt:unix:av_dispatch_autovect:interrupt-complete): inva > lid address (0x198) in action #3 at DIF offset 20 > > [ . . . and so on . . .] > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl