[Python-Dev] --with-tsc compile fails
Jeremy Hylton
jhylton at gmail.com
Wed Sep 15 20:56:43 CEST 2004
On Wed, 15 Sep 2004 14:51:55 +0100, Michael Hudson <mwh at python.net> wrote:
> Jeremy Hylton <jhylton at gmail.com> writes:
>
> > I'm feeling pretty out of it :-). I'm very happy to see that the
> > Pentium tsc patch made it into the core; I had missed it. I'm amused
> > that the Pentium tsc patch works for PPC, too.
>
> I did consider changing all the names but couldn't be bothered.
There's nothing wrong with amusing names for obscure stuff like this :-).
> OTOH, I think one could replace the include by
>
> #define rdtscll(val) \
> __asm__ __volatile__("rdtsc" : "=A" (val))
>
> if my limited googling is anything to go by. It also seems asm/msr.h
> is a "kernel internal header with absolutely no stable API
> properties...." (Redhat bugzilla).
>
> So, now I've written this email <wink>, I think we should take out the
> include and put in the #define.
I'll give it a try tonight. I double-checked and my somewhat tweaked
RH Linux distro doesn't have an asm/msr.h. I'd rather not try to find
out if there is an rdtscll() defined somewhere else.
jeremy
More information about the Python-Dev
mailing list