Public bug reported:

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.

** Affects: systemtap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718537

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to