diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-01-31 23:35:06 +0000 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-01-31 23:35:06 +0000 | 
| commit | 6ad1c1c257c74c82179a0eb62277ceef1cc4e9e0 (patch) | |
| tree | 73a0657cad8a96c0d0611ec900b95adc4a264be0 /hardinfo2/arch/linux/x86 | |
| parent | e9906f6d9335ae96cd6afac714646b97edc469a5 (diff) | |
Sync with internal subversion
Diffstat (limited to 'hardinfo2/arch/linux/x86')
| -rw-r--r-- | hardinfo2/arch/linux/x86/processor.h | 46 | 
1 files changed, 46 insertions, 0 deletions
| diff --git a/hardinfo2/arch/linux/x86/processor.h b/hardinfo2/arch/linux/x86/processor.h index 395b6aa3..571943f6 100644 --- a/hardinfo2/arch/linux/x86/processor.h +++ b/hardinfo2/arch/linux/x86/processor.h @@ -224,6 +224,7 @@ static struct {      { "dts",		"Debug Store" },      { "ss",		"Self Snoop" },      { "tm",		"Thermal Monitor" }, +    { "pbe",		"Pending Break Enable" },      { "pb",		"Pending Break Enable" },      { NULL, NULL}  }; @@ -255,3 +256,48 @@ processor_get_capabilities_from_flags(gchar * strflags)      g_strfreev(old);      return tmp;  } + +static gchar * +processor_get_info(Processor *processor) +{ +	gchar *tmp = processor_get_capabilities_from_flags(processor-> +						  flags); +	gchar *ret = g_strdup_printf("[Processor]\n" +	                       "Name=%s\n" +	                       "Specification=%s\n" +                               "Family, model, stepping=%d, %d, %d\n" +			       "Vendor=%s\n" +			       "Cache Size=%dkb\n" +			       "Frequency=%.2fMHz\n" +			       "BogoMips=%.2f\n" +			       "Byte Order=%s\n" +			       "[Features]\n" +			       "FDIV Bug=%s\n" +			       "HLT Bug=%s\n" +			       "F00F Bug=%s\n" +			       "Coma Bug=%s\n" +			       "Has FPU=%s\n" +			       "[Capabilities]\n" "%s", +			       processor->strmodel, +			       processor->model_name, +			       processor->family, +			       processor->model, +			       processor->stepping, +			       processor->vendor_id, +			       processor->cache_size, +			       processor->cpu_mhz, +			       processor->bogomips, +#if G_BYTE_ORDER == G_LITTLE_ENDIAN +                               "Little Endian", +#else +                               "Big Endian", +#endif +			       processor->bug_fdiv, +			       processor->bug_hlt, +			       processor->bug_f00f, +			       processor->bug_coma, +			       processor->has_fpu, +			       tmp); +      g_free(tmp); +      return ret; +} | 
