This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: error to run systemtap in an ARM platform
On 07/18/2011 04:09 PM, William Cohen wrote:
>
> I tried compiling disktop.stp on my machine and got:
>
> export KERNEL_SRC=/home/wcohen/stuff/efikamx/kernel/linux-kernel
> stap -a arm -B CROSS_COMPILE=armv7hl-redhat-linux-gnueabi- -r $KERNEL_SRC -m disktop disktop.stp
>
>
> WARNING: kernel release/architecture mismatch with host forces last-pass 4.
> In file included from /tmp/stapt1iKiI/disktop.c:4908:0:
> /tmp/stapt1iKiI/stap-symbols.h:89496:1: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
> cc1: all warnings being treated as errors.
Ah, this was and older systemap-1.4 problem. Systemtap from git repository worked fine. Got output like the following on the arm target machine when doing a native build of the kernel:
Mon Jul 18 20:17:15 2011 , Average:1041Kb/sec, Read: 4361Kb, Write: 848Kb
UID PID PPID CMD DEVICE T BYTES
500 15034 15033 cc1 mmcblk0p2 R 1905597
500 15041 15040 cc1 mmcblk0p2 R 1859083
500 15035 15033 as mmcblk0p2 R 685410
500 15034 15033 cc1 mmcblk0p2 W 667330
500 15035 15033 as mmcblk0p2 W 169827
500 15036 15032 fixdep mmcblk0p2 W 31390
500 15038 15032 mv mmcblk0p2 R 4320
500 15040 15039 gcc mmcblk0p2 R 3760
500 15039 15021 sh mmcblk0p2 R 2272
500 15037 15032 rm mmcblk0p2 R 1248
-Will