• Len Brown's avatar
    tools/power turbostat: bugfix: --add u32 was printed as u64 · 5f3aea57
    Len Brown authored
    When the "u32" keyword is used with --add, it means that
    the output should be truncated to 32-bits.  This was not
    happening and all 64-bits were printed.
    
    Also, when no column name was used for an added MSR,
    The default column name was in deximal, eg. MSR16.
    Users report that they tend to use hex MSR numbers,
    so print them in hex.  To always fit into the columns,
    use the syntax M0x10.  Note that the user can always
    supply any column header that they want.
    
    eg --add msr0x10,MY_TSC
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    5f3aea57
turbostat.c 131 KB