From: David Daney <david.daney@cavium.com>
To: Holger Hans Peter Freyther <holger@freyther.de>,
Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org, "VomLehn, David" <dvomlehn@cisco.com>,
gergely@homejinni.com
Subject: Re: [RFC][PATCH] Implement perf_callchain_user for o32 ABI (on mipsel)
Date: Wed, 10 Aug 2011 10:25:04 -0700 [thread overview]
Message-ID: <4E42BEF0.1040502@cavium.com> (raw)
In-Reply-To: <4E423228.2080309@freyther.de>
On 08/10/2011 12:24 AM, Holger Hans Peter Freyther wrote:
> Hi all,
>
> I wanted to use perf to profile my userspace application on MIPS but I saw
> that there is no solution for that. I have written some code to scan the
> prologue of the function to identify the stack size and where in the stack the
> return address is stored.
>
> 0: 27bdffd8 addiu sp,sp,-40<-- used to find prev. stack
> 4: afbf0024 sw ra,36(sp)<-- stored return addr.
> 8: afbe0020 sw s8,32(sp)
> c: 03a0f021 move s8,sp
> 10: 3c1c0000 lui gp,0x0
> 14: 279c0000 addiu gp,gp,0
>
> The code appears to work in qemu-system-mipsel (not where I am going to do my
> profiling) with my simple test application.
>
> The code is missing a S-o-b because I would like to get feedback if something
> like this would ever be accepted upstream. The other question is also about
> security, other ABIs, 32/64 bit...
>
> comments more than welcome
> holger
You need to reconcile your patches with these:
http://patchwork.linux-mips.org/patch/2579/
http://patchwork.linux-mips.org/patch/2376/
http://patchwork.linux-mips.org/patch/2375/
We probably could use some sort of backtrace code in the kernel, but
three seperate implementations are too many.
Also separating most of the unwinder into a separate file would be
preferable to mixing it into the perf counter driver.
David Daney
next prev parent reply other threads:[~2011-08-10 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 7:24 [RFC][PATCH] Implement perf_callchain_user for o32 ABI (on mipsel) Holger Hans Peter Freyther
2011-08-10 7:24 ` Holger Hans Peter Freyther
2011-08-10 17:25 ` David Daney [this message]
2011-08-10 21:19 ` Holger Freyther
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=4E42BEF0.1040502@cavium.com \
--to=david.daney@cavium.com \
--cc=dvomlehn@cisco.com \
--cc=gergely@homejinni.com \
--cc=holger@freyther.de \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.