Systemtap doesn't work on xenial, due to changes in struct module in the kernel:
ubuntu@xenial:~$ sudo stap test.stap
In file included from /usr/share/systemtap/runtime/print.c:17:0, from /usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapxvNfgC/stap_2e27f5927a5796b18cb7b3c2abd24ec4_812_src.c:50:
/usr/share/systemtap/runtime/linux/print.c: In function ‘_stp_print_kernel_info’:
/usr/share/systemtap/runtime/linux/print.c:242:20: error: ‘struct module’ has no member named ‘module_core’ THIS_MODULE->module_core, ^
/usr/share/systemtap/runtime/linux/print.c:243:37: error: ‘struct module’ has no member named ‘core_size’
(unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, ^
/usr/share/systemtap/runtime/linux/print.c:243:62: error: ‘struct module’ has no member named ‘core_text_size’
(unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, ^
/usr/share/systemtap/runtime/linux/print.c:244:44: error: ‘struct module’ has no member named ‘core_text_size’ (unsigned long) (THIS_MODULE->core_text_size)/1024, ^
scripts/Makefile.build:258: recipe for target '/tmp/stapxvNfgC/stap_2e27f5927a5796b18cb7b3c2abd24ec4_812_src.o' failed
make[1]: *** [/tmp/stapxvNfgC/stap_2e27f5927a5796b18cb7b3c2abd24ec4_812_src.o] Error 1
Makefile:1396: recipe for target '_module_/tmp/stapxvNfgC' failed
make: *** [_module_/tmp/stapxvNfgC] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
Systemtap doesn't work on xenial, due to changes in struct module in the kernel:
ubuntu@xenial:~$ sudo stap test.stap systemtap/ runtime/ print.c: 17:0,
from /usr/share/ systemtap/ runtime/ runtime_ context. h:22,
from /tmp/stapxvNfgC /stap_2e27f5927 a5796b18cb7b3c2 abd24ec4_ 812_src. c:50: systemtap/ runtime/ linux/print. c: In function ‘_stp_print_ kernel_ info’: systemtap/ runtime/ linux/print. c:242:20: error: ‘struct module’ has no member named ‘module_core’
THIS_ MODULE- >module_ core,
^ systemtap/ runtime/ linux/print. c:243:37: error: ‘struct module’ has no member named ‘core_size’ >core_size - THIS_MODULE- >core_text_ size)/1024,
^ systemtap/ runtime/ linux/print. c:243:62: error: ‘struct module’ has no member named ‘core_text_size’ >core_size - THIS_MODULE- >core_text_ size)/1024,
^ systemtap/ runtime/ linux/print. c:244:44: error: ‘struct module’ has no member named ‘core_text_size’
(unsigned long) (THIS_MODULE- >core_text_ size)/1024,
^ Makefile. build:258: recipe for target '/tmp/stapxvNfg C/stap_ 2e27f5927a5796b 18cb7b3c2abd24e c4_812_ src.o' failed C/stap_ 2e27f5927a5796b 18cb7b3c2abd24e c4_812_ src.o] Error 1 /tmp/stapxvNfgC ' failed /tmp/stapxvNfgC ] Error 2 doc/systemtap/ README. Debian should help you get started.
In file included from /usr/share/
/usr/share/
/usr/share/
/usr/share/
(unsigned long) (THIS_MODULE-
/usr/share/
(unsigned long) (THIS_MODULE-
/usr/share/
scripts/
make[1]: *** [/tmp/stapxvNfg
Makefile:1396: recipe for target '_module_
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/