diff options
author | Dave Barach <dave@barachs.net> | 2018-12-17 15:55:52 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-12-17 23:12:54 +0000 |
commit | bef3619d259b43f4bf4bfd43db1338ddb10a8c39 (patch) | |
tree | 5a71176c9a241c75de2dbd04bedd5f9c78ccffe9 /src/plugins/perfmon/parse_util.c | |
parent | 82b22f75b903adf6323c1aeb35f1ba2884d1ce87 (diff) |
Improve perfmon json table picker
Built a tool to chew up https://download.01.org/perfmon/mapfile.csv,
and output a table in this format:
typedef struct {
u8 model;
u8 stepping;
u8 has_stepping;
char *filename;
} file_by_model_and_stepping_t;
static const file_by_model_and_stepping_t fms_table [] =
{
/* model, stepping, stepping valid, file */
{ 0x2E, 0x0, 0, "NehalemEX_core_V2.json" },
{ 0x1E, 0x0, 0, "NehalemEP_core_V2.json" },
<snip>
{ 0x55, 0x5, 1, "cascadelakex_core_v1.00.json" },
{ 0x55, 0x6, 1, "cascadelakex_core_v1.00.json" },
{ 0x55, 0x7, 1, "cascadelakex_core_v1.00.json" },
<snip>
Change-Id: Ie0e8a7e851799e9d060b966047745039c066ec7b
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/perfmon/parse_util.c')
-rw-r--r-- | src/plugins/perfmon/parse_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/perfmon/parse_util.c b/src/plugins/perfmon/parse_util.c index 6abb645a714..8c9e9be59f5 100644 --- a/src/plugins/perfmon/parse_util.c +++ b/src/plugins/perfmon/parse_util.c @@ -69,7 +69,8 @@ perfmon_parse_table (perfmon_main_t * pm, char *path, char *table_name) if (error) { vlib_log_err (pm->log_class, - "Failed to read CPU-specific counter table"); + "Failed to read CPU-specific counter table %s", + json_filename); vlib_log_err (pm->log_class, "Please install the vpp-dev package and then:"); vlib_log_err |