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> where are you putting the probes?
<fche2> ok, so line 9, do you mean & $dict ?
<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
<fche2> you probably need both
<sonal> fche2, oky
<fche2> looking at the dict_new function, you probably want to probe function("dict_new").return { } and pull the allocated dict value out of $return
<sonal> fche2, so by line 7 and 17, we cant get the value of pointers which the probed function dict_new returns
<sonal> yep
<fche2> making sense now?
<sonal> fche2, yep :)
<fche2> very good
<fche2> it may help to remember that stap is not very smart
<sonal> fche2, thanks :)
<fche2> it puts a logical breakpoint at the exact place you ask for
<fche2> and a .function( ) probe means -beginning- of function, not end or some other DWIM place
<fche2> but in the mean time I'll file a bug against stap accepting that & symbol syntax at all
<sonal> fche2, oh got it
<fche2> hm current stap gives an error message for this case
<fche2> not a perfectly clear one but
<fche2> semantic error: unknown type in dereference: operator '&' at <input>:1:42
<fche2> source: probe process.function("main") { println(& foobar) }
<sonal> fche2, yep
mbenitez has joined #systemtap
sonal has quit [Ping timeout: 240 seconds]
wcohen has quit [Ping timeout: 264 seconds]
groleo has joined #systemtap
sonal has joined #systemtap
drsmith has joined #systemtap
sonal has quit [Ping timeout: 268 seconds]
scox has joined #systemtap
sonal has joined #systemtap
groleo has quit [Read error: Connection reset by peer]
eichiro has quit [Quit: leaving]
eichiro has joined #systemtap
eichiro has quit [Remote host closed the connection]
eichiro has joined #systemtap
wcohen has joined #systemtap
sonal has quit [Ping timeout: 260 seconds]
tromey has joined #systemtap
sonal has joined #systemtap
jhg_ has joined #systemtap
sonal has quit [Ping timeout: 268 seconds]
nkambo1 has quit [Ping timeout: 260 seconds]
jhg_ has quit [Ping timeout: 258 seconds]
jhg_ has joined #systemtap
<danield_> how to get a process creation time?
<fche2> danield_, hi
<danield_> fche2, hi
nkambo1 has joined #systemtap
<danield_> could I rely on the /proc/pid file/dir date ? can I get it from task struct?
<fche2> I am pretty sure there is a field in the task_struct that has the process creation time
<fche2> in fact [man function::task_start_time]
<danield_> fche2, thanks. would have been nice to get it as EPOC time and not since boot...but it will do ;-)
<fche2> righto; there probably is or should be a tapset function to retrieve the boot-to-epoch offset too
pwithnall has left #systemtap [#systemtap]
pwithnall has joined #systemtap
pwithnall has quit [Quit: pwithnall]
irker407 has joined #systemtap
<irker407> systemtap: dsmith systemtap.git:refs/heads/dsmith/pr21173 * release-3.1-14-gd6afeae / testsuite/buildok/defined-entry.stp testsuite/semko/defined_entry01.stp testsuite/semko/defined_entry02.stp testsuite/semko/defined_entry03.stp: Fix buildok/defined-entry.stp test case. http://tinyurl.com/jqcgwvf
sonal has joined #systemtap
djellemah_ has quit [Ping timeout: 264 seconds]
<irker407> systemtap: dsmith systemtap.git:refs/heads/dsmith/pr21173 * release-3.1-15-g12c81d0 / testsuite/semko/binexpr_infer_type5.stp testsuite/semko/binexpr_infer_type6.stp testsuite/semok/binexpr_infer_type.stp: Add binary expression infer type tests. http://tinyurl.com/gm9cmzk
djellemah_ has joined #systemtap
p53ud0nym has quit [Quit: ZNC - http://znc.in]
<irker407> systemtap: dsmith systemtap.git:refs/heads/dsmith/pr21173 * release-3.1-16-g725ae08 / elaborate.cxx: PR21173: Improve type resolution. http://tinyurl.com/h9qc4e5
sonal has quit [Ping timeout: 260 seconds]
sonal has joined #systemtap
djellemah_ has quit [Quit: Leaving]
djellemah has joined #systemtap
sonal has quit [Ping timeout: 260 seconds]
mbenitez has quit [Ping timeout: 240 seconds]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
ema_ has joined #systemtap
jlebon_ has joined #systemtap
jlebon has quit [*.net *.split]
ema has quit [*.net *.split]
hkshaw has quit [Ping timeout: 260 seconds]
wcohen has quit [Ping timeout: 246 seconds]
scox has quit [Ping timeout: 268 seconds]
irker407 has quit [Quit: transmission timeout]
tromey has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
drsmith is now known as drsmith_away
mbenitez has quit [Quit: Leaving]
mjw has quit [Quit: Leaving]
pwithnall_ has joined #systemtap