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/CMakeLists.txt | |
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/CMakeLists.txt')
-rw-r--r-- | src/plugins/perfmon/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/perfmon/CMakeLists.txt b/src/plugins/perfmon/CMakeLists.txt index 845dd3cc6c8..340c5608f33 100644 --- a/src/plugins/perfmon/CMakeLists.txt +++ b/src/plugins/perfmon/CMakeLists.txt @@ -23,3 +23,11 @@ install( DESTINATION share/vpp/plugins/perfmon COMPONENT vpp-dev ) + +option(VPP_BUILD_MAPFILE_TOOL "Build perfmon mapfile utility." OFF) +if(VPP_BUILD_MAPFILE_TOOL) + add_vpp_executable(mapfile_tool + SOURCES mapfile_tool.c + LINK_LIBRARIES vppinfra Threads::Threads + ) +endif(VPP_BUILD_MAPFILE_TOOL) |