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
drsmith is now known as drsmith_away
scox_ has joined #systemtap
scox has quit [Ping timeout: 258 seconds]
srikar_away is now known as srikar
ananth has joined #systemtap
hkshaw has joined #systemtap
srikar is now known as srikar_away
ego_ has joined #systemtap
srikar_away is now known as srikar
nkambo1 has quit [Ping timeout: 276 seconds]
hchiramm has joined #systemtap
nkambo has joined #systemtap
srikar is now known as srikar_away
srikar_away is now known as srikar
hkshaw has quit [Ping timeout: 265 seconds]
hkshaw has joined #systemtap
serhei has quit [Quit: Lost terminal]
ego_ has quit [Quit: Leaving]
darvon has quit [Ping timeout: 250 seconds]
jlebon has quit [Ping timeout: 258 seconds]
flu has quit [Ping timeout: 250 seconds]
DuncanT has quit [Read error: Connection reset by peer]
DuncanT has joined #systemtap
jlebon_ has joined #systemtap
darvon_ has joined #systemtap
Empyrium has quit [Ping timeout: 276 seconds]
flu has joined #systemtap
Empyrium has joined #systemtap
ph7 has joined #systemtap
ph7 has quit [Client Quit]
hpt has quit [Quit: leaving]
ph7 has joined #systemtap
ananth has quit [Quit: Leaving]
ego_ has joined #systemtap
darvon_ is now known as darvon
hkshaw has quit [Quit: Leaving.]
wcohen has quit [Remote host closed the connection]
mjw has joined #systemtap
wcohen has joined #systemtap
hpt has joined #systemtap
scox_ has quit [Ping timeout: 258 seconds]
hpt has quit [Client Quit]
wcohen has quit [Ping timeout: 240 seconds]
scox_ has joined #systemtap
hkshaw has joined #systemtap
ego_ has quit [Ping timeout: 276 seconds]
mbenitez has joined #systemtap
wcohen has joined #systemtap
drsmith_away is now known as drsmith
brolley has joined #systemtap
ph7 has quit [Quit: Leaving.]
mbenitez_ has joined #systemtap
mbenitez has quit [Ping timeout: 276 seconds]
mbenitez_ is now known as mbenitez
mbenitez has quit [Changing host]
mbenitez has joined #systemtap
mbenitez has quit [Ping timeout: 240 seconds]
mbenitez has joined #systemtap
mbenitez has quit [Changing host]
mbenitez has joined #systemtap
srikar is now known as srikar_away
srikar_away is now known as srikar
ego_ has joined #systemtap
mbenitez has quit [Ping timeout: 244 seconds]
ph7 has joined #systemtap
ph7 has quit [Ping timeout: 260 seconds]
mbenitez has joined #systemtap
srikar is now known as srikar_away
srikar_away is now known as srikar
nkambo has quit [Read error: Connection reset by peer]
zodbot has quit [Read error: Connection reset by peer]
jhg_ has quit [Ping timeout: 260 seconds]
nkambo has joined #systemtap
zodbot has joined #systemtap
djellemah has quit [Ping timeout: 260 seconds]
tromey has joined #systemtap
ego_ has quit [Ping timeout: 250 seconds]
srikar is now known as srikar_away
jhg_ has joined #systemtap
ph7 has joined #systemtap
hchiramm has quit [Ping timeout: 244 seconds]
ego_ has joined #systemtap
tromey has quit [Ping timeout: 244 seconds]
ph7 has quit [Quit: Leaving.]
p53ud0nym has joined #systemtap
<p53ud0nym> How can i use systemtap with debugging symbols on a custom kernel?
<p53ud0nym> I am compiling with CONFIG_DEBUG_INFO=y and DWARF4 enabled but systemtap doesn't find a modules debug symbols
<p53ud0nym> does it look in /usrr/lib/debug/`uname -r`/?
<p53ud0nym> I basically have a custom kernel modul ethat I want to place probes in. I am currently running with `stap -g -d MODNAME script.stp -v`.
tromey has joined #systemtap
ph7 has joined #systemtap
<fche> hey p53ud0nym
<fche> so to probe out-of-tree modules, stap has been getting better, e.g., supporting module("/full/path/to/foo.ko") probe points
<fche> but the easiest way is to install your debuginfo-laden .ko under /lib/modules/`uname -r`/SUBDIRECTORY; stap will find it there easily
<p53ud0nym> fche: Thanks but I'm still receiving `no line information` on a statement probe when i pass the direct path of the kernel module. NB: stap doesn't complain about the function probes. The module is compiled with `-g -DDEBUG -ggdb`
<p53ud0nym> I've check objdump and DWARF symbols are there.
<p53ud0nym> I'm about to try and compile with the `-O0` flag.
<fche> hm this is sounding familiar; was this a CONFIG_DEBUG_INFO_SPLIT=y configuration perhaps?
<p53ud0nym> CONFIG_DEBUG_INFO_SPLIT is not set
<p53ud0nym> I can force it to N and re-compile?
<fche> worth a shot
scox| has joined #systemtap
<fche> as is
<fche> % stap -l 'module("foo").statement("*@*:*")'
scox_ has quit [Ping timeout: 265 seconds]
<p53ud0nym> fche: Your last suggestion printed out every line. Thanks.
<fche> so that same probe point should work as in probe module("foo").statement("bar...") { }
djellemah has joined #systemtap
mjw has quit [Quit: Leaving]
djellemah_ has joined #systemtap
djellemah has quit [Ping timeout: 240 seconds]
<p53ud0nym> fche: ...It worked
<fche> hoorray
<p53ud0nym> So when i ran `stap -l .....` is only printed certain lines.
<fche> yes, when stap can reasonably-unambiguously pick a source level line that corresponds to a PC address
<p53ud0nym> I was using `module("foo").statement("*@*:510")` but that didn;t exist in the ouptut from `stap -l`. However lines 509 and 511 did.
<p53ud0nym> Thanks a lot!
djellemah has joined #systemtap
djellemah has quit [Quit: Leaving]
djellemah__ has joined #systemtap
ego_ has quit [Quit: Leaving]
djellemah_ has quit [Ping timeout: 260 seconds]
drsmith has left #systemtap [#systemtap]
ph7 has quit [Quit: Leaving.]
ph7 has joined #systemtap
drsmith has joined #systemtap
ph7 has quit [Quit: Leaving.]
hkshaw has quit [Ping timeout: 252 seconds]
<p53ud0nym> Surely this is a bug: https://paste.debian.net/786674/
<fche> sometimes the list mode is optimistic; this is a bug, yeah
<p53ud0nym> As far as I'm concerned, this is also another bug: https://paste.debian.net/786675/
wcohen has quit [Ping timeout: 240 seconds]
<fche> probably, but it's a bug in gcc and/or linux kconfig
tromey has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
<fche> fedora carries that as a kernel patch; unfortunately lkml has not seen eye-to-eye on this point
<fche> they basically degrade debuginfo deliberately
detter has joined #systemtap
detter has quit [Client Quit]
detter has joined #systemtap
<p53ud0nym> Maybe I should have just used fedora with a stock kernel. I'm recompiling the trying it again.
<fche> if you build your module with V=1, we can see the CFLAGS better
detter has quit [Ping timeout: 240 seconds]
mbenitez has quit [Quit: Leaving]
detter has joined #systemtap
<fche> p53ud0nym, any luck?
<p53ud0nym> No. V=1 shows the module and entire kernel is built with -fvar-tracking-assignments but I still can't compile due to lack of references.
<p53ud0nym> *can't compile the stp script
<p53ud0nym> Same error as before, with an output that exists in `stap -l module()(*@*:*)` cannot be found.
<p53ud0nym> I'm about to give up tbh.
<p53ud0nym> I have a deadline and I'm running of time. Probably manually edit driver code for now on a few drivers. If I get time I'll use fedora with their stock kernel without my custom kernel module. If I do, you will see me back here In a month.
<p53ud0nym> Thanks for all your help.
<fche> ok
<fche> sorry it didn't work out
<fche> one other thing worth trying btw is to add in some kernel tracepoints
<fche> those one are reliably placed & parameters reliably passed, without debuginfo issues
detter has quit [Ping timeout: 240 seconds]
<p53ud0nym> Thanks, i'll look into it.
wcohen has joined #systemtap
brolley has left #systemtap [#systemtap]
drsmith is now known as drsmith_away
detter has joined #systemtap
detter has quit [Quit: Leaving]