fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
ton31337 has quit [Ping timeout: 244 seconds]
ton31337 has joined #systemtap
ton31337 has quit [Ping timeout: 240 seconds]
hpt has joined #systemtap
ton31337 has joined #systemtap
ton31337 has quit [Ping timeout: 276 seconds]
ton31337 has joined #systemtap
ton31337 has quit [Ping timeout: 265 seconds]
ananth has joined #systemtap
ton31337 has joined #systemtap
ton31337 has quit [Read error: Connection reset by peer]
ton31337 has joined #systemtap
ton31337 has quit [Ping timeout: 276 seconds]
ton31337 has joined #systemtap
ravi has joined #systemtap
ravi has quit [Ping timeout: 276 seconds]
ravi has joined #systemtap
ego_ has joined #systemtap
scox has quit [Ping timeout: 244 seconds]
srikar_away is now known as srikar
ego_ has quit [Ping timeout: 244 seconds]
irker988 has quit [Quit: transmission timeout]
pwithnall has joined #systemtap
hpt has quit [Quit: Lost terminal]
hpt has joined #systemtap
ravi has quit [Ping timeout: 244 seconds]
ananth has quit [Ping timeout: 264 seconds]
ananth has joined #systemtap
ananth has quit [Client Quit]
ananth has joined #systemtap
hpt has quit [Quit: Lost terminal]
ego_ has joined #systemtap
ravi has joined #systemtap
mjw has joined #systemtap
ego_ has quit [Ping timeout: 265 seconds]
scox has joined #systemtap
ananth has quit [Quit: Leaving]
flu has joined #systemtap
drsmith has joined #systemtap
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
ravi has quit [Quit: Leaving]
wcohen has quit [Ping timeout: 250 seconds]
ego_ has joined #systemtap
ego_ has quit [Read error: Connection reset by peer]
tromey has joined #systemtap
wcohen has joined #systemtap
ego_ has joined #systemtap
ego_ has quit [Ping timeout: 252 seconds]
srikar is now known as srikar_away
brolley has joined #systemtap
pwithnall has quit [Quit: pwithnall]
<p53ud0nym>
Is there an easy way to call a bash command from a systemtap script? I would like to read a file into a string on an event.
<fche>
p53ud0nym, you can queue code to be run
<fche>
but not collect its output (directly)
<fche>
'cause that'd block the systemtap runtime (kernel?) until the process was done
<fche>
see the system("echo hello") type command
<fche>
now if you really wanted to collect its output ...
<fche>
you could arrange for it to send it to the kernel some interesting way, such as via echoing into a procfs file, at which stap could receive it via a procfs.write probe
<p53ud0nym>
fche: I don't need to collect it's output. However does `system()` command run serially inside systap? I have a command after the read which will kill the guest OS state.
<fche>
see [man function::system]
<fche>
The command is started in the background ....
<fche>
IOW the probe handler that launches it can't even tell when it stops
<fche>
(on purpose)
<p53ud0nym>
hmm, looks like that won't work. I'm currently writing c kernel ODcode to read the file inline.
scox has quit [Ping timeout: 265 seconds]
mjw has quit [Quit: Leaving]
scox has joined #systemtap
pwithnall has joined #systemtap
<fche>
p53ud0nym, that's going to be nasty tricky too
<fche>
would suggest a procfs intermediary
<fche>
maybe we should draft such a sample script
pfallenop has quit [Remote host closed the connection]
pfallenop has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 25.1.3)]
pfallenop has quit [Ping timeout: 252 seconds]
pfallenop has joined #systemtap
pfallenop has quit [Ping timeout: 244 seconds]
scox has quit [Ping timeout: 240 seconds]
brolley has left #systemtap [#systemtap]
pfallenop has joined #systemtap
scox has joined #systemtap
mbenitez has quit [Quit: Leaving]
palmtenor has joined #systemtap
<palmtenor>
Hello guys~ I'm exploring the usage of SDT and currently looking at include/sys/sdt.h . What does the __ASSEMBLER__ flag indicates? Code looks quite different with or without that flag. I googled around but didn't find much reference to it
<palmtenor>
Thanks a lot in ahead!
pwithnall has quit [Quit: pwithnall]
wcohen has quit [Ping timeout: 240 seconds]
<fche>
palmtenor, that's for use of the header file from assembly code
<fche>
(that's rather unusual)
<palmtenor>
fche: Thank you! That makes sense, but I didn't expect it could do that:)