This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
What about MIPS support?
- From: "Hallsmark, Per" <Per dot Hallsmark at windriver dot com>
- To: "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Date: Fri, 17 Aug 2012 16:32:56 +0000
- Subject: What about MIPS support?
Dear systemtap gurus,
Are there any plans in near future for a MIPS port?
Even in the latest git repo I didn't find any support for this.
In the maillist archive I couldn't search up anything vital either
so there this question.
I've also tried a bit with release 1.7 (latest release possible
that didn't require a lot of changes in our build environment,
like upgrading elfutils etc). Unfortunately our kernel didn't have
support for kprobes so that had to be backported.
As we mostly do crosscompile, I've used same manner as
in http://www.omappedia.org/wiki/Systemtap for building the
stap kernel modules on a host and later running them in target
via staprun.
I can run simplier stuff like:
[phallsma@arn-ph-lap systemtap]$ cat hello_world.stp
probe begin {
log("hello world")
exit()
}
[phallsma@arn-ph-lap systemtap]$
[phallsma@arn-ph-lap systemtap]$ make module-hello_world
Building module hello_world
/../stap -g -a mips -B CROSS_COMPILE=mips-wrs-linux-gnu- -p 4 -r /../linux-standard-build -m hello_world hello_world.stp
hello_world.ko
[phallsma@arn-ph-lap systemtap]$
And then in target:
root@localhost:/root> staprun hello_world.ko
hello world
root@localhost:/root>
However, when I know try something more fun it fails:
[phallsma@arn-ph-lap systemtap]$ cat pid.stp
probe syscall.* {
if (target()==pid())
log(name." ".argstr)
}
[phallsma@arn-ph-lap systemtap]$
[phallsma@arn-ph-lap systemtap]$ make module-pid
Building module pid
/../stap -g -a mips -B CROSS_COMPILE=mips-wrs-linux-gnu- -p 4 -r /../linux-standard-build -m pid pid.stp
semantic error: unresolved arity-4 function: identifier '_arch_ptrace_argstr' at /../systemtap/systemtap-1.7-host/share/systemtap/tapset/aux_syscalls.stp:2234:9
source: retval=_arch_ptrace_argstr(request, pid, addr, data)
^
WARNING: cannot find module /home/phallsma/.systemtap/cache/56/typequery_5669672d94d9763ecb1a5f26f11313ad_1198.ko debuginfo: no support library found for machine
Pass 2: analysis failed. Try again with another '--vp 01' option.
make: *** [module-pid] Error 1
[phallsma@arn-ph-lap systemtap]$
So I obviously now need to add more mips support in systemtap (started with this in tapsets/mips etc)
Any guidance on what is needed todo for a new arch?
Anyone started already with mips?
BR,
Per
--
Per Hallsmark per.hallsmark@windriver.com
Engineering Specialist Wind River AB
Mobile: +46733249340 Office: +46859461127
Torshamnsgatan 27 164 40 Kista