Systemtap regression on Linux 5.2.0-rc4+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemtap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
System tap breaks when I run the following script in Linux 5.2.0-rc4+. It does not break on stable kernels like 4.4.0-148-generic.
Script:
file.stp:
global stats
probe kernel.
order = @entry($sc->order)
time = cpu_clock_ns(cpu()) - @entry(
stats[
}
probe kernel.
order = @entry($order)
time = cpu_clock_ns(cpu()) - @entry(
stats[
}
probe end {
foreach(
}
}
Command to execute: sudo stap -v file.stp
Output:
Pass 1: parsed user script and 481 library scripts using 252924virt/
Pass 2: analyzed script: 5 probes, 6 functions, 4 embeds, 9 globals using 466196virt/
Pass 3: translated to C into "/tmp/staphdai7
In file included from <command-line>:0:0:
././include/
#endif /* __LINUX_
^
In file included from <command-line>:0:0:
././include/
#endif /* __LINUX_
^
compilation terminated.
compilation terminated.
make[2]: *** [/tmp/staphdai7
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/tmp/staphdai7
make[1]: *** [_module_
make: *** [sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_9a6fd3c9a
Pass 4: compilation failed. [man error::pass4]
Changed in systemtap (Ubuntu): | |
status: | Fix Committed → Fix Released |
systemtap 4.1 compensates for the kbuild changes made in linux 5.0-ish that caused the breakage you are noticing.