Vocabulary
unix.linux.proc

Inputs
processor-infoan object
stringan object


Outputs
processor-infoan object


Definition


: line>processor-info
( processor-info string -- processor-info )
":" split first2 swap [ 9 = ] trim-tail
[ [ 32 = ] trim ] bi@ {
{
"address sizes"
[
"," split
[ [ 32 = ] trim " " split first string>number ]
map >>address-sizes
]
}
{ "apicid" [ string>number >>apicid ] }
{ "bogomips" [ string>number >>bogomips ] }
{
"cache size"
[
" " split first [ 32 = ] trim
string>number 1024 * >>cache-size
]
}
{
"cache_alignment"
[ string>number >>cache-alignment ]
}
{ "clflush size" [ string>number >>clflush-size ] }
{ "coma_bug" [ "yes" = >>coma-bug? ] }
{ "core id" [ string>number >>core-id ] }
{ "cpu MHz" [ string>number >>cpu-mhz ] }
{ "cpu cores" [ string>number >>cpu-cores ] }
{ "cpu family" [ string>number >>cpu-family ] }
{ "cpuid level" [ string>number >>cpuid-level ] }
{ "f00f_bug" [ "yes" = >>f00f-bug? ] }
{ "fdiv_bug" [ "yes" = >>fdiv-bug? ] }
{ "flags" [ " " split harvest >>flags ] }
{ "fpu" [ "yes" = >>fpu? ] }
{ "fpu_exception" [ "yes" = >>fpu-exception? ] }
{ "hlt_bug" [ "yes" = >>hlt-bug? ] }
{ "initial apicid" [ string>number >>initial-apicid ] }
{ "microcode" [ string>number >>microcode ] }
{ "model" [ string>number >>model ] }
{ "model name" [ >>model-name ] }
{ "physical id" [ string>number >>physical-id ] }
{ "power management" [ >>power-management ] }
{ "processor" [ string>number >>processor ] }
{ "siblings" [ string>number >>siblings ] }
{ "stepping" [ string>number >>stepping ] }
{ "vendor_id" [ >>vendor-id ] }
{ "wp" [ "yes" = >>wp? ] }
{ "TLB size" [ >>tlb-size ] }
{ "bugs" [ >>bugs ] }
{ "vmx flags" [ >>vmx-flags ] }
[ unknown-cpuinfo-line ]
} case ;