fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
agentzh has joined #systemtap
<agentzh>
is there a way to suppress the warning "WARNING: confusing usage, consider @entry" without using -w?
<fche>
you could use @entry($value) instead of $value :-)
<agentzh>
i really don't want to use @entry() at all...
<fche>
why?
<agentzh>
because the function being probed may change the global variable's value.
<agentzh>
the value at the function entry will be stale.
<agentzh>
i'm using @var() to fetch global or static variable values
<fche>
Ah, that bug, @var() being interpreted as if $var? yeah that's a separate bug
<agentzh>
in func return probes.
<fche>
we shouldn't do that
<fche>
the warning was there for barenaked $var type constructs
<agentzh>
okay, gload to know it's a known issue...
<agentzh>
*glad
<agentzh>
yeah, i understand that part.
<fche>
so that's the only kind we should warn on (and interpret as though @entry()'d)
<agentzh>
any hint on how to fix the @var() thing?
<fche>
sure, stand by
<agentzh>
great
<agentzh>
thanks
<fche>
tapsets.cxx line 4464
<fche>
should probably exclude @var() in the conditional (e->name)
<agentzh>
okay, i'll try
<agentzh>
thanks
<fche>
yeah, since this is a change in behaviour, probably needs a systemtap-version conditional too :(
<agentzh>
*nod*
<fche>
sorry we didn't get this right the first time
<agentzh>
i've been bitten by this due to mysteriously wrong values :P
<agentzh>
no worries, the version check is not hard anyway :)
<fche>
yeah
wyang123 has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
mjw has joined #systemtap
sscox has quit [Ping timeout: 240 seconds]
wyang123 has quit [Quit: wyang123]
orivej has joined #systemtap
invano_ has quit [Ping timeout: 252 seconds]
invano_ has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
sscox has joined #systemtap
wyang123 has joined #systemtap
orivej has joined #systemtap
brolley has joined #systemtap
tromey has joined #systemtap
wyang123 has quit [Quit: wyang123]
orivej has quit [Ping timeout: 250 seconds]
sscox has quit [Quit: sscox]
sscox has joined #systemtap
orivej has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 26.1.50)]