Skip to content

Instantly share code, notes, and snippets.

@sleetdrop
Created March 29, 2016 12:53
Show Gist options
  • Save sleetdrop/91abba050c67227e1383 to your computer and use it in GitHub Desktop.
Save sleetdrop/91abba050c67227e1383 to your computer and use it in GitHub Desktop.
Systemtap doesn't work on openSUSE Leap 42.1
$ stap hello-world.stp
In file included from /usr/share/systemtap/runtime/linux/task_finder.c:17:0,
from /usr/share/systemtap/runtime/linux/runtime.h:206,
from /usr/share/systemtap/runtime/runtime.h:24,
from /tmp/stap1gVtFg/stap_52253a0e90ec6a4596e231333a862028_891_src.c:24:
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_call_mmap_callbacks_with_addr’:
/usr/share/systemtap/runtime/linux/task_finder2.c:695:24: error: ‘struct file’ has no member named ‘f_dentry’
dentry = vma->vm_file->f_dentry;
^
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_call_mmap_callbacks_for_task’:
/usr/share/systemtap/runtime/linux/task_finder2.c:1198:42: error: ‘struct file’ has no member named ‘f_dentry’
vma_cache_p->dentry = vma->vm_file->f_dentry;
^
/usr/src/linux-4.1.15-8/scripts/Makefile.build:274: recipe for target '/tmp/stap1gVtFg/stap_52253a0e90ec6a4596e231333a862028_891_src.o' failed
make[3]: *** [/tmp/stap1gVtFg/stap_52253a0e90ec6a4596e231333a862028_891_src.o] Error 1
/usr/src/linux-4.1.15-8/Makefile:1410: recipe for target '_module_/tmp/stap1gVtFg' failed
make[2]: *** [_module_/tmp/stap1gVtFg] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment