fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
<agentzh> k
<irker777> systemtap: yichun systemtap.git:master * release-4.2-109-g046b06a9e / NEWS runtime/linux/task_finder.c runtime/linux/task_finder2.c testsuite/systemtap.base/process-begin-user.exp testsuite/systemtap.base/process-begin-user_4.stp: feature: vma-related primitives now work in process.begin.
<fche> thanks dude
<agentzh> sure
<agentzh> fche: i wonder if it makes sense to cache target memory via fixed number of memory pages (through LRU) to speed up target memory read intensive stap scripts.
<agentzh> i did a simple experiment on my side and it achived 55% overall speedup for such a read-heavy scripts.
<agentzh> *achieved
<agentzh> my experiment was based on process_vm_readv + ptrace, it was 55% faster than the stap doing exactly the same thing against the same target process.
<agentzh> *the stap script
<fche> cache in what sense? we don't copy as it is
<fche> we don't swap either
<fche> what are you comparing exactly?
hpt has joined #systemtap
zzhm has joined #systemtap
zzhm has quit [Ping timeout: 256 seconds]
irker777 has quit [Quit: transmission timeout]
sscox has quit [Ping timeout: 252 seconds]
sscox has joined #systemtap
zzhm has joined #systemtap
hassan64 has joined #systemtap
<hassan64> Hi all. I have been struggling to get this error fixed over the weekend. But unable to do that. Some thing missing in my Kernel. Please see my github https://gist.github.com/hassan113/9509989fc58bae3264e5795bd86b8cdd
<hassan64> In another *.stp file compilation, I got different error. Please help me out in both case. https://gist.github.com/hassan113/6b7fe299092fc7025085720ec4d6ebf9
<agentzh> fche: maybe it's just all the checks and boilerplate code around user_long_error() or other things. it's just counterintuitive that an efficient non-copying implementation of stap is so much slower than my naive ptrace-based copying implementation for the same thing.
<hassan64> fche: So well, how to tweak it in kernel to avoid such error
<agentzh> hassan64: maybe recompile your kernel with -Og and/or
<agentzh> -fvar-tracking?
<agentzh> it looks like a dwarf issue.
<agentzh> some times we can take advantage of the ABI and access registers and stack locations directly, bypassing dwarf.
<agentzh> $var does not always work especially when optimization is enabled.
<hassan64> so you mean, optimization needs to be disabled
khaled has joined #systemtap
<agentzh> not necessarily.
<agentzh> that's just one way.
<agentzh> i mentioned 3 ways above ;)
<agentzh> your 2nd case looks familiar to me.
<agentzh> maybe you have some old installs of stap hanging around.
<agentzh> you should remove your old installations of stap completely.
<agentzh> but maybe it's something else.
<agentzh> btw, are you cross-compiling?
<hassan64> yes cross-compiling
<agentzh> this looks familiar to me since i do cross-compiling a lot myself.
<hassan64> I am using systemtap ver: 4.2/0.177
<hassan64> seems to be a latest version
<hassan64> agentzh : I am using latest version rather
<hassan64> I am using "sudo make uninstall" to remove all.
<hassan64> and install systemtap from source again. ver: 4.2 and elfutils: 0.177
<agentzh> okay
<hassan64> by using : ./configure --with-elfutils=$(pwd)/../elfutils-0.177
<hassan64> make && make install
<agentzh> will you share your /tmp/stap5sgSgs/strace_src.c file as well? you'll need to use -k option and rerun stap though.
<agentzh> if there's nothing sensitive in your stap script.
<agentzh> it looks like a stap bug for new aarch64 kernels, see also here: https://sourceware.org/legacy-ml/systemtap/2018-q4/msg00061.html I'm not sure though.
<agentzh> it would be best to hear from other people more familiar with aarch64.
<hassan64> Thanks for the article. yesterday i compile kernel 4.19.91. And no issue at all.
<hassan64> But i thought latest kernel versions have more features, so I recompiled the latest ver, but that issue re-surfaced
<hassan64> so what do you think to recompile with old version as I did before. ?
<hassan64> agentzh: Can you please look at https://gist.github.com/hassan113/2fcf37c6d5e46fbe5b5fcf4c944fc7e2 . It contains strace_src.c
<hassan64> Any suggestion, should I rebuild with old kernel version
<hassan64> agentzh: Did you see it :)
<hassan64> fche: I remember you said last week how to install systemtap 4.2. I got an error. You said, first install elfutils individual and then configure systemtap vi a./configure LDFLAGS .....
<hassan64> sorry I forgot the step. And I missed the logs in this channel
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
zzhm has quit [Ping timeout: 260 seconds]
zzhm has joined #systemtap
Amy2 has joined #systemtap
Amy1 has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
Amy2 has quit [Ping timeout: 264 seconds]
mjw has joined #systemtap
Amy2 has joined #systemtap
hpt has quit [Ping timeout: 272 seconds]
Amy2 has quit [Ping timeout: 265 seconds]
Amy2 has joined #systemtap
<fche> hassan64, see the README file for guidance on that
<hassan64> fche: I do not know why I am getting this error. This is a new error so far . https://gist.github.com/hassan113/2fcf37c6d5e46fbe5b5fcf4c944fc7e2
<fche> yeah something must have changed
<hassan64> I am doing all the kernel configuration, which I did for aarch machine. But something went wrong
<fche> try stap -gv -a arm -p4 -r /home/hassan/Desktop/sandbox_design/armv5/output/build/linux-4.19.91/ -B CROSS_COMPILE=/home/hassan/Desktop/sandbox_design/arm/output/host/bin/arm-linux- -vvvv -L 'kernel.trace("sys_enter")'
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
Amy2 has quit [Ping timeout: 264 seconds]
Amy2 has joined #systemtap
hassan64 has quit [Ping timeout: 245 seconds]
Amy2 has quit [Ping timeout: 256 seconds]
Amy2 has joined #systemtap
zzhm has quit [Ping timeout: 264 seconds]
gromero has quit [Ping timeout: 272 seconds]
hassan64 has joined #systemtap
gromero has joined #systemtap
wcohen has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #systemtap
zzhm has joined #systemtap
wcohen has joined #systemtap
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #systemtap
<hassan64> My compilation from *.stp -> *.ko fails
irker479 has joined #systemtap
<irker479> systemtap: fche systemtap.git:fche/uprobes-rework * release-4.2-103-g7d2fafc9d / buildrun.cxx translate.cxx: gcc compatibility: use gcc #pragma to suppress -Wtautological-compare
<irker479> systemtap: fche systemtap.git:fche/uprobes-rework * release-4.2-104-ge8ebc3ff9 / runtime/linux/uprobes-inode.c tapsets.cxx: TENTATIVE uprobes-inode: rework
<fche> serhei et al., would appreciate a glance at the work in that branch
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
Amy2 has quit [Ping timeout: 256 seconds]
Amy2 has joined #systemtap
sapatel has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
<irker479> systemtap: fche systemtap.git:fche/uprobes-rework * release-4.2-106-ga1bbefd79 / configure configure.ac: configury: adjust -lebl check to ebl_strtabinit
<irker479> systemtap: smakarov systemtap.git:fche/uprobes-rework * release-4.2-107-g1eaeb16df / buildrun.cxx runtime/linux/autoconf-kallsyms-on-each-symbol.c runtime/linux/kprobes.c runtime/linux/runtime.h runtime/sym.c runtime/sym.h runtime/transport/symbols.c runtime/transport/transport.c runtime/transport/transport.h runtime/transport/transport_msgs.h staprun/staprun.c translate.cxx: PR26074: pass kallsyms_lookup_name as a relocation to the
<irker479> systemtap: yichun systemtap.git:fche/uprobes-rework * release-4.2-108-g26b24dc2e / : Bug: tapset functions reading userland registers did not work in probe process.begin
<irker479> systemtap: yichun systemtap.git:fche/uprobes-rework * release-4.2-109-g046b06a9e / NEWS runtime/linux/task_finder.c runtime/linux/task_finder2.c testsuite/systemtap.base/process-begin-user.exp testsuite/systemtap.base/process-begin-user_4.stp: feature: vma-related primitives now work in process.begin.
<irker479> systemtap: smakarov systemtap.git:fche/uprobes-rework * release-4.2-112-g9d389223c / : Merge branch 'master' into fche/uprobes-rework
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
tromey has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
zzhm has quit [Quit: Leaving]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
hassan64 has quit [Remote host closed the connection]
<irker479> systemtap: fche systemtap.git:fche/uprobes-rework * release-4.2-113-ga8a6cd268 / runtime/linux/uprobes-inode.c: move buildid check prior to stapiu consumer_lock
<agentzh> fche: how about this patch? https://gist.github.com/agentzh/1e5204dab98e6b4b3f7ade53109c5fff i forgot one place for reordering the task finder callback calls.
<fche> sure
sapatel has quit [Ping timeout: 258 seconds]
sapatel has joined #systemtap
sapatel has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
sapatel has joined #systemtap
sapatel has quit [Ping timeout: 272 seconds]
sapatel has joined #systemtap
mjw has quit [Quit: Leaving]
<agentzh> fche: thanks, will commit.
Amy2 has quit [Ping timeout: 256 seconds]
Amy2 has joined #systemtap
<irker479> systemtap: yichun systemtap.git:master * release-4.2-110-g85bbcefbe / runtime/linux/task_finder2.c: Bug: __stp_tf_quiesce_worker(): vma mmap callback incorrecty ran after process.begin callback
tromey has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
khaled has quit [Quit: Konversation terminated!]
sapatel has quit [Remote host closed the connection]
orivej has joined #systemtap