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]

systemtap error on arm64 (open-embedded build)


Hi,

I am trying to run systemtap on arm64 kernel based on 3.14-rc3 with
kprobes patches.
[Systemtap recipe from: http://patches.openembedded.org/patch/66343/]

While running sample hello program, the systemtap is failing to
generate the source file and failing with errors -pasted- below.

Please let me know what could be going wrong here.

Thanks,
Sandeepa

--------------------- cut --------------------
root@genericarmv8:~# stap -m hello -e 'probe begin { printf("hello\n"); exit() }
'
make: Warning: File
'/lib/modules/3.14.0-rc3/build/arch/arm64/Makefile' has modification
time 287475 s in the future
make[1]: Warning: File 'scripts/Makefile.lib' has modification time
287476 s in the future

In file included from /usr/share/systemtap/runtime/linux/runtime.h:198:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapBdGnYA/hello_src.c:24:
/usr/share/systemtap/runtime/sym.c: In function '_stp_snprint_addr':
/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration
of function 'preempt_enable_no_resched'
[-Werror=implicit-function-declaration]
    preempt_enable_no_resched();
    ^
In file included from include/linux/sched.h:53:0,
                 from
/lib/modules/3.14.0-rc3/build/arch/arm64/include/asm/compat.h:25,
                 from
/lib/modules/3.14.0-rc3/build/arch/arm64/include/asm/stat.h:23,
                 from include/linux/stat.h:5,
                 from include/linux/module.h:10,
                 from /usr/share/systemtap/runtime/linux/runtime.h:14,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapBdGnYA/hello_src.c:24:
/usr/share/systemtap/runtime/transport/control.c: In function
'_stp_ctl_write_cmd':
include/linux/cred.h:333:25: error: incompatible types when
initializing type 'uid_t' using type 'kuid_t'
 #define current_euid()  (current_cred_xxx(euid))
                         ^
/usr/share/systemtap/runtime/transport/control.c:41:15: note: in
expansion of macro 'current_euid'
  uid_t euid = current_euid();
               ^
In file included from /usr/share/systemtap/runtime/linux/print.c:17:0,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapBdGnYA/hello_src.c:48:
/usr/share/systemtap/runtime/transport/transport.c: In function
'_stp_transport_init':
/usr/share/systemtap/runtime/transport/transport.c:344:11: error:
incompatible types when assigning to type 'uid_t' from type 'kuid_t'
  _stp_uid = current_uid();
           ^
/usr/share/systemtap/runtime/transport/transport.c:345:11: error:
incompatible types when assigning to type 'gid_t' from type 'kgid_t'
  _stp_gid = current_gid();
           ^
cc1: all warnings being treated as errors
scripts/Makefile.build:308: recipe for target
'/tmp/stapBdGnYA/hello_src.o' failed
make[1]: *** [/tmp/stapBdGnYA/hello_src.o] Error 1
Makefile:1272: recipe for target '_module_/tmp/stapBdGnYA' failed
make: *** [_module_/tmp/stapBdGnYA] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
--------------------- cut --------------------


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