This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64 enable hp-timing


Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote on 10/25/2005 
05:51:33 PM:

> On Tue, 2005-10-25 at 15:59 -0500, Steven Munroe wrote:
> 
> > +
> > +  fd = open ("/proc/cpuinfo", O_RDONLY);
> > +  if (__builtin_expect (fd != -1, 1))
> > +    {
> > +      /* XXX AFAIK the /proc filesystem can generate "files" only up
> > +         to a size of 4096 bytes.  */
> 
> I think that assumption isn't true. The seq_file mecanism deals
> transparently with that nowadays...
> 
Well if this is a problem, i386, ia64, and x86_64 have it too. They are 
all implemented the same way. sparc64 uses an 8K buffer.

Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]