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
philip_ has quit [Quit: philip_]
hpt has quit [Quit: Lost terminal]
hpt has joined #systemtap
hpt has quit [Quit: Lost terminal]
scox has joined #systemtap
hkshaw has quit [Ping timeout: 248 seconds]
hkshaw has joined #systemtap
irker777 has quit [Quit: transmission timeout]
hchiramm has quit [Ping timeout: 258 seconds]
hpt has joined #systemtap
hchiramm has joined #systemtap
hkshaw has quit [Quit: Leaving.]
hkshaw has joined #systemtap
hpt has quit [Ping timeout: 265 seconds]
zodbot has quit [Read error: Connection reset by peer]
zodbot has joined #systemtap
pwithnall_ has joined #systemtap
hkshaw has quit [Ping timeout: 250 seconds]
hkshaw has joined #systemtap
hkshaw has quit [Read error: Connection reset by peer]
hkshaw has joined #systemtap
modem has joined #systemtap
<modem> hey
<modem> I am using systemtap to alter a function control flow
<modem> so I put on hook on it and call some embeded C-code
<modem> but then I would like the systemtap probe to return
<modem> basically I am trying a new version of the function for a specific scenario, I do not want the original code to be executed at all
<modem> everytime i have an "if" match I am expecting my code to be called instead of the embeded code
<modem> do you guy can let me know how I could achieve that using systemtap ? Thanks!
<modem> I found a way to let the orig function return triggering an error path
<modem> but it is somehow hacky
tromey has joined #systemtap
<fche> modem, it certainly is somehow hacky
<fche> but lacking any way to dramatically & portably modify -control- flow, we're left with changing -data- flow so to speak
<fche> (I mean one could in theory adjust the pt_regs PC value to jump over things, but that's far more hacky)
sabayonuser has joined #systemtap
<modem> fche: hey
<modem> ok let's do it hacky way
<modem> thx :-)
<fche> yeah. that's the way we do security band-aids too
sabayonuser has quit [Client Quit]
<modem> you means patch ?
<modem> hah yes
<fche> though I think by the time I presented the concept at FOSDEM last year, some ideas crystallized better
<modem> I have seen such patch recently
<modem> rh bugzilla iirc
<modem> didn't know you presented the concept previous to that, tought it was a good idee
<modem> i defintely would patch my system with systemtap instead of rebooting from time to time to give me opportunity to migrate properly without exposing meanwhile
<fche> that's the idea & attraction
<fche> it's definitely not a turn-the-crank easy operation though
<fche> harder than taking someone's patch and applying/rebooting etc.
<fche> but it's a neat puzzle
hkshaw has quit [Ping timeout: 252 seconds]
wcohen has quit [Remote host closed the connection]
hkshaw has joined #systemtap
irker778 has joined #systemtap
<irker778> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-451-g0d4f1dd / tapset/linux/nd_syscalls.stp tapset/linux/sysc_lsetxattr.stp tapset/linux/syscalls.stp: PR20333/lsetxattr http://tinyurl.com/h6vcvjj
<irker778> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-452-ge772e0a / tapset/linux/nd_syscalls.stp tapset/linux/sysc_lstat.stp tapset/linux/syscalls.stp: PR20333/lstat http://tinyurl.com/zary429
<irker778> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-453-g2019638 / tapset/linux/nd_syscalls.stp tapset/linux/sysc_madvise.stp tapset/linux/syscalls.stp: PR20333/madvise http://tinyurl.com/jzw4q9r
<irker778> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-454-g4d37225 / tapset/linux/nd_syscalls.stp tapset/linux/sysc_mbind.stp tapset/linux/syscalls.stp: PR20333/mbind http://tinyurl.com/ze86um5
<irker778> systemtap: mcermak systemtap.git:refs/heads/mcermak/PR20333 * release-3.0-455-g01427b7 / tapset/linux/nd_syscalls.stp tapset/linux/sysc_membarrier.stp tapset/linux/syscalls.stp: PR20333/membarrier http://tinyurl.com/zl3zhsu
Daniel has joined #systemtap
Daniel is now known as Guest56127
<Guest56127> Hey folks, i have compiled systemtap version 3.0. Unfortunately it is not running. The compilation of generated C code fails (Pass 4). E.g. running stap -ve 'probe begin { log("hello world") exit () }' yields in an error like this http://pastebin.com/iqz3LnwK. Do you have any clue what might be wrong?
<fche> Guest56127, hi, use git systemtap for recent kernels
<fche> the 3.0 release is now many months old, and newer kernels break interfaces
<fche> a stap 3.1 release will come out in a few weeks
<Guest56127> Ok, I will clone the git repo and try again. I am using 4.7.2 is that already too recent for version 3.0?
<fche> I think so
<Guest56127> I tried with recent version. Now systemtap prints hello world but i receive some strange error about a module. Here is the error http://pastebin.com/U2r4Cw3h.
<Guest56127> Furthermore, when i run nettop.stp from https://sourceware.org/systemtap/examples/network/nettop.stp i get semantic errors like in http://pastebin.com/FkDR79ga
<Guest56127> Is there anything wrong with the installation?
<fche> hi
<fche> hm that first message, no idea, will take a deeper look
<fche> re the second message (semantic errors) - typical of missing kernel debuginfo
<Guest56127> I have compiled the kernel myself with CONFIG_DEBUG_INFO=y do i need anything in addition?
hkshaw has quit [Ping timeout: 246 seconds]
pwithnall_ has quit [Quit: pwithnall_]
<fche> Guest56127, the stap README contains the full list of suggested CONFIG*s, but for debuginfo that's the only one really
pwithnall_ has joined #systemtap
<Guest56127> Ok, i will have a look on that README and recompile the kernel eventually.
<Guest56127> thx for your help
<fche> np, sorry it's not working for you out-of-the-box
<fche> what distro ar you running?
<Guest56127> no, certain distro i have a self compiled system with kernel 4.7.2.
<fche> yeah. a good distro takes care of such things for you, but that's not for everyone
pwithnall_ has quit [Quit: pwithnall_]
Guest56127 has quit [Quit: Leaving]
gila has joined #systemtap
philip_ has joined #systemtap
CME has quit [Ping timeout: 264 seconds]
CME_ has joined #systemtap
CME_ is now known as CME
CME has quit [Ping timeout: 264 seconds]
CME has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 25.1.90.2)]
CME has quit [Ping timeout: 268 seconds]
goncalo has joined #systemtap
CME has joined #systemtap
CME has quit [Ping timeout: 248 seconds]
CME has joined #systemtap
scox has quit [Ping timeout: 264 seconds]
philip_ has quit [Ping timeout: 258 seconds]
philip_ has joined #systemtap
<irker778> systemtap: lberk systemtap.git:refs/heads/master * release-3.0-322-gb82a3aa / java/HelperSDT.c: java: add basic support for java objects http://tinyurl.com/hp5zy7u