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
khaled has quit [Quit: Konversation terminated!]
hpt has quit [Ping timeout: 240 seconds]
khaled has joined #systemtap
LW has joined #systemtap
<LW> hello
<LW> Does systemtap require kernel version? my stap version is 2.9/0.165, can i use the linux kernel 4.19?
orivej has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
pfallenop has quit [Remote host closed the connection]
<fche> hi LW
<LW> yes
<fche> since the kernel does not maintain a stable api/abi, systemtap needs to play catch-up with kernel changes
<fche> stap 2.9 is from 2015-10-08; it cannot be compatible with a much younger kernel, though some distros backport some compatibility fixes
<fche> a new systemtap works with very old kernels as well as current ones
<LW> if i want use 4.19 kernel, i must use a new stap, such as stap 4.1?
<fche> probably, yes
<LW> ok, i will have a try, thanks
<fche> righto
<fche> what distro are you running?
<LW> i am using ubuntu 16.04, but i build the my own kernel from kernel source code, and i install the stap with the command: apt install systemtap.
<fche> aha. if you are able to build your own kernel, you'll find it straightforward to build a newer stap
<fche> we're thinking about setting up ubuntu PPAs with newer systemtap builds for people like you, but don't have it yet
<LW> I'm a newbie for systemtap. I encountered an error during build from src, so i give up
<fche> what was the error?
<LW> i'll try again later and email the results
tromey has joined #systemtap
<LW> if i build my own kernel, i must
<LW> if i build my own kernel, i must use the not-striped kernel and ko?
<fche> for some stap scripts, you'll want to keep the unstripped CONFIG_DEBUG_INFO=y kernel around on disk
<LW> i have config the CONFIG_DEBUG_INFO=y in kernelsrc/.config, but i use this command to install ko: make INSTALL_MOD_STRIP=1 modules_install, Should I not specify the INSTALL_MOD_STRIP=1 , i should use make INSTALL_MOD_STRIP=0 modules_install
<LW> ?
<fche> if you want to probe the modules, you'll want to keep an unstripped copy around
<fche> stap can run based on a build tree that matches a running kernel
<fche> it does not have to read content only from the installed /lib/modules/.... directory
<fche> so you can make install any way you want
<fche> and then run stap -r /path/to/original/build/tree that contains the full vmlinux and .ko's
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
amerey has joined #systemtap
LW has quit [Read error: Connection reset by peer]
LW has joined #systemtap
orivej has joined #systemtap
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 26.2)]
LW_ has joined #systemtap
LW has quit [Read error: Connection reset by peer]
<agentzh> fche: i've noted that the std tapset func proc_mem_rss() returns very diferent values than the RSS value reported by tools like top.
<agentzh> the former is MM_FILEPAGES + MM_ANONPAGES while the latter seems to have
<agentzh> MM_SHMEMPAGES added as well.
<agentzh> should we adjust proc_mem_rss() accordingly?
<agentzh> according to /proc/PID/status, VmRSS = RssAnon + RssFile + RssShmem, it appears.
tonyj has joined #systemtap
<agentzh> it makes the return value exactly the same as RSS reported by /proc/xxx/status and top.
khaled has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 258 seconds]
khaled has joined #systemtap
lindi- has quit [Ping timeout: 248 seconds]
<fche> agentzh, looks good to me, except perhaps for compatibility purposes may want to put that shmempages addition as a %( systemtap_v >= "4.2" ? .... %) kind of thing
<fche> so that existing users are not affected
<fche> I guess > "4.2"
lindi- has joined #systemtap
lindi- has quit [Ping timeout: 248 seconds]
<agentzh> fche: okay. and also a note to NEWS?
<fche> sure
<fche> thanks dude
<agentzh> k
<agentzh> sure