[wily][regression] systemtap script compilation broken by new kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Tim Gardner | ||
Wily |
Fix Released
|
Undecided
|
Tim Gardner | ||
Xenial |
Fix Released
|
Undecided
|
Tim Gardner | ||
systemtap (Fedora) |
Fix Released
|
Undecided
|
|||
systemtap (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned |
Bug Description
The following errors appear when compiling any systemtap script:
In file included from include/
include/
.raw_lock = __ARCH_
^
include/
{ { .rlock = __RAW_SPIN_
^
include/
(spinlock_t ) __SPIN_
^
include/
, .wait_lock = __SPIN_
^
include/
struct mutex mutexname = __MUTEX_
Upstream fix:
https:/
Related branches
description: | updated |
Changed in systemtap (Ubuntu): | |
importance: | Undecided → High |
summary: |
- [wily][regression] completely broken by new kernels + [wily][regression] systemtap script compilation broken by new kernels |
Changed in linux (Ubuntu Wily): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Wily): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-wily removed: verification-needed-wily |
Changed in systemtap (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
Changed in systemtap (Ubuntu Wily): | |
status: | Confirmed → Won't Fix |
tags: | added: cscc |
Description of problem:
I was trying to run the following simple probe:
ruben@wodan: ~$ sudo stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' 49484res/ 7192shr/ 42152data kb, in 190usr/ 70sys/250real ms. 183612res/ 8544shr/ 181604data kb, in 2170usr/ 1540sys/ 4358real ms. 3/stap_ a0ec17f995e8f89 d672d8c2eb7fe7c 24_1693_ src.c" using 376932virt/ 183860res/ 8792shr/ 181604data kb, in 10usr/390sys/ 417real ms. linux/mutex. h:15:0,
from /tmp/stapbdpxn3 /stap_a0ec17f99 5e8f89d672d8c2e b7fe7c24_ 1693_src. c:25: linux/spinlock_ types.h: 55:14: error: ‘__ARCH_ SPIN_LOCK_ UNLOCKED’ undeclared here (not in a function) SPIN_LOCK_ UNLOCKED, \ linux/spinlock_ types.h: 79:15: note: in expansion of macro ‘__RAW_ SPIN_LOCK_ INITIALIZER’ LOCK_INITIALIZE R(lockname) } } linux/spinlock_ types.h: 82:16: note: in expansion of macro ‘__SPIN_ LOCK_INITIALIZE R’ LOCK_INITIALIZE R(lockname) linux/mutex. h:111:18: note: in expansion of macro ‘__SPIN_ LOCK_UNLOCKED’ LOCK_UNLOCKED( lockname. wait_lock) \ linux/mutex. h:117:27: note: in expansion of macro ‘__MUTEX_ INITIALIZER’ INITIALIZER( mutexname)
^ /stap_a0ec17f99 5e8f89d672d8c2e b7fe7c24_ 1693_src. c:26:8: note: in expansion of macro ‘DEFINE_MUTEX’ MUTEX(module_ refresh_ mutex); Makefile. build:258: recipe for target '/tmp/stapbdpxn 3/stap_ a0ec17f995e8f89 d672d8c2eb7fe7c 24_1693_ src.o' failed 3/stap_ a0ec17f995e8f89 d672d8c2eb7fe7c 24_1693_ src.o] Error 1 /tmp/stapbdpxn3 ' failed /tmp/stapbdpxn3 ] Error 2 5e8f89d672d8c2e b7fe7c24_ 1693.ko" in 8650usr/ 5580sys/ 15546real ms.
Pass 1: parsed user script and 122 library script(s) using 237480virt/
Pass 2: analyzed script: 1 probe(s), 1 function(s), 4 embed(s), 0 global(s) using 376932virt/
Pass 3: translated to C into "/tmp/stapbdpxn
In file included from include/
include/
.raw_lock = __ARCH_
^
include/
{ { .rlock = __RAW_SPIN_
^
include/
(spinlock_t ) __SPIN_
^
include/
, .wait_lock = __SPIN_
^
include/
struct mutex mutexname = __MUTEX_
/tmp/stapbdpxn3
static DEFINE_
^
scripts/
make[1]: *** [/tmp/stapbdpxn
Makefile:1386: recipe for target '_module_
make: *** [_module_
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_a0ec17f99
Pass 4: compilation failed. [man error::pass4]
Version-Release number of selected component (if applicable): 2.8-1.fc23. x86_64 rc0.git4. 1.fc23. x86_64
systemtap-
ruben@wodan: ~$ uname -r
4.2.0-0.