[Bug 1547644] Re: systemtap does not work on wily kernel, hrtimer_get_res

Launchpad Bug Tracker 1547644 at bugs.launchpad.net
Wed Mar 30 14:44:01 UTC 2016


This bug was fixed in the package systemtap - 2.8-2ubuntu1.1

---------------
systemtap (2.8-2ubuntu1.1) wily; urgency=medium

  * debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch:
    - Build for wily kernel. LP: #1547644

 -- Dan Streetman <dan.streetman at canonical.com>  Fri, 18 Mar 2016
16:58:14 +0100

** Changed in: systemtap (Ubuntu Wily)
       Status: Fix Committed => Fix Released

-- 
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:
  Fix Released

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