[PATCH]: catering for attribute_group shifting from header to C file in the linux kernel
Peter Teoh
htmldeveloper@gmail.com
Sun May 18 14:39:00 GMT 2008
First I encountered the following when probing the following stap file:
probe kernel.function("*@mm/swapfile.c").call {
printf ("%s -> %s\n", thread_indent(1), probefunc())
print_backtrace();
printf("\n");
}
probe kernel.function("*@mm/swapfile.c").return {
printf ("%s <- %s\n", thread_indent(-1), probefunc())
printf("\n");
}
In file included from
/usr/local/share/systemtap/runtime/transport/transport.c:22,
from /usr/local/share/systemtap/runtime/print.c:17,
from /usr/local/share/systemtap/runtime/runtime.h:82,
from
/tmp/stapD0oUOK/stap_24573f70afadcc1e52bf6cb62ce0c1f1_12247.c:41:
/usr/local/share/systemtap/runtime/transport/symbols.c: In function
'_stp_load_module_symbols':
/usr/local/share/systemtap/runtime/transport/symbols.c:407: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:425: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:427: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:456: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:457: error:
dereferencing pointer to incomplete type
/usr/local/share/systemtap/runtime/transport/symbols.c:460: error:
dereferencing pointer to incomplete type
And then I applied the patch as per attached, and did a compilation of
the temporary stap module in my linux kernel tree, it was successful:
/mnt/hd0/download/linux-2.6-latest>make
/tmp/stapL1n2n6/stap_dcc3707b505ec80a8051fda8cee6633c_12247.ko
Reason was because attribute_group is now declared in a C file in the
linux kernel.
--
Regards,
Peter Teoh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbols.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20080518/97b041e5/attachment.bin>
More information about the Systemtap
mailing list