Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 9670

Summary: app-admin/gentoo-stats doesn't understand Alpha processor info
Product: Gentoo Linux Reporter: Will Woods (RETIRED) <wwoods>
Component: Current packagesAssignee: Arun Bhanu (RETIRED) <arunbhanu>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 1.0   
Hardware: Alpha   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gentoo-stats to support alpha

Description Will Woods (RETIRED) gentoo-dev 2002-10-25 16:42:43 UTC
gentoo-stats doesn't understand Alpha /proc/cpuinfo. Here are some samples:  
  
From a Compaq XP1000 (667 MHz EV67 processor):  
amt103 root # cat /proc/cpuinfo  
cpu                     : Alpha  
cpu model               : EV67  
cpu variation           : 7  
cpu revision            : 0  
cpu serial number       :  
system type             : Tsunami  
system variation        : Monet  
system revision         : 0  
system serial number    : 4030DRSZ1045  
cycle frequency [Hz]    : 666666666  
timer frequency [Hz]    : 1024.00  
page size [bytes]       : 8192  
phys. address bits      : 44  
max. addr. space #      : 255  
BogoMIPS                : 1326.92  
kernel unaligned acc    : 0 (pc=0,va=0)  
user unaligned acc      : 14 (pc=120002a24,va=1200154bc)  
platform string         : COMPAQ Professional Workstation XP1000  
cpus detected           : 1  
  
From a Digital Personal Workstation 600a (aka Miata):  
root@amt102:~# cat /proc/cpuinfo 
cpu                     : Alpha 
cpu model               : EV56 
cpu variation           : 7 
cpu revision            : 0 
cpu serial number       : 
system type             : Miata 
system variation        : 0 
system revision         : 0 
system serial number    : 
cycle frequency [Hz]    : 600000000 
timer frequency [Hz]    : 1024.00 
page size [bytes]       : 8192 
phys. address bits      : 40 
max. addr. space #      : 127 
BogoMIPS                : 1183.84 
kernel unaligned acc    : 0 (pc=0,va=0) 
user unaligned acc      : 0 (pc=0,va=0) 
platform string         : Digital Personal WorkStation 600au 
cpus detected           : 1 
 
More available on request.
Comment 1 Maik Schreiber 2002-10-26 09:42:39 UTC
cpu                     : Alpha
cpu model               : EV5
cpu variation           : 7
cpu revision            : 0
cpu serial number       :
system type             : Alcor
system variation        : Alcor
system revision         : 0
system serial number    :
cycle frequency [Hz]    : 333333333
timer frequency [Hz]    : 1024.00
page size [bytes]       : 8192
phys. address bits      : 40
max. addr. space #      : 127
BogoMIPS                : 660.40
kernel unaligned acc    : 0 (pc=0,va=0)
user unaligned acc      : 0 (pc=0,va=0)
platform string         : Digital AlphaStation 600 5/333
cpus detected           : 1
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2003-04-22 15:40:03 UTC
Created attachment 11014 [details]
gentoo-stats to support alpha

I'm just attaching a whole new version instead of a patch because then it's
easier to see what's going on with a visual diff tool.	Note: It looks like a
lot of changes, but it's not really.  I split get_cpus into separate
subroutines depending on the platform type, creating get_cpus_x86,
get_cpus_ppc, and get_cpus_alpha.  In reality, the only *new* code is
get_cpus_alpha.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2003-04-22 15:43:33 UTC
Reassigning to codebear for absorption into new gentoo-stats.  Codebear, my attachment to this bug adds alpha support to the gentoo-stats client.  It's based on the Perl version 0.4 in the portage tree.  Assuming Python understands forward lookahead assertions, it should be fairly easily ported.  Let me know if there's any trouble...
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-11 13:10:19 UTC

*** This bug has been marked as a duplicate of 30923 ***