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

Louis Bouchard louis.bouchard at canonical.com
Wed Nov 9 12:18:54 UTC 2016


** Tags removed: sts-sru

-- 
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