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
sanoj has joined #systemtap
hpt has quit [Ping timeout: 252 seconds]
scox has joined #systemtap
hpt has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
naveen has joined #systemtap
naveen has quit [Quit: WeeChat 2.0.1]
eklitzke has joined #systemtap
<eklitzke> i'm trying to understand how to write a tapset, and i don't understand how i hide $arg1 $arg2 etc. when i write wrappers for markers i added
slowfranklin has joined #systemtap
naveen has joined #systemtap
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 245 seconds]
naveen_ has joined #systemtap
hpt has quit [Quit: Lost terminal]
naveen has quit [Ping timeout: 268 seconds]
gila has quit [Ping timeout: 260 seconds]
sanoj has quit [Ping timeout: 240 seconds]
naveen_ has quit [Quit: WeeChat 2.0.1]
gromero has quit [Ping timeout: 252 seconds]
naveen has joined #systemtap
gila has joined #systemtap
scox has quit [Ping timeout: 240 seconds]
naveen has quit [Quit: WeeChat 2.0.1]
mjw has joined #systemtap
gromero has joined #systemtap
gromero has quit [Read error: Connection reset by peer]
wcohen has quit [Ping timeout: 260 seconds]
naveen has joined #systemtap
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
scox has joined #systemtap
wcohen has joined #systemtap
naveen has quit [Ping timeout: 256 seconds]
mjw has quit [Quit: Leaving]
naveen has joined #systemtap
orivej has joined #systemtap
sanoj has joined #systemtap
naveen_ has joined #systemtap
naveen has quit [Ping timeout: 260 seconds]
tromey has joined #systemtap
<fche> we don't hide them, we provide alternate variable names for them
<fche> so e.g. probe foobar = foo.mark("bar") { useful_name = $arg1; useful_string = user_string($arg2) }
<fche> ^^ eklitzke
mjw has joined #systemtap
mjw has quit [Quit: Leaving]
<eklitzke> makes sense
<eklitzke> thanks
<fche> righto
orivej has quit [Ping timeout: 240 seconds]
sanoj has quit [Ping timeout: 256 seconds]
mjw has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
<eklitzke> kind of a long winded question, but i'll ask anyway
<eklitzke> the project i'm working with uses autotools and does the fairly standard thing where there's a src/ directory, and the executables end up being built there
<eklitzke> for local testing i want to run a command like:
<eklitzke> stap -I ./share/tapset -c ./src/foo ./mytest.stp
<eklitzke> if the tapset defines probes on process("foo") this fails because foo is not in the current working directory, nor is it in my PATH
<eklitzke> if i temporarily set PATH="./src:$PATH" then things work, but this seems odd to me
<eklitzke> is there a better way to do this?
<eklitzke> and could stap check to see if the argument to -c matches the process() probes before doing the path checks?
mjw has quit [Quit: Leaving]
<drsmith> eklitzke: Hmm, that's an interesting question about your path. Off the top of my head, I can't think of anything to help there.
<drsmith> stap does have a mechanism where you can say 'process(@1)', then add the exe to probe on the command line, but I'm not sure that's a good thing to do if the probe is actually in a tapset.
<drsmith> As for your last question, I'm not sure we'd want to add the functionality of making sure -c checked the process probes. What if the '-c EXE' forks and execs the actual exe you want to probe?
<fche> stap -e 'probe process.FOO {}' -c CMD just works as you expect
<fche> ie the process probe point implicitly takes the -c CMD parameter as its own parameter
<eklitzke> let me test that out
<fche> you may need a -c /path/to/cmd
mbenitez has quit [Quit: To office]
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
naveen has joined #systemtap
naveen_ has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
naveen has quit [Quit: WeeChat 2.0.1]
mjw has joined #systemtap
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
zino_ has joined #systemtap
orivej has joined #systemtap
zino_ has quit [Quit: zino_]
scox has quit [Ping timeout: 240 seconds]
slowfranklin has quit [Quit: slowfranklin]
wcohen has quit [Ping timeout: 252 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.91)]
mjw has quit [Quit: Leaving]
mbenitez has quit [Quit: Leaving]
gromero has joined #systemtap
wcohen has joined #systemtap