[Bug 1718537] Re: systemtap is out of date - does not work anymore

Dan Streetman dan.streetman at canonical.com
Thu Oct 12 14:01:43 UTC 2017


*** This bug is a duplicate of bug 1683876 ***
    https://bugs.launchpad.net/bugs/1683876

I believe this is a duplicate of bug 1683876; I'll mark as such, if
anyone disagrees please un-duplicate this.

** This bug has been marked a duplicate of bug 1683876
   systemtap doesn't work with HWE kernels

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

Title:
  systemtap is out of date - does not work anymore

Status in systemtap package in Ubuntu:
  Confirmed

Bug description:
  Systemtap will not run even basic scripts. I figured out why, it is
  because Ubuntu's systemtap is heavily out of date.

  When I try this simple script:

  ---------------------------------------
  #! /usr/bin/env stap
  probe oneshot { println("hello world") }
  ---------------------------------------

  It produces errors like this:

  ---------------------------------------
  In file included from /usr/share/systemtap/runtime/linux/runtime.h:204:0,
                   from /usr/share/systemtap/runtime/runtime.h:24,
                   from /tmp/stapU8dHoL/stap_51a003b6f4617d04704c8d0c0008dd2c_967_src.c:25:
  /usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’:
  /usr/share/systemtap/runtime/linux/access_process_vm.h:35:29: error: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Werror=int-conversion]
         ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
  ---------------------------------------

  Systemtap is attempting to compile generated C code against the kernel
  headers. The function get_user_pages() as changed since systemtap
  worked on Ubuntu. It is using the following prototype for
  get_user_pages:

  long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
  		    unsigned long start, unsigned long nr_pages,
  		    int write, int force, struct page **pages,
  		    struct vm_area_struct **vmas);

  For my kernel (4.10.0-35-generic), this is the function prototype:

  long get_user_pages(unsigned long start, unsigned long nr_pages,
  			    unsigned int gup_flags, struct page **pages,
  			    struct vm_area_struct **vmas);

  This results in even simple systemtap scripts failing to compile. The
  solution is to update the systemtap package for Ubuntu.

  I am on Ubuntu 16.04, using the 4.10.0-35-generic kernel.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1718537/+subscriptions



More information about the foundations-bugs mailing list