X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fcpu.c;h=1b3ac31ef9162af512938348f532401712c41ce5;hb=d6897c1597c4f0904d5956f7d794e3f001d52f72;hp=ef08dc7c022faa62a98366e7c77b54b75e78ecde;hpb=461caa5f98202ac758076ad96b82c57251f2f19a;p=vpp.git diff --git a/src/vppinfra/cpu.c b/src/vppinfra/cpu.c index ef08dc7c022..1b3ac31ef91 100644 --- a/src/vppinfra/cpu.c +++ b/src/vppinfra/cpu.c @@ -74,15 +74,17 @@ format_cpu_uarch (u8 * s, va_list * args) { #if __x86_64__ u32 __attribute__ ((unused)) eax, ebx, ecx, edx; - u8 model, family; + u8 model, family, stepping; if (__get_cpuid (1, &eax, &ebx, &ecx, &edx) == 0) return format (s, "unknown (missing cpuid)"); model = ((eax >> 4) & 0x0f) | ((eax >> 12) & 0xf0); family = (eax >> 8) & 0x0f; + stepping = eax & 0x0f; -#define _(f,m,a,c) if ((model == m) && (family == f)) return format(s, "%s (%s)", a, c); +#define _(f,m,a,c) if ((model == m) && (family == f)) return \ +format(s, "[0x%x] %s ([0x%02x] %s) stepping 0x%x", f, a, m, c, stepping); foreach_x86_cpu_uarch #undef _ return format (s, "unknown (family 0x%02x model 0x%02x)", family, model);