I'm trying to install systemtap on ubuntu 20.04, but I always get this when I run the script
Checking "/lib/modules/5.4.0-88-generic/build/.config" failed with error: No such file or directory
I tried to install via apt-get install and as shown in this article https://askubuntu.com/questions/1173904/is-systemtap-broken-on-5-0-0-kernel
I installed linux headers, but it didn't work
P.S I have also tried these options: https://askubuntu.com/questions/554624/how-to-resolve-the-lib-modules-3-13-0-27-generic-build-no-such-file-or-direct unsuccessfully for me
Okay, that solved the problem
cp /proc/kallsyms /boot/System.map-`uname -r`
But...
stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
WARNING: cannot find module kernel debuginfo: No DWARF information found [man warning::debuginfo]
semantic error: resolution failed in DWARF builder
semantic error: resolution failed in DWARF builder
semantic error: while resolving probe point: identifier 'kernel' at /usr/share/systemtap/tapset/linux/vfs.stp:976:18
source: probe vfs.read = kernel.function("vfs_read")
^
semantic error: no match
semantic error: resolution failed in alias expansion builder