public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Hallsmark, Per" <Per.Hallsmark@windriver.com>
To: "systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: What about MIPS support?
Date: Fri, 17 Aug 2012 16:33:00 -0000	[thread overview]
Message-ID: <B7B4BB465792624BAF51F33077E990652435B963@ALA-MBA.corp.ad.wrs.com> (raw)

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

             reply	other threads:[~2012-08-17 16:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 16:33 Hallsmark, Per [this message]
2012-08-18  2:20 ` Josh Stone
2012-08-22 20:04 Victor Kamensky
2012-08-23  2:23 ` Maneesh Soni
2012-08-23 14:33   ` Ananth N Mavinakayanahalli
2012-08-23 22:11 ` Josh Stone
2012-10-15 21:21   ` Victor Kamensky
2012-10-23 23:43     ` Josh Stone
2015-08-05 12:42     ` William Cohen
     [not found]       ` <CAJdmCr+1s6JLW3DsGxbdqPcpnD1+wNo5VwAifm6UN-SWE+PKmw@mail.gmail.com>
2015-08-05 16:25         ` William Cohen
     [not found]           ` <CAJdmCrLN3w6J3XHTCx0uMDQDAc6LB+5qC3o7Rr+KABAriwNATg@mail.gmail.com>
2015-08-06  1:30             ` William Cohen
2015-08-06 13:04               ` William Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B7B4BB465792624BAF51F33077E990652435B963@ALA-MBA.corp.ad.wrs.com \
    --to=per.hallsmark@windriver.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).