This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Latest systemtap fails when used with latest Linux kernel


By the way, I've got below error on the latest -mm kernel(mmotm)
---
In file included from /usr/share/systemtap/runtime/transport/transport.c:22,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime.h:84,
                 from /tmp/stapzZKUDf/stap_218dc83d664bf6a2b8f8f5c280eaff7f_176.c:41:
/usr/share/systemtap/runtime/transport/symbols.c:124:33: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:130:28: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:137:33: error: macro "swap" passed 3 arguments, but takes just 2
make[3]: *** [/tmp/stapzZKUDf/stap_218dc83d664bf6a2b8f8f5c280eaff7f_176.o] Error 1
make[2]: *** [_module_/tmp/stapzZKUDf] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
---

In runtime/transport/symbols.c, a function use a 'swap' function pointer,
however, below patch defined generic 'swap' macro in include/linux/kernel.h.

http://git.zen-sources.org/?p=mmotm.git;a=commit;h=ad1dae50a96703a7443df6335a27ec6112c194c8

So, I think we'd better change the variable name in advance. :-)

Thank you,

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]