[Bug 1547644] Re: systemtap does not work on wily kernel, hrtimer_get_res
Dan Streetman
dan.streetman at canonical.com
Wed Mar 16 16:36:34 UTC 2016
** Description changed:
- systemtap fails with:
+ [Impact]
+
+ Attempting to use systemtap with any timer on wily fails with:
In file included from /usr/share/systemtap/runtime/timer.c:17:0,
- from /tmp/stapNgYUlz/stap_d73751f21cb6a8e35c1e92f712612cc2_4574_src.c:869:
+ from /tmp/stapNgYUlz/stap_d73751f21cb6a8e35c1e92f712612cc2_4574_src.c:869:
/usr/share/systemtap/runtime/linux/timer.c: In function ‘_stp_hrtimer_init’:
/usr/share/systemtap/runtime/linux/timer.c:19:2: error: implicit declaration of function ‘hrtimer_get_res’ [-Werror=implicit-function-declaration]
- hrtimer_get_res (CLOCK_MONOTONIC, &res);
- ^
+ hrtimer_get_res (CLOCK_MONOTONIC, &res);
+ ^
- this requires systemtap commit 86f726b7785a035a2d6bc9ec2642c46621587d23
+ [Test Case]
+
+ on a wily system that's running the wily kernel, with the kernel dbgsym
+ installed, simply create a dummy stap script that uses a timer and try
+ to run it, e.g.:
+
+ $ cat test.stap
+ #!/usr/bin/stap
+
+ probe timer.sec(1) {
+ println("tick")
+ }
+ $ sudo stap test.stap
+
+ the above compilation failure will happen.
+
+ [Regression Potential]
+
+ As the commit only changes the way systemtap uses the kernel timer
+ function, and it already fails now, there is no regression potential.
+
+ [Other Info]
+
+ this requires upstream systemtap commit
+ 86f726b7785a035a2d6bc9ec2642c46621587d23
--
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/1547644
Title:
systemtap does not work on wily kernel, hrtimer_get_res
Status in systemtap package in Ubuntu:
Fix Released
Status in systemtap source package in Wily:
In Progress
Bug description:
[Impact]
Attempting to use systemtap with any timer on wily fails with:
In file included from /usr/share/systemtap/runtime/timer.c:17:0,
from /tmp/stapNgYUlz/stap_d73751f21cb6a8e35c1e92f712612cc2_4574_src.c:869:
/usr/share/systemtap/runtime/linux/timer.c: In function ‘_stp_hrtimer_init’:
/usr/share/systemtap/runtime/linux/timer.c:19:2: error: implicit declaration of function ‘hrtimer_get_res’ [-Werror=implicit-function-declaration]
hrtimer_get_res (CLOCK_MONOTONIC, &res);
^
[Test Case]
on a wily system that's running the wily kernel, with the kernel
dbgsym installed, simply create a dummy stap script that uses a timer
and try to run it, e.g.:
$ cat test.stap
#!/usr/bin/stap
probe timer.sec(1) {
println("tick")
}
$ sudo stap test.stap
the above compilation failure will happen.
[Regression Potential]
As the commit only changes the way systemtap uses the kernel timer
function, and it already fails now, there is no regression potential.
[Other Info]
this requires upstream systemtap commit
86f726b7785a035a2d6bc9ec2642c46621587d23
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1547644/+subscriptions
More information about the foundations-bugs
mailing list