From: Thiemo Seufer <ths@networkno.de>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <ddaney@avtrex.com>,
oprofile-list@lists.sourceforge.net, linux-mips@linux-mips.org
Subject: Re: [Patch] Fix lookup_dcookie for MIPS o32
Date: Wed, 19 Oct 2005 17:48:43 +0200 [thread overview]
Message-ID: <20051019154843.GF5721@hattusa.textio> (raw)
In-Reply-To: <20051018114526.GC2656@linux-mips.org>
Ralf Baechle wrote:
> On Mon, Oct 17, 2005 at 02:44:07PM -0700, David Daney wrote:
>
> > This patch fixes the lookup_dcookie for the MIPS o32 ABI. Although I
> > only tested with little-endian, the big-endian case needed fixing as
> > well but is untested (but what are the chances that this is not the
> > correct fix?).
> >
> > This is the only patch I needed to get the user space oprofile
> > programs to work for mipsel-linux.
> >
> > I am CCing the linux-mips list as this may be of interest there as well.
>
> Good catch.
>
> > 2005-10-17 David Daney <ddaney@avtrex.com>
> >
> > * daemon/opd_cookie.c (lookup_dcookie): Handle MIPS o32 for both big
> > and little endian.
> >
> > Index: oprofile/daemon/opd_cookie.c
> > ===================================================================
> > RCS file: /cvsroot/oprofile/oprofile/daemon/opd_cookie.c,v
> > retrieving revision 1.19
> > diff -p -a -u -r1.19 opd_cookie.c
> > --- oprofile/daemon/opd_cookie.c 26 May 2005 00:00:02 -0000 1.19
> > +++ oprofile/daemon/opd_cookie.c 17 Oct 2005 21:29:13 -0000
> > @@ -60,12 +60,21 @@
> > #endif /* __NR_lookup_dcookie */
> >
> > #if (defined(__powerpc__) && !defined(__powerpc64__)) || defined(__hppa__)\
> > - || (defined(__s390__) && !defined(__s390x__))
> > + || (defined(__s390__) && !defined(__s390x__)) \
> > + || (defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32) \
> > + && defined(_MIPSEB))
>
> Small nit - please use __MIPSEB__ rsp. __MIPSEL__; I think there are
> some compilers floating around that don't define the single underscore
> variant.
AFAIR it's the other way, some compilers fail to define __MIPSEB__ and/or
__MIPSEB but all have _MIPSEB.
Thiemo
next prev parent reply other threads:[~2005-10-19 15:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 21:44 [Patch] Fix lookup_dcookie for MIPS o32 David Daney
2005-10-18 11:45 ` Ralf Baechle
2005-10-18 23:24 ` John Levon
2005-10-18 23:35 ` David Daney
2005-10-18 23:36 ` John Levon
2005-10-19 9:07 ` Geert Uytterhoeven
2005-10-19 10:40 ` Ralf Baechle
2005-10-19 11:21 ` Geert Uytterhoeven
2005-10-19 15:48 ` Thiemo Seufer [this message]
2005-10-19 15:55 ` Ralf Baechle
[not found] ` <20051018115155.GD2656@linux-mips.org>
[not found] ` <43551D21.3010500@avtrex.com>
[not found] ` <20051018202654.GB2659@linux-mips.org>
2005-10-19 16:13 ` David Daney
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=20051019154843.GF5721@hattusa.textio \
--to=ths@networkno.de \
--cc=ddaney@avtrex.com \
--cc=linux-mips@linux-mips.org \
--cc=oprofile-list@lists.sourceforge.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox