[Bug 1545173] Re: systemtap does not work on trusty lts-vivid kernel
Dan Streetman
dan.streetman at canonical.com
Fri Feb 12 21:38:38 UTC 2016
In sequential order, with more detail:
==> 0001-Fixed-compile-problem-on-3.18-kernels-caused-by-remo.patch <==
>From 547f6291433b574186e82f4afe233b00b7eb242e Mon Sep 17 00:00:00 2001
From: David Smith <dsmith at redhat.com>
Date: Tue, 6 Jan 2015 10:07:01 -0600
Subject: [PATCH] Fixed compile problem on 3.18 kernels, caused by removal of
==> 0002-runtime-linux-3.14-porting-preempt_enable_no_resched.patch <==
>From 651a87924c22fffa0109694851ff013b1da4f50e Mon Sep 17 00:00:00 2001
From: "Frank Ch. Eigler" <fche at redhat.com>
Date: Fri, 7 Feb 2014 22:07:46 -0500
Subject: [PATCH 3/3] runtime: linux 3.14 porting: preempt_enable_no_resched
==> 0003-runtime-improve-the-preempt_enable_no_resched-copy.patch <==
>From f1676ba1a5f60281fe64f96fbef37d484da6204c Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone at redhat.com>
Date: Fri, 28 Mar 2014 13:53:15 -0700
Subject: [PATCH 4/4] runtime: improve the preempt_enable_no_resched copy
==> 0004-CONFIG_UIDGID_STRICT_TYPE_CHECKS-workaround-cont-d.patch <==
>From 22a78a3e79331f83932372f576eb8338543abb0f Mon Sep 17 00:00:00 2001
From: "Frank Ch. Eigler" <fche at redhat.com>
Date: Tue, 5 Nov 2013 16:07:54 -0500
Subject: [PATCH 5/5] CONFIG_UIDGID_STRICT_TYPE_CHECKS workaround, cont'd
==> 0005-runtime-linux-3.14-porting-userns-Remove-UIDGID_STRI.patch <==
>From c91d2e7cc991068fd701d75a4814db87913d57bd Mon Sep 17 00:00:00 2001
From: "Frank Ch. Eigler" <fche at redhat.com>
Date: Fri, 7 Feb 2014 21:50:59 -0500
Subject: [PATCH 5/5] runtime: linux 3.14 porting: userns: Remove
==> 0006-runtime-linux-3.14-porting-case-when-CONFIG_USER_NS-.patch <==
>From 4f570bf5df317f3d5275b8e8a0cb5de8c2232f25 Mon Sep 17 00:00:00 2001
From: Victor Kamensky <victor.kamensky at linaro.org>
Date: Mon, 7 Apr 2014 22:23:39 -0700
Subject: [PATCH 5/5] runtime: linux 3.14 porting: case when CONFIG_USER_NS not
ddstreet at toughbook:~$
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemtap in Ubuntu.
https://bugs.launchpad.net/bugs/1545173
Title:
systemtap does not work on trusty lts-vivid kernel
Status in systemtap package in Ubuntu:
New
Bug description:
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_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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1545173/+subscriptions
More information about the foundations-bugs
mailing list