In file included from /usr/share/systemtap/runtime/linux/task_finder.c:17:0, from /usr/share/systemtap/runtime/linux/runtime.h:188, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapcEoS7h/stap_f4621118dc34d17850373d218d3dab98_4225_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:703: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_utrace_attach_match_filename’:
/usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
tsk_euid = task_euid(tsk);
^
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_call_mmap_callbacks_for_task’:
/usr/share/systemtap/runtime/linux/task_finder2.c:1206:42: error: ‘struct file’ has no member named ‘f_dentry’ vma_cache_p->dentry = vma->vm_file->f_dentry; ^
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘stap_start_task_finder’:
/usr/share/systemtap/runtime/linux/task_finder2.c:1711:12: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
tsk_euid = task_euid(tsk);
^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:194:0, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapcEoS7h/stap_f4621118dc34d17850373d218d3dab98_4225_src.c:24:
/usr/share/systemtap/runtime/sym.c: In function ‘_stp_snprint_addr’:
/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration of function ‘preempt_enable_no_resched’ [-Werror=implicit-function-declaration]
preempt_enable_no_resched();
^
In file included from include/linux/sched.h:56:0, from include/linux/ptrace.h:5, from include/linux/ftrace.h:13, from include/linux/kprobes.h:42, from /usr/share/systemtap/runtime/linux/runtime.h:21, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapcEoS7h/stap_f4621118dc34d17850373d218d3dab98_4225_src.c:24:
/usr/share/systemtap/runtime/transport/control.c: In function ‘_stp_ctl_write_cmd’:
include/linux/cred.h:343:25: error: incompatible types when initializing type ‘uid_t’ using type ‘kuid_t’
#define current_euid() (current_cred_xxx(euid)) ^
/usr/share/systemtap/runtime/transport/control.c:41:15: note: in expansion of macro ‘current_euid’
uid_t euid = current_euid();
^
In file included from /usr/share/systemtap/runtime/linux/print.c:17:0, from /usr/share/systemtap/runtime/print.c:17, from /usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapcEoS7h/stap_f4621118dc34d17850373d218d3dab98_4225_src.c:67:
/usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_transport_init’:
/usr/share/systemtap/runtime/transport/transport.c:344:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’
_stp_uid = current_uid();
^
/usr/share/systemtap/runtime/transport/transport.c:345:11: error: incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’
_stp_gid = current_gid();
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapcEoS7h/stap_f4621118dc34d17850373d218d3dab98_4225_src.o] Error 1
make: *** [_module_/tmp/stapcEoS7h] 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.
several upstream patches are required to get systemtap working with the lts kernel.
Attempting to use systemtap results in:
In file included from /usr/share/ systemtap/ runtime/ linux/task_ finder. c:17:0,
from /usr/share/ systemtap/ runtime/ linux/runtime. h:188,
from /usr/share/ systemtap/ runtime/ runtime. h:24,
from /tmp/stapcEoS7h /stap_f4621118d c34d17850373d21 8d3dab98_ 4225_src. c:24: systemtap/ runtime/ linux/task_ finder2. c: In function ‘__stp_ call_mmap_ callbacks_ with_addr’ : systemtap/ runtime/ linux/task_ finder2. c:703:24: error: ‘struct file’ has no member named ‘f_dentry’ file->f_ dentry;
^ systemtap/ runtime/ linux/task_ finder2. c: In function ‘__stp_ utrace_ attach_ match_filename’ : systemtap/ runtime/ linux/task_ finder2. c:821:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’ systemtap/ runtime/ linux/task_ finder2. c: In function ‘__stp_ call_mmap_ callbacks_ for_task’ : systemtap/ runtime/ linux/task_ finder2. c:1206: 42: error: ‘struct file’ has no member named ‘f_dentry’
vma_cache_ p->dentry = vma->vm_ file->f_ dentry;
^ systemtap/ runtime/ linux/task_ finder2. c: In function ‘stap_start_ task_finder’ : systemtap/ runtime/ linux/task_ finder2. c:1711: 12: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’ systemtap/ runtime/ linux/runtime. h:194:0,
from /usr/share/ systemtap/ runtime/ runtime. h:24,
from /tmp/stapcEoS7h /stap_f4621118d c34d17850373d21 8d3dab98_ 4225_src. c:24: systemtap/ runtime/ sym.c: In function ‘_stp_snprint_ addr’: systemtap/ runtime/ sym.c:567: 4: error: implicit declaration of function ‘preempt_ enable_ no_resched’ [-Werror= implicit- function- declaration] enable_ no_resched( ); linux/sched. h:56:0,
from include/ linux/ptrace. h:5,
from include/ linux/ftrace. h:13,
from include/ linux/kprobes. h:42,
from /usr/share/ systemtap/ runtime/ linux/runtime. h:21,
from /usr/share/ systemtap/ runtime/ runtime. h:24,
from /tmp/stapcEoS7h /stap_f4621118d c34d17850373d21 8d3dab98_ 4225_src. c:24: systemtap/ runtime/ transport/ control. c: In function ‘_stp_ctl_ write_cmd’ : linux/cred. h:343:25: error: incompatible types when initializing type ‘uid_t’ using type ‘kuid_t’ cred_xxx( euid))
^ systemtap/ runtime/ transport/ control. c:41:15: note: in expansion of macro ‘current_euid’ systemtap/ runtime/ linux/print. c:17:0,
from /usr/share/ systemtap/ runtime/ print.c: 17,
from /usr/share/ systemtap/ runtime/ runtime_ context. h:22,
from /tmp/stapcEoS7h /stap_f4621118d c34d17850373d21 8d3dab98_ 4225_src. c:67: systemtap/ runtime/ transport/ transport. c: In function ‘_stp_transport _init’: systemtap/ runtime/ transport/ transport. c:344:11: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’ systemtap/ runtime/ transport/ transport. c:345:11: error: incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’ h/stap_ f4621118dc34d17 850373d218d3dab 98_4225_ src.o] Error 1 /tmp/stapcEoS7h ] Error 2 doc/systemtap/ README. Debian should help you get started.
/usr/share/
/usr/share/
dentry = vma->vm_
/usr/share/
/usr/share/
tsk_euid = task_euid(tsk);
^
/usr/share/
/usr/share/
/usr/share/
/usr/share/
tsk_euid = task_euid(tsk);
^
In file included from /usr/share/
/usr/share/
/usr/share/
preempt_
^
In file included from include/
/usr/share/
include/
#define current_euid() (current_
/usr/share/
uid_t euid = current_euid();
^
In file included from /usr/share/
/usr/share/
/usr/share/
_stp_uid = current_uid();
^
/usr/share/
_stp_gid = current_gid();
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapcEoS7
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/
several upstream patches are required to get systemtap working with the lts kernel.