From: Tsutomu OWA <tsutomu.owa@toshiba.co.jp>
To: Daniel Walker <dwalker@mvista.com>
Cc: mingo@elte.hu, tglx@linutronix.de, linux-kernel@vger.kernel.org,
linuxppc-dev@ozlabs.org
Subject: [RFC PATCH 3/4] powerpc 2.6.16-rt17: to support CONFIG_MCOUNT
Date: Mon, 21 Aug 2006 18:44:06 +0900 [thread overview]
Message-ID: <yyihd068luh.wl@forest.swc.toshiba.co.jp> (raw)
In-Reply-To: <1155305556.16579.49.camel@c-67-188-28-158.hsd1.ca.comcast.net>
Sorry about the late response and thanks a lot for your comments.
> On Fri, 11 Aug 2006 07:12:35 -0700, Daniel Walker <dwalker@mvista.com> said:
>> On Fri, 2006-08-11 at 11:02 +0900, Tsutomu OWA wrote:
>> +
>> +#if defined(CONFIG_PREEMPT_TRACE) || defined(CONFIG_LATENCY_TRACE)
>> + print_traces(current);
>> +#endif /* CONFIG_PREEMPT_TRACE || CONFIG_LATENCY_TRACE */
> You shouldn't need the ifdef's here.
Right. I'll remove them.
>> +#ifdef CONFIG_DEBUG_MUTEXES
>> + show_held_locks(current);
>> +#endif /* CONFIG_DEBUG_MUTEXES */
>> +
>> }
>> EXPORT_SYMBOL(dump_stack);
>>
>> diff -rup -x CVS 2.6.16-rt17/arch/powerpc/kernel/prom.c rt-powerpc/arch/powerpc/kernel/prom.c
> Your on an ancient version of the -rt patch. I see that your using CVS
> which explains that. If you want to keep better pace you should consider
> not using CVS.
Hmm... I'll think about that.
>> diff -rup -x CVS 2.6.16-rt17/lib/string.c rt-powerpc/lib/string.c
>> --- 2.6.16-rt17/lib/string.c 2006-03-20 14:53:29.000000000 +0900
>> +++ rt-powerpc/lib/string.c 2006-06-16 13:08:07.000000000 +0900
>> @@ -67,7 +67,7 @@ EXPORT_SYMBOL(strnicmp);
>> * @src: Where to copy the string from
>> */
>> #undef strcpy
>> -char *strcpy(char *dest, const char *src)
>> +char * notrace strcpy(char *dest, const char *src)
>> {
>> char *tmp = dest;
> Why are these notrace ?
Because these are called from prom_init before the relocation.
I was a bit reluctant to calcurate the address of mcount_enabled,
every time _mcount is called and was not sure if it's ok to call
__trace() at this early stage.
thanks.
-- owa
Software Engineering Center, TOSHIBA.
prev parent reply other threads:[~2006-08-21 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yyilkpwhvwh.wl@forest.swc.toshiba.co.jp>
2006-08-11 2:17 ` [RFC PATCH 3/4] powerpc 2.6.16-rt17: to support CONFIG_MCOUNT Tsutomu OWA
[not found] ` <1155305556.16579.49.camel@c-67-188-28-158.hsd1.ca.comcast.net>
2006-08-21 9:44 ` Tsutomu OWA [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=yyihd068luh.wl@forest.swc.toshiba.co.jp \
--to=tsutomu.owa@toshiba.co.jp \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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