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: Met Problem on Enable SystemTap on Android


Hi,

I recompile the kernel with cross-compiler "arm-none-linux-gnueabi-"
and "make ARCH=arm"

Now, I can get "helloworld.ko" from "helloworld.stp", however, when I
try to cross-compile "syscall_by_pid.stp", I got the following error
message:
./stap -c -gv -a arm -D OMAP_L25 -B
CROSS_COMPILE=~/Downloads/arm-2010q1/bin/arm-none-linux-gnueabi- -r
/home/lwan1/WORKING_DIRECTORY/kernel_1 -I
/data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
/data/systemtap-1.5-macharm/share/systemtap/runtime/ -m
syscalls_by_pid ~/Downloads/syscalls_by_pid.stp -c "sleep 0.2"
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
semantic error: unresolved arity-4 function: identifier
'_arch_ptrace_argstr' at
/data/systemtap-1.5-ubuntu/share/systemtap/tapset/aux_syscalls.stp:2234:9
??????? source: ??? retval=_arch_ptrace_argstr(request, pid, addr, data)
??????????????? ??? ?????? ^
Pass 2: analysis failed.? Try again with another '--vp 01' option.

I thought it was the problem of the tapset, so I reinstalled the
systemtap, but the problem is still there.

Any hint would be welcome.

Thanks.

Yours
Sincerely

2011/9/1 Turgis, Frederic <f-turgis@ti.com>
>
> >I tried to cross-compile the syscall_by_pid.stp
>
> There is an error at Pass1 => semantic error: ELF machine |x86_64 (code 62) mismatch with target arm in '/home/lwan1/WORKING_DIRECTORY/kernel/vmlinux' => it means you want to go for an ARM arch but your kernel has been compiled for x86_64. Try "file xxx/vmlinux", it will confirm.
>
> Have you compiled it yourself ? You then forgot the ARCH=arm and CROSS_COMPILE=arm-none-gnuxxxxx variables
>
>
> >So I tried the most simple script helloworld.stp, but it still
> >does not work.
>
> It is quite the same. It will try to compile for an ARM arch with kernel configuration set for x86_64. Therefore compilation flags interact in weird manner with headers.
>
>
> By the way, we use a 2010 toolchain or more recent, 2008 is quite old but shall still work.
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>


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