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?
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