Red Hat Bugzilla – Bug 467279
simple systemtap script failing to compile
Last modified: 2014-06-18 03:38:14 EDT
I'm looking at an upstream problem, and wrote a simple systemtap script to do a probe on module_put():
...it fails to compile with something that looks like an internal systemtap problem.
In file included from /usr/share/systemtap/runtime/transport/transport.c:20,
/usr/share/systemtap/runtime/time.c: In function '_stp_init_time':
/usr/share/systemtap/runtime/time.c:240: error: too many arguments to function 'on_each_cpu'
make: *** [/tmp/stapUEZQ00/stap_67a9a6be0a4462f6441f740715946de0_479.o] Error 1
Some relevant info:
# rpm -qa systemtap\*
# rpm -qa kernel\* | grep 27-13
...full output from stap -vvv module_put.stap is attached.
It has been reported that this bug is fixed in git systemtap
(via a runtime autoconf test); we just need to spin an update
Setting sev/pri to high for purely selfish reasons :)
Upstream fix is:
Author: Josh Stone <email@example.com>
Date: Thu Jul 24 12:40:45 2008 -0700
Fix on_each_cpu() call for kernels >2.6.26.
This is a generalization of the patch from James Bottomley:
The on_each_cpu() change was merged *after* the 2.6.26 release, so I'm
using an autoconf test instead of James' version check.
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
The patch from comment #3 was incorporated in a newer version of the systemtap package for Fedora.