aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfmon/intel/core.c
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2021-11-26 09:02:20 +0000
committerDamjan Marion <dmarion@me.com>2022-01-27 15:54:02 +0000
commitaedcfaf80c8a7dd55dc2a7d85a0e9bd0d3d97569 (patch)
tree891b0a3b2b12acceab337dbf179a19e073201823 /src/plugins/perfmon/intel/core.c
parenta1175b726d428ab6e67e2fe35514099bffa43bc2 (diff)
perfmon: add cli to show perf config
Added a cli to show Linux perf config for a give perfmon bundle. This makes it easier to format Linux perf commands for next level analysis. Type: improvement Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I9adafa7d441b72120390d186e3c8f884b1bc9828
Diffstat (limited to 'src/plugins/perfmon/intel/core.c')
-rw-r--r--src/plugins/perfmon/intel/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/perfmon/intel/core.c b/src/plugins/perfmon/intel/core.c
index c931c127f67..c59fce81735 100644
--- a/src/plugins/perfmon/intel/core.c
+++ b/src/plugins/perfmon/intel/core.c
@@ -57,6 +57,10 @@ format_intel_core_config (u8 *s, va_list *args)
if ((v = (config >> 24) & 0xff))
s = format (s, ", cmask=0x%02x", v);
+ /* show the raw config, for convenience sake */
+ if (!((config >> 16) & 0xffff))
+ s = format (s, ", raw=r%x", config & 0xffff);
+
return s;
}