public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* systemtap error on arm64 (open-embedded build)
@ 2014-03-17 14:43 Sandeepa Prabhu
  2014-03-17 14:59 ` Frank Ch. Eigler
  0 siblings, 1 reply; 3+ messages in thread
From: Sandeepa Prabhu @ 2014-03-17 14:43 UTC (permalink / raw)
  To: systemtap; +Cc: William Cohen, fche, Deepak Saxena, sandeepa.prabhu

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 --------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: systemtap error on arm64 (open-embedded build)
  2014-03-17 14:43 systemtap error on arm64 (open-embedded build) Sandeepa Prabhu
@ 2014-03-17 14:59 ` Frank Ch. Eigler
  2014-03-20  4:57   ` Sandeepa Prabhu
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Ch. Eigler @ 2014-03-17 14:59 UTC (permalink / raw)
  To: Sandeepa Prabhu
  Cc: systemtap, William Cohen, fche, Deepak Saxena, sandeepa.prabhu

Hi, Sandeepa -

> [...]
> While running sample hello program, the systemtap is failing to
> generate the source file and failing with errors -pasted- below.
> [...]
> WARNING: kbuild exited with status: 2
> Pass 4: compilation failed.  [man error::pass4]

The error::pass4 page advises that such problems can occur if your
kernel is much newer than your version of systemtap.  Try again
with git systemtap.


- FChE

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: systemtap error on arm64 (open-embedded build)
  2014-03-17 14:59 ` Frank Ch. Eigler
@ 2014-03-20  4:57   ` Sandeepa Prabhu
  0 siblings, 0 replies; 3+ messages in thread
From: Sandeepa Prabhu @ 2014-03-20  4:57 UTC (permalink / raw)
  To: Frank Ch. Eigler
  Cc: systemtap, William Cohen, fche, Deepak Saxena, sandeepa.prabhu

Hi Frank,

I have tried with latest changes from git systemtap (commit#
fa814a35c294f01e50567237a797589af29e87b6) but still observing the same
issue:

-------------------------------------------------------------
/usr/share/systemtap/runtime/transport/control.c: In function
'_stp_ctl_write_cmd':
211 include/linux/cred.h:333:25: error: incompatible types when
initializing type 'uid_t' using type 'kuid_t'
212  #define current_euid()  (current_cred_xxx(euid))
213                          ^
214 /usr/share/systemtap/runtime/transport/control.c:41:15: note: in
expansion of macro 'current_euid'
215   uid_t euid = current_euid();
216                ^
217 In file included from /usr/share/systemtap/runtime/linux/print.c:17:0,
218                  from /usr/share/systemtap/runtime/print.c:17,
219                  from /usr/share/systemtap/runtime/runtime_context.h:22,
220                  from /tmp/stapebbEul/hello_src.c:48:
221 /usr/share/systemtap/runtime/transport/transport.c: In function
'_stp_transport_init':
222 /usr/share/systemtap/runtime/transport/transport.c:344:11: error:
incompatible types when assigning to type 'uid_t' from type 'kuid_t'
223   _stp_uid = current_uid();
224            ^
225 /usr/share/systemtap/runtime/transport/transport.c:345:11: error:
incompatible types when assigning to type 'gid_t' from type 'kgid_t'
226   _stp_gid = current_gid();
227            ^
228 scripts/Makefile.build:308: recipe for target
'/tmp/stapebbEul/hello_src.o' failed
229 make[1]: *** [/tmp/stapebbEul/hello_src.o] Error 1
230 Makefile:1272: recipe for target '_module_/tmp/stapebbEul' failed
231 make: *** [_module_/tmp/stapebbEul] Error 2
232 WARNING: kbuild exited with status: 2
233 Pass 4: compilation failed.  [man error::pass4]
234 root@genericarmv8:~#
-------------------------------------------------------------

What is the latest kernel revision verified with systemtap? Our
patches are based out of 3.14-rc3 kernel.

Thanks,
Sandeepa

On 17 March 2014 20:29, Frank Ch. Eigler <fche@redhat.com> wrote:
> Hi, Sandeepa -
>
>> [...]
>> While running sample hello program, the systemtap is failing to
>> generate the source file and failing with errors -pasted- below.
>> [...]
>> WARNING: kbuild exited with status: 2
>> Pass 4: compilation failed.  [man error::pass4]
>
> The error::pass4 page advises that such problems can occur if your
> kernel is much newer than your version of systemtap.  Try again
> with git systemtap.
>
>
> - FChE
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-20  4:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-17 14:43 systemtap error on arm64 (open-embedded build) Sandeepa Prabhu
2014-03-17 14:59 ` Frank Ch. Eigler
2014-03-20  4:57   ` Sandeepa Prabhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).