[PATCH] struct linux_binprm Not Declared for ARM

Torsten Polle Torsten.Polle@gmx.de
Thu Jul 26 19:02:00 GMT 2012


Hi,

in my attempt to get inode-uprobes based user space to work with an
3.4/3.5 kernel, I couln't compile my script due to the following compile
error

cc1: warnings being treated as errors
In file included from /usr/local/systemtap/share/systemtap/runtime/stp_utrace.c:20:0,
                 from /usr/local/systemtap/share/systemtap/runtime/linux/task_finder2.c:4,
                 from /usr/local/systemtap/share/systemtap/runtime/linux/task_finder.c:17,
                 from /usr/local/systemtap/share/systemtap/runtime/linux/runtime.h:166,
                 from /usr/local/systemtap/share/systemtap/runtime/runtime.h:17,
                 from /home/polle/work/issues/2012-07-24-systemtap-3.4/tmp/log_src.c:21:
/usr/local/systemtap/share/systemtap/runtime/stp_utrace.h:259:14: error: ‘struct linux_binprm’ declared inside parameter list
/usr/local/systemtap/share/systemtap/runtime/stp_utrace.h:259:14: error: its scope is only this definition or declaration, which is probably not what you want

The attached patch inserts the needed include directive.

Kind Regards,
Torsten

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-include-path-to-be-able-to-compile-for-ARM.patch
Type: text/x-patch
Size: 955 bytes
Desc: 0001-Added-include-path-to-be-able-to-compile-for-ARM.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20120726/a5f0523e/attachment.bin>


More information about the Systemtap mailing list