From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linuxppc-dev@ozlabs.org, khilman@mvista.com,
linux-kernel@vger.kernel.org, dwalker@mvista.com
Subject: Re: [PATCH] 2.6.18-rt7: fix more issues with 32-bit cycles_t in latency_trace.c (take 3)
Date: Mon, 04 Dec 2006 20:09:56 +0300 [thread overview]
Message-ID: <45745664.5040404@ru.mvista.com> (raw)
In-Reply-To: <20061204162300.GA23800@elte.hu>
Hello.
Ingo Molnar wrote:
>>> /* check for buggy clocks, handling wrap for 32-bit clocks */
>>>- if (TYPE_EQUAL(cycles_t, unsigned long)) {
>>>+ if (TYPE_EQUAL(cycle_t, unsigned long)) {
>>> if (time_after((unsigned long)T1, (unsigned long)T2))
>>> printk("bug: %08lx < %08lx!\n",
>>> (unsigned long)T2, (unsigned long)T1);
>> This earlier fix by Kevin woulnd't have sense anymore with cycle_t...
> yeah, indeed - i've zapped this one too.
Moreover, it was somewhat incorrect from the very start since 'unsigned
long' is 64-bit on 64-bit machines, and cycles_t is 'unsigned long' on both
PPC32 and PPC64, so else branch would've *never* be executed...
> basically, what i'd like is the 32-bit clocks/cycles be handled
> intelligently, and not adding to the cruft that already is in
> kernel/latency_tracing.c.
Yeah, I've looked at 2.6.19-rt2 and saw the new approach. But what's left
to fix there, only the case of using PPC32 raw cycles? I guess you only need
to cast a result of get_cycles() to cycle_t... wait, it'll be explicitly cast
in the return stmt, won't it?
> Ingo
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
dwalker@mvista.com, khilman@mvista.com
Subject: Re: [PATCH] 2.6.18-rt7: fix more issues with 32-bit cycles_t in latency_trace.c (take 3)
Date: Mon, 04 Dec 2006 20:09:56 +0300 [thread overview]
Message-ID: <45745664.5040404@ru.mvista.com> (raw)
In-Reply-To: <20061204162300.GA23800@elte.hu>
Hello.
Ingo Molnar wrote:
>>> /* check for buggy clocks, handling wrap for 32-bit clocks */
>>>- if (TYPE_EQUAL(cycles_t, unsigned long)) {
>>>+ if (TYPE_EQUAL(cycle_t, unsigned long)) {
>>> if (time_after((unsigned long)T1, (unsigned long)T2))
>>> printk("bug: %08lx < %08lx!\n",
>>> (unsigned long)T2, (unsigned long)T1);
>> This earlier fix by Kevin woulnd't have sense anymore with cycle_t...
> yeah, indeed - i've zapped this one too.
Moreover, it was somewhat incorrect from the very start since 'unsigned
long' is 64-bit on 64-bit machines, and cycles_t is 'unsigned long' on both
PPC32 and PPC64, so else branch would've *never* be executed...
> basically, what i'd like is the 32-bit clocks/cycles be handled
> intelligently, and not adding to the cruft that already is in
> kernel/latency_tracing.c.
Yeah, I've looked at 2.6.19-rt2 and saw the new approach. But what's left
to fix there, only the case of using PPC32 raw cycles? I guess you only need
to cast a result of get_cycles() to cycle_t... wait, it'll be explicitly cast
in the return stmt, won't it?
> Ingo
WBR, Sergei
next prev parent reply other threads:[~2006-12-04 17:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 19:52 [PATCH] 2.6.18-rt7: fix more issues with 32-bit cycles_t in latency_trace.c (take 3) Sergei Shtylyov
2006-11-13 19:52 ` Sergei Shtylyov
2006-12-03 19:33 ` Sergei Shtylyov
2006-12-04 9:51 ` Ingo Molnar
2006-12-04 12:29 ` Sergei Shtylyov
2006-12-04 15:39 ` Ingo Molnar
2006-12-04 16:21 ` Sergei Shtylyov
2006-12-04 16:23 ` Ingo Molnar
2006-12-04 17:09 ` Sergei Shtylyov [this message]
2006-12-04 17:09 ` Sergei Shtylyov
2006-12-04 21:56 ` Roman Zippel
2006-12-04 21:56 ` Roman Zippel
2006-12-04 21:58 ` Ingo Molnar
2006-12-04 21:58 ` Ingo Molnar
2006-12-04 18:04 ` Sergei Shtylyov
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=45745664.5040404@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=dwalker@mvista.com \
--cc=khilman@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mingo@elte.hu \
/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.