public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matt Fleming <matt@console-pimps.org>
To: Mathieu Desnoyers <compudj@krystal.dyndns.org>
Cc: Giuseppe CAVALLARO <peppe.cavallaro@st.com>,
	ltt-dev@lists.casi.polymtl.ca, Paul Mundt <lethal@linux-sh.org>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
	rostedt@goodmis.org
Subject: Re: sh: Add ftrace syscall tracing support (was: Re: [ltt-dev] [PATCH] sh: added LTT_DUMP_TABLES support)
Date: Tue, 4 Aug 2009 22:48:15 +0100	[thread overview]
Message-ID: <20090804214815.GC4084@console-pimps.org> (raw)
In-Reply-To: <20090804133515.GB23807@Krystal>

On Tue, Aug 04, 2009 at 09:35:15AM -0400, Mathieu Desnoyers wrote:
> * Giuseppe CAVALLARO (peppe.cavallaro@st.com) wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Hi Mathieu,
> > 
> > Mathieu Desnoyers wrote:
> > > So now we only need to fix entry-common.S to get everything working.
> > 
> > I've just noticed that this has been already done:
> > http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Flethal%2Fsh-2.6.git;a=commitdiff_plain;h=c652d780c9cf7f860141de232b37160fe013feca;hp=c1340c053be7a43d837a3acb352d5008be865a55
> > I think it will be necessary to to re-add the _TIF_KERNEL_TRACE against
> > this modifications, only.
> > 
> 
> Hrm, I don't like the approach taken there. It extends the bitmasks for
> _TIF_WORK_SYSCALL_MASK and _TIF_ALLWORK_MASK beyond 8 bits, and adds a &
> 0xff in the assembly whenever needed. This begs for a bug to be
> introduced.
> 
> If we need something like that on SH, we should probably declare a 8-bit
> only bitmask for those assembly sites which does not need the
> FTRACE_SYSCALL thread flag, and another mask for sites which need to
> test the 2 bytes.
> 

If I remember correctly, I originally split TIF_WORK_SYSCALL_MASK into a
high 8-bit and low 8-bit chunks. However, I think I remember Paul saying
that wasn't the best way to do it.

I've no issue with doing it either way.

      reply	other threads:[~2009-08-04 21:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1249040606-15402-1-git-send-email-peppe.cavallaro@st.com>
     [not found] ` <20090731155048.GD8847@Krystal>
     [not found]   ` <4A77F585.2070508@st.com>
2009-08-04 13:35     ` sh: Add ftrace syscall tracing support (was: Re: [ltt-dev] [PATCH] sh: added LTT_DUMP_TABLES support) Mathieu Desnoyers
2009-08-04 21:48       ` Matt Fleming [this message]

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=20090804214815.GC4084@console-pimps.org \
    --to=matt@console-pimps.org \
    --cc=compudj@krystal.dyndns.org \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ltt-dev@lists.casi.polymtl.ca \
    --cc=mingo@elte.hu \
    --cc=peppe.cavallaro@st.com \
    --cc=rostedt@goodmis.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