* get_cycles/get_tbl on 405
@ 2001-08-24 1:59 andrew may
2001-08-24 9:52 ` Benjamin Herrenschmidt
2001-08-25 2:35 ` Dan Malek
0 siblings, 2 replies; 5+ messages in thread
From: andrew may @ 2001-08-24 1:59 UTC (permalink / raw)
To: linuxppc-embedded
I wanted to do some quick time measurements of some things on a driver
running of the 405GP and I eneded up using get_tbl(). It seems like
get_cycles should be the more standard way to get a tick count but
it seems to return 0. I don't get the __ftr_fixup stuff in timex.h
so I am not sure what it is trying to do differently from get_tbl.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: get_cycles/get_tbl on 405
2001-08-24 1:59 get_cycles/get_tbl on 405 andrew may
@ 2001-08-24 9:52 ` Benjamin Herrenschmidt
2001-08-25 2:35 ` Dan Malek
1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2001-08-24 9:52 UTC (permalink / raw)
To: andrew may, linuxppc-embedded
>I wanted to do some quick time measurements of some things on a driver
>running of the 405GP and I eneded up using get_tbl(). It seems like
>get_cycles should be the more standard way to get a tick count but
>it seems to return 0. I don't get the __ftr_fixup stuff in timex.h
>so I am not sure what it is trying to do differently from get_tbl.
The __ftr_fixup in timex.h adds a reference to this code in the
feature fixup section. This allow the code that access the TB to
be nop'ed out on CPUs that don't implement it (601)
Ben.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: get_cycles/get_tbl on 405
2001-08-24 1:59 get_cycles/get_tbl on 405 andrew may
2001-08-24 9:52 ` Benjamin Herrenschmidt
@ 2001-08-25 2:35 ` Dan Malek
2001-08-25 7:35 ` acmay
1 sibling, 1 reply; 5+ messages in thread
From: Dan Malek @ 2001-08-25 2:35 UTC (permalink / raw)
To: andrew may; +Cc: linuxppc-embedded
andrew may wrote:
>
> I wanted to do some quick time measurements of some things on a driver
> running of the 405GP and I eneded up using get_tbl(). It seems like
> get_cycles....
Hmmm....these look like they should work exactly the same.....
It would help me if you could disassemble a little code snippet
around the place you use these so we could have a look.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: get_cycles/get_tbl on 405
2001-08-25 2:35 ` Dan Malek
@ 2001-08-25 7:35 ` acmay
2001-08-27 17:56 ` Dan Malek
0 siblings, 1 reply; 5+ messages in thread
From: acmay @ 2001-08-25 7:35 UTC (permalink / raw)
To: Dan Malek; +Cc: andrew may, linuxppc-embedded
On Fri, Aug 24, 2001 at 10:35:10PM -0400, Dan Malek wrote:
> andrew may wrote:
> >
> > I wanted to do some quick time measurements of some things on a driver
> > running of the 405GP and I eneded up using get_tbl(). It seems like
> > get_cycles....
>
> Hmmm....these look like they should work exactly the same.....
> It would help me if you could disassemble a little code snippet
> around the place you use these so we could have a look.
They did. I just confused myself with too many kernel versions.
The 2.4.2 mvista kernel didn't have the same header file, but by
just sticking the newer header in there with the one other header
it pulls in along with it, it worked fine.
The __ftr_fixup doesn't seem to be used much in any of the other
arch's.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-08-27 17:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-24 1:59 get_cycles/get_tbl on 405 andrew may
2001-08-24 9:52 ` Benjamin Herrenschmidt
2001-08-25 2:35 ` Dan Malek
2001-08-25 7:35 ` acmay
2001-08-27 17:56 ` Dan Malek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).