fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
khaled has quit [Quit: Konversation terminated!]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
hpt has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Read error: Connection reset by peer]
derek0883 has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 260 seconds]
derek0883 has joined #systemtap
irker714 has quit [Quit: transmission timeout]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
orivej has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
khaled has joined #systemtap
hpt has quit [Ping timeout: 264 seconds]
derek0883 has joined #systemtap
orivej has joined #systemtap
derek0883 has quit [Ping timeout: 264 seconds]
tromey has joined #systemtap
modem has quit [Ping timeout: 260 seconds]
amerey has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
modem has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
orivej has joined #systemtap
derek0883 has joined #systemtap
<agentzh> fche: yeah we have our own dsl-based test scaffold which even have a converter script to convert our tests to stap's tcl-based tests.
<fche> yeah, I remember a bit when you showed me dunno a year ago?
<agentzh> just in case fche says "will you add some tests to your commit?"
<agentzh> yeah, 2 years ago.
<agentzh> without that converter, i'd rather jump off the golden gate bridge :)
<fche> don't do it --- you missed being in the documentary about jumpers
<agentzh> lol
<fche> not that it's a joking matter I guess :|
<agentzh> well, writing a converter is way easier than jumping. so don't worry :))
<agentzh> besides, i need to get kerneltoast and cosmin to write a lot more stap patches before i die :)
<agentzh> oh btw, we're thinking about patching the kernel to lift the ebpf verifier limits so that we can run more complex bpf programs.
<agentzh> maybe through a red hat kpatch ko.
<agentzh> that should get us a long way.
<agentzh> if it went well.
<agentzh> *goes
<agentzh> have you guys ever considered that?
<fche> hm, too bad some of those limits are compiled in -- otherwise could lift them with a stap script modifying the @var()'s
<agentzh> hah, fche is indeed more evil :)
* agentzh never tries using stap to write anything in the target.
<agentzh> ebpf is beautiful in that one does not have to invoke the full kernel build system to compile a kernel module.
<agentzh> it helps speeding up stap script development.
<agentzh> it's human time we're saving.
<agentzh> the iteration cycles can be very short.
<agentzh> even on moderate hardware.
<fche> hm, small scripts can take only a second or two to compile even with the normal backend
<fche> it all depends
<agentzh> so i'm all for lifting any ebpf restrictions.
<agentzh> sadly we're writing huge stap scripts.
<agentzh> small scripts are only for demonstrating stap bugs for us usually :)
<agentzh> fche: a stap hello world oneliner takes 3.29s in total on my fastest machine (core i9-9900k) while the bpf runtime of stap takes only 0.164s: https://gist.github.com/agentzh/1b2cb8be32426d101addc7ef489e7bcf
<agentzh> BIG difference.
<agentzh> consider that if i have hundreds if not thousands of such short stap scripts to regress in a test suite.
<agentzh> the kernel runtime is a must-have for older kernels since ebpf is still very young.
<agentzh> and we can also compare the same stap scripts against 2 runtimes just in case there a bug in one of the runtimes.
<agentzh> *there is
<agentzh> it's always good to have an alternative implementation.
<agentzh> (to compare things)
<agentzh> serhei: i have a concern that stap's bpf emiter may not generate bpf code as good as llvm's due to the lack of sophisticated optimizations. or am i wrong about this?
<agentzh> currently the kernel module C code emitted by stap's translator is not easier for gcc to optiimze due to the exessive use of struct field pointers allocated out of the stack or registers.
<agentzh> *not easy
<agentzh> and we definitely hope the in-kernel code can always run at extreme speed.
<agentzh> since a probe lock is held anyway.
<agentzh> and it may also run in an interrupt handler.
<fche> you know about the lock pushdown machinery, right? it makes holding those locks as brief as possible
<fche> anyway see stap -t for benchmarking the normal runtime versino
<agentzh> even when accessing a global?
<fche> yes
<agentzh> that's cool.
<fche> well, compare stap 4.3 and 4.4 (or git/master) to where/when the lock/unlock stuff is done, for different stap scripts
<agentzh> yeah, will give it a shot. thanks
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
<irker525> systemtap: smakarov systemtap.git:master * release-4.4-39-gdaaa9497e / bpf-base.cxx bpf-internal.h bpf-opt.cxx bpf-translate.cxx: stapbpf (for PR27030) tentative regalloc fix: zero unused regs
irker525 has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
tromey has quit [Quit: ERC (IRC client for Emacs 27.1)]
wcohen has quit [Remote host closed the connection]
wcohen has joined #systemtap
amerey has quit [Quit: Leaving]