Hi. On Sat, Dec 23, 2017 at 04:09:56PM -0500, Farhan Khan wrote: > Hi all, > > SystemTap on Debian is version 2.9/0.165.
Not unless you're running pre-stretch testing. stretch's current is 3.1. >The current version is 3.2. Maybe. > SystemTap works by compiling a custom kernel module against the source and > installing it. If you want to do it the hard way - sure. Installing linux-image-$(uname -r)-dbg and linux-headers-$(uname -r) is sufficient for us mere mortals. > However, the kernel structure has since updated and > Systemtap 2.9 will not compile against newer kernels. As a result, > SystemTap DOES NOT WORK. It does for me: # stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' Pass 1: parsed user script and 465 library scripts using 113916virt/46508res/6236shr/40564data kb, in 170usr/30sys/330real ms. Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 272244virt/206636res/7848shr/198892data kb, in 1790usr/350sy s/5811real ms. Pass 3: translated to C into "/tmp/stapT5s2PF/stap_de69e8c4da8ac792e5b3974a3cb63db7_2549_src.c" using 272244virt/206832res/8044shr/1 98892data kb, in 0usr/0sys/4real ms. Pass 4: compiled C into "stap_de69e8c4da8ac792e5b3974a3cb63db7_2549.ko" in 9050usr/480sys/11001real ms. Pass 5: starting run. read performed Pass 5: run completed in 0usr/20sys/367real ms. # uname -a Linux stretch 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux > This can only be resolved except by updating to a > newer version of systemtap. 'apt-get update && apt-get upgrade' solves this for me usually. Consider trying it. Reco