This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]