fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
orivej has quit [Ping timeout: 256 seconds]
gromero_ has quit [Ping timeout: 265 seconds]
CME has quit [Ping timeout: 265 seconds]
scox has joined #systemtap
CME has joined #systemtap
orivej has joined #systemtap
hpt has joined #systemtap
sanoj has joined #systemtap
sanoj has quit [Quit: Leaving]
sanoj has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
naveen has joined #systemtap
hpt has quit [Ping timeout: 256 seconds]
hpt has joined #systemtap
nkambo has joined #systemtap
slowfranklin has joined #systemtap
orivej has joined #systemtap
sanoj has quit [Ping timeout: 256 seconds]
slowfranklin has quit [Quit: slowfranklin]
orivej has quit [Ping timeout: 255 seconds]
slowfranklin has joined #systemtap
hpt has quit [Quit: Lost terminal]
scox has quit [Ping timeout: 260 seconds]
gromero_ has joined #systemtap
mjw has joined #systemtap
<lightydo> Hi, does anybody have an idea on detecting process daemonization with stap? I would like to avoid detecting the whole general guidelines for daemonization, i.e. umask, fork, setsid etc..but rather detect when a process's ppid and sid have changed...
mbenitez has joined #systemtap
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
orivej has joined #systemtap
wcohen has quit [Ping timeout: 256 seconds]
naveen_ has joined #systemtap
naveen has quit [Ping timeout: 256 seconds]
scox has joined #systemtap
<drsmith> lightlydo: Hmm, interesting. I had a quick look around kernel/exit.c, and I'd suggest probing reparent_leader() and/or forget_original_parent(). Those might get you what you want.
wcohen has joined #systemtap
<lightydo> drsmith: thanks that was also my first lead....looking into it.
<lightydo> drsmith: only problem so far is that both are static functins, hence no script level local variables
<drsmith> but you do have the args, right?
<lightydo> not according to stap -L
<drsmith> I see the args on 4.15.6-300.fc27.x86_64
<drsmith> it looks like exit_notify() might be the next candidate up the stack
<lightydo> doesn;t that depend on the stap version? (mine is version 3.2/0.170, commit release-3.2-0-g4051c70c9318 + changes)
<drsmith> possibly, but it mostly depends on the debuginfo
<drsmith> I'm running HEAD
<fche> we should have context variables for it
<lightydo> same for exit_notify....I am testing on Ubuntu 17.10 (4.13.0-36-generic) but I will need this on various systems from as old as 2.6
<fche> right, you will need dbgsyms stuff for $context variables
<fche> ubuntu's come some way in making those available, but still not as smooth as fedora
<lightydo> I have dbgsyms but as you say, probably not enough...
<drsmith> make sure you dbgsyms are for your *exact* kernel version
<lightydo> will look into it...logging off..
<fche> lightydo, stap-prep may help.
amerey has joined #systemtap
gromero_ has quit [Ping timeout: 256 seconds]
gromero_ has joined #systemtap
mbenitez has quit [Quit: Leaving]
mbenitez has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
nkambo has quit []
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
tromey has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
slowfranklin has quit [Client Quit]
naveen_ has quit [Quit: WeeChat 2.0.1]
slowfranklin has joined #systemtap
orivej has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
mjw has quit [Quit: Leaving]
mjw has joined #systemtap
gromero_ has quit [Ping timeout: 265 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 26.0.91)]
izabera has left #systemtap ["WeeChat 1.9.1"]
slowfranklin has joined #systemtap
mbenitez has quit [Quit: Leaving]
slowfranklin has quit [Quit: slowfranklin]
wcohen has quit [Ping timeout: 256 seconds]
slowfranklin has joined #systemtap
slowfranklin has quit [*.net *.split]
slowfranklin has joined #systemtap
slowfranklin has quit [Client Quit]
mjw has quit [Quit: Leaving]
scox has quit [Ping timeout: 240 seconds]
wcohen has joined #systemtap