public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel•crashing.org>
To: Christoph Hellwig <hch@lst•de>
Cc: linuxppc-dev@ozlabs•org, Paul Mackerras <paulus@samba•org>,
	prasanna@in•ibm.com
Subject: Re: RFC: kprobes support for ppc32
Date: Tue, 30 Jan 2007 08:45:29 -0600	[thread overview]
Message-ID: <8C811CD0-1FA8-43AA-8D91-0C28811D021D@kernel.crashing.org> (raw)
In-Reply-To: <20070130104630.GC14571@lst.de>


On Jan 30, 2007, at 4:46 AM, Christoph Hellwig wrote:

> On Tue, Jan 30, 2007 at 12:13:32AM -0600, Kumar Gala wrote:
>> +	depends on !BOOKE && KALLSYMS && EXPERIMENTAL && MODULES
>
> Just curious: what's the problem with BOOKE?

Book-e's debug handling/architecture is significantly different than  
most other PPCs.  I'll look at adding support for it in the future.

>> +#ifdef CONFIG_PPC64
>>   	regs->nip = (unsigned long)(((func_descr_t *)jp->entry)->entry);
>>   	regs->gpr[2] = (unsigned long)(((func_descr_t *)jp->entry)->toc);
>> +#else
>> +	regs->nip = (unsigned long)jp->entry;
>> +#endif
>
> This should probably be split int a macro.

Seems like a bit of a waste, for 6 lines of code.  I'm not exactly  
sure what you're envisioning here.

> also I think you should not define kprobe_lookup_name for the 32bit
> case as the generic version should be fine for ppc32

Ok, I'll look into that.

- k

      parent reply	other threads:[~2007-01-30 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-30  6:13 RFC: kprobes support for ppc32 Kumar Gala
2007-01-30  6:24 ` Ananth N Mavinakayanahalli
2007-01-30 10:46 ` Christoph Hellwig
2007-01-30 11:33   ` Ananth N Mavinakayanahalli
2007-01-30 14:45   ` Kumar Gala [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=8C811CD0-1FA8-43AA-8D91-0C28811D021D@kernel.crashing.org \
    --to=galak@kernel$(echo .)crashing.org \
    --cc=hch@lst$(echo .)de \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=paulus@samba$(echo .)org \
    --cc=prasanna@in$(echo .)ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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