fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
hpt has joined #systemtap
flos has joined #systemtap
flos has quit [Quit: Those who know don't tell.]
hkshaw has quit [Ping timeout: 264 seconds]
irker797 has quit [Quit: transmission timeout]
hkshaw has joined #systemtap
ananth has joined #systemtap
ravi_ has joined #systemtap
zodbot has quit [Remote host closed the connection]
zodbot has joined #systemtap
Humble has quit [Ping timeout: 252 seconds]
jhg_ has quit [Ping timeout: 276 seconds]
Humble has joined #systemtap
hpt has quit [Quit: Lost terminal]
fLiPr3VeRsE has joined #systemtap
djellemah has quit [Ping timeout: 240 seconds]
djellemah has joined #systemtap
djellemah_ has joined #systemtap
djellemah has quit [Ping timeout: 240 seconds]
pwithnall has joined #systemtap
nkambo1 has quit [Ping timeout: 268 seconds]
sonal has joined #systemtap
mjw has joined #systemtap
<sonal>
i am playing with pointers and stuck somewhere. can anyone please help
ravi_ has quit [Ping timeout: 240 seconds]
djellemah_ has quit [Ping timeout: 246 seconds]
djellemah_ has joined #systemtap
nkambo1 has joined #systemtap
scox has quit [Ping timeout: 260 seconds]
hkshaw has quit [Quit: Leaving.]
ananth has quit [Quit: Leaving]
djellemah_ has quit [Ping timeout: 240 seconds]
djellemah_ has joined #systemtap
<fche2>
sonal, go on
<fche2>
(in general, please explain your problem, not just the topic, so we can help when we see your question)
<sonal>
fche2, so like there is a pointer in a function written in C, and i want to retrieve value of that pointer while probing that function
<sonal>
fche2, so i am using $pointer_name to retrieve but its giving zero everytime
sonal has quit [Ping timeout: 264 seconds]
sonal has joined #systemtap
sonal has quit [Ping timeout: 260 seconds]
hkshaw has joined #systemtap
sonal has joined #systemtap
<fche2>
where in the function are you probing ?
<fche2>
if it's a local variable, you may need an interior .statement() probe to get at a place where a valid value is available
<fche2>
think: where would you put a breakpoint in gdb in order to inspect that variable?
<sonal>
i am using system tap for probing
<sonal>
fche2, so i am probing two different functions, one is returing *dict and other is returing *this, i can easily retrieve value of this pointer by using $this but $dict returns zero value everytime.
<fche2>
on lines 7 and 17, do you mean probe ... function(), meaning -entry of function-? Because then you can only expect to get values for incoming function parameters.
<fche2>
without the $ sign, it's not a context variable
<fche2>
(and hmm, stap shouldn't even accept "& symbol" -- & should apply only to target/context symbols
<sonal>
fche2, ya $dict was not working, so was trying & instead