Bug 1132825 - systemtap can not work with v5.0 kernel
systemtap can not work with v5.0 kernel
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Tony Jones
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2019-04-18 04:22 UTC by Joey Lee
Modified: 2019-08-15 21:42 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Joey Lee 2019-04-18 04:22:36 UTC
On openSUSE TW, the systemtap-3.3 can not work with v5.0 kernel. It shows "header not found" error when running hello world:

linux-rxs6:/home/linux # stap -e 'probe begin { printf ("Hello\n"); exit (); }'
cc1: fatal error: /tmp/stapNgAaYk/stapconf_e07ba0fb1b7ebf9c1caf992863a11944_697.h: 沒有此一檔案或目錄
compilation terminated.
make[3]: *** [/usr/src/linux-5.0.7-1/scripts/Makefile.build:278: /tmp/stapNgAaYk/stap_403f6c77ce96ad4e3c2abe58a53e46ab_932_src.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: fatal error: /tmp/stapNgAaYk/stapconf_e07ba0fb1b7ebf9c1caf992863a11944_697.h: 沒有此一檔案或目錄
compilation terminated.
make[3]: *** [/usr/src/linux-5.0.7-1/scripts/Makefile.build:278: /tmp/stapNgAaYk/stap_403f6c77ce96ad4e3c2abe58a53e46ab_932_aux_0.o] Error 1
make[2]: *** [/usr/src/linux-5.0.7-1/Makefile:1591: _module_/tmp/stapNgAaYk] Error 2
make[1]: *** [Makefile:171: sub-make] Error 2
make: *** [Makefile:15: __sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
Comment 2 Joey Lee 2019-04-18 09:01:46 UTC
I have tested system-3.3 with 4.12.14-lp151.24-default openSUSE Leap 15.1 kernel. This issue can not be reproduced.
Comment 3 Jiri Slaby 2019-04-30 07:16:39 UTC
Systemtap should perhaps switch to a git snapshot the same as fedora. The support for later kernels was added after the stap 4.0 release. At least this is needed:

Assigning to the systemtap bugowner.
Comment 4 Tony Jones 2019-08-15 21:42:02 UTC
Updated to v4.1

# echo ; uname -r ; rpm -q openSUSE-release ; echo ; stap -V ; echo ; stap -e 'probe begin { printf ("Hello\n"); exit (); }'


Systemtap translator/driver (version 4.1/0.176, non-git sources)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.1-rc2
enabled features: AVAHI BPF LIBSQLITE3 NLS NSS