This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Question about line number probing
Hi -
> > probe kernel.statement("*@foo.c:1234") {
> > printf("arg2 = %d\n", $arg2);
> > }
> Yeah, I tried that. It said it couldn't locate arg2. :(
Yes, sometimes the compiler makes the value effectively disappear.
Running gdb on a similarly optimized binary would give the same error.
Try neighbouring line numbers (though IIRC systemtap already makes
suggestions like that).
- FChE