Re: [RESEND][RFC] lscpu - CPU architecture information helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Samuel,

From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Subject: Re: [RESEND][RFC] lscpu - CPU architecture information helper
Date: Tue, 8 Jul 2008 14:02:47 +0100

> Hello,
> 
> >   /* Only i686, X86_64 and IA64 are supported at the moment. */
> >   if (strcmp (arch, "x86_64") && strcmp (arch, "i686")
> >       && strcmp (arch, "ia64"))
> >     errx (1, "error - %s is not supported.", arch);
> 
> Maybe you could relax this a bit: /proc/cpuinfo is not arch-agnostic
> indeed, but /sys/etc is, and that still provides a good amount of useful
> information.
> 

I have tried on ppc64 and s390(x) machines, but it does not provide me
any really useful information from sysfs. There is no topology and cache
available there (2.6.18 Kernel). I don't have access to other
architecutes. If there is an evidence of sysfs working consistently on
other arches, I'd be happy to add them in.

CaiQian

> Samuel
> --
> To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux