summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-12-11 18:52:34 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-12-18 17:20:28 +0000
commitf5b27cbcc7cae5279aac512f805be73591f58eaa (patch)
treeca75c870dc703ee51c8d6aa13d1fa48334203845
parent25f371ee0e8b0bca41b3eefe55a6daf8b9560ea6 (diff)
misc: deprecate old perfmon
Type: refactor Change-Id: I1303219f9f2a25d821737665903b0264edd3de32 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--MAINTAINERS5
-rw-r--r--extras/deprecated/perfmon/CMakeLists.txt (renamed from src/plugins/perfmon/CMakeLists.txt)0
-rwxr-xr-xextras/deprecated/perfmon/intel_json_to_c.py (renamed from src/plugins/perfmon/intel_json_to_c.py)0
-rw-r--r--extras/deprecated/perfmon/mapfile_tool.c (renamed from src/plugins/perfmon/mapfile_tool.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon.c (renamed from src/plugins/perfmon/perfmon.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon.h (renamed from src/plugins/perfmon/perfmon.h)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel.h (renamed from src/plugins/perfmon/perfmon_intel.h)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_bdw.c (renamed from src/plugins/perfmon/perfmon_intel_bdw.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_bdw_de.c (renamed from src/plugins/perfmon/perfmon_intel_bdw_de.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_bdx.c (renamed from src/plugins/perfmon/perfmon_intel_bdx.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_bnl.c (renamed from src/plugins/perfmon/perfmon_intel_bnl.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_clx.c (renamed from src/plugins/perfmon/perfmon_intel_clx.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_hsw.c (renamed from src/plugins/perfmon/perfmon_intel_hsw.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_hsx.c (renamed from src/plugins/perfmon/perfmon_intel_hsx.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_ivb.c (renamed from src/plugins/perfmon/perfmon_intel_ivb.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_nhm_ep.c (renamed from src/plugins/perfmon/perfmon_intel_nhm_ep.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_nhm_ex.c (renamed from src/plugins/perfmon/perfmon_intel_nhm_ex.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_skl.c (renamed from src/plugins/perfmon/perfmon_intel_skl.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_skx.c (renamed from src/plugins/perfmon/perfmon_intel_skx.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_slm.c (renamed from src/plugins/perfmon/perfmon_intel_slm.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_snb.c (renamed from src/plugins/perfmon/perfmon_intel_snb.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_wsm_ep_dp.c (renamed from src/plugins/perfmon/perfmon_intel_wsm_ep_dp.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_wsm_ep_sp.c (renamed from src/plugins/perfmon/perfmon_intel_wsm_ep_sp.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_intel_wsm_ex.c (renamed from src/plugins/perfmon/perfmon_intel_wsm_ex.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_periodic.c (renamed from src/plugins/perfmon/perfmon_periodic.c)0
-rw-r--r--extras/deprecated/perfmon/perfmon_plugin.c (renamed from src/plugins/perfmon/perfmon_plugin.c)0
-rw-r--r--src/vlib/main.h1
-rw-r--r--src/vppinfra/CMakeLists.txt1
-rw-r--r--src/vppinfra/pmc.h46
-rw-r--r--test/test_vlib.py1
30 files changed, 0 insertions, 54 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index f3cd8ab4d01..19a5763ad57 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -461,11 +461,6 @@ I: marvell
M: Damjan Marion <damarion@cisco.com>
F: src/plugins/marvell/
-Plugin - performance counter
-I: perfmon
-M: Dave Barach <vpp@barachs.net>
-F: src/plugins/perfmon/
-
Plugin - PPPoE
I: pppoe
M: Hongjun Ni <hongjun.ni@intel.com>
diff --git a/src/plugins/perfmon/CMakeLists.txt b/extras/deprecated/perfmon/CMakeLists.txt
index 69e225b4a3f..69e225b4a3f 100644
--- a/src/plugins/perfmon/CMakeLists.txt
+++ b/extras/deprecated/perfmon/CMakeLists.txt
diff --git a/src/plugins/perfmon/intel_json_to_c.py b/extras/deprecated/perfmon/intel_json_to_c.py
index 6a625ac2c33..6a625ac2c33 100755
--- a/src/plugins/perfmon/intel_json_to_c.py
+++ b/extras/deprecated/perfmon/intel_json_to_c.py
diff --git a/src/plugins/perfmon/mapfile_tool.c b/extras/deprecated/perfmon/mapfile_tool.c
index 750e12b4970..750e12b4970 100644
--- a/src/plugins/perfmon/mapfile_tool.c
+++ b/extras/deprecated/perfmon/mapfile_tool.c
diff --git a/src/plugins/perfmon/perfmon.c b/extras/deprecated/perfmon/perfmon.c
index 28d2f456507..28d2f456507 100644
--- a/src/plugins/perfmon/perfmon.c
+++ b/extras/deprecated/perfmon/perfmon.c
diff --git a/src/plugins/perfmon/perfmon.h b/extras/deprecated/perfmon/perfmon.h
index c8782023597..c8782023597 100644
--- a/src/plugins/perfmon/perfmon.h
+++ b/extras/deprecated/perfmon/perfmon.h
diff --git a/src/plugins/perfmon/perfmon_intel.h b/extras/deprecated/perfmon/perfmon_intel.h
index 475309124ea..475309124ea 100644
--- a/src/plugins/perfmon/perfmon_intel.h
+++ b/extras/deprecated/perfmon/perfmon_intel.h
diff --git a/src/plugins/perfmon/perfmon_intel_bdw.c b/extras/deprecated/perfmon/perfmon_intel_bdw.c
index 10991d523c2..10991d523c2 100644
--- a/src/plugins/perfmon/perfmon_intel_bdw.c
+++ b/extras/deprecated/perfmon/perfmon_intel_bdw.c
diff --git a/src/plugins/perfmon/perfmon_intel_bdw_de.c b/extras/deprecated/perfmon/perfmon_intel_bdw_de.c
index 8d3bb3f47b6..8d3bb3f47b6 100644
--- a/src/plugins/perfmon/perfmon_intel_bdw_de.c
+++ b/extras/deprecated/perfmon/perfmon_intel_bdw_de.c
diff --git a/src/plugins/perfmon/perfmon_intel_bdx.c b/extras/deprecated/perfmon/perfmon_intel_bdx.c
index e79c80b893b..e79c80b893b 100644
--- a/src/plugins/perfmon/perfmon_intel_bdx.c
+++ b/extras/deprecated/perfmon/perfmon_intel_bdx.c
diff --git a/src/plugins/perfmon/perfmon_intel_bnl.c b/extras/deprecated/perfmon/perfmon_intel_bnl.c
index 2089fad8536..2089fad8536 100644
--- a/src/plugins/perfmon/perfmon_intel_bnl.c
+++ b/extras/deprecated/perfmon/perfmon_intel_bnl.c
diff --git a/src/plugins/perfmon/perfmon_intel_clx.c b/extras/deprecated/perfmon/perfmon_intel_clx.c
index 6f3fec950c7..6f3fec950c7 100644
--- a/src/plugins/perfmon/perfmon_intel_clx.c
+++ b/extras/deprecated/perfmon/perfmon_intel_clx.c
diff --git a/src/plugins/perfmon/perfmon_intel_hsw.c b/extras/deprecated/perfmon/perfmon_intel_hsw.c
index 6d02b57ba91..6d02b57ba91 100644
--- a/src/plugins/perfmon/perfmon_intel_hsw.c
+++ b/extras/deprecated/perfmon/perfmon_intel_hsw.c
diff --git a/src/plugins/perfmon/perfmon_intel_hsx.c b/extras/deprecated/perfmon/perfmon_intel_hsx.c
index 741251775d0..741251775d0 100644
--- a/src/plugins/perfmon/perfmon_intel_hsx.c
+++ b/extras/deprecated/perfmon/perfmon_intel_hsx.c
diff --git a/src/plugins/perfmon/perfmon_intel_ivb.c b/extras/deprecated/perfmon/perfmon_intel_ivb.c
index 1a9e8065061..1a9e8065061 100644
--- a/src/plugins/perfmon/perfmon_intel_ivb.c
+++ b/extras/deprecated/perfmon/perfmon_intel_ivb.c
diff --git a/src/plugins/perfmon/perfmon_intel_nhm_ep.c b/extras/deprecated/perfmon/perfmon_intel_nhm_ep.c
index a51381941fc..a51381941fc 100644
--- a/src/plugins/perfmon/perfmon_intel_nhm_ep.c
+++ b/extras/deprecated/perfmon/perfmon_intel_nhm_ep.c
diff --git a/src/plugins/perfmon/perfmon_intel_nhm_ex.c b/extras/deprecated/perfmon/perfmon_intel_nhm_ex.c
index cc8fd31c789..cc8fd31c789 100644
--- a/src/plugins/perfmon/perfmon_intel_nhm_ex.c
+++ b/extras/deprecated/perfmon/perfmon_intel_nhm_ex.c
diff --git a/src/plugins/perfmon/perfmon_intel_skl.c b/extras/deprecated/perfmon/perfmon_intel_skl.c
index b1c03140651..b1c03140651 100644
--- a/src/plugins/perfmon/perfmon_intel_skl.c
+++ b/extras/deprecated/perfmon/perfmon_intel_skl.c
diff --git a/src/plugins/perfmon/perfmon_intel_skx.c b/extras/deprecated/perfmon/perfmon_intel_skx.c
index 9de202d22a3..9de202d22a3 100644
--- a/src/plugins/perfmon/perfmon_intel_skx.c
+++ b/extras/deprecated/perfmon/perfmon_intel_skx.c
diff --git a/src/plugins/perfmon/perfmon_intel_slm.c b/extras/deprecated/perfmon/perfmon_intel_slm.c
index 643453bc906..643453bc906 100644
--- a/src/plugins/perfmon/perfmon_intel_slm.c
+++ b/extras/deprecated/perfmon/perfmon_intel_slm.c
diff --git a/src/plugins/perfmon/perfmon_intel_snb.c b/extras/deprecated/perfmon/perfmon_intel_snb.c
index 5d9b424f4da..5d9b424f4da 100644
--- a/src/plugins/perfmon/perfmon_intel_snb.c
+++ b/extras/deprecated/perfmon/perfmon_intel_snb.c
diff --git a/src/plugins/perfmon/perfmon_intel_wsm_ep_dp.c b/extras/deprecated/perfmon/perfmon_intel_wsm_ep_dp.c
index 2d32a11175d..2d32a11175d 100644
--- a/src/plugins/perfmon/perfmon_intel_wsm_ep_dp.c
+++ b/extras/deprecated/perfmon/perfmon_intel_wsm_ep_dp.c
diff --git a/src/plugins/perfmon/perfmon_intel_wsm_ep_sp.c b/extras/deprecated/perfmon/perfmon_intel_wsm_ep_sp.c
index ad10fe0c0c0..ad10fe0c0c0 100644
--- a/src/plugins/perfmon/perfmon_intel_wsm_ep_sp.c
+++ b/extras/deprecated/perfmon/perfmon_intel_wsm_ep_sp.c
diff --git a/src/plugins/perfmon/perfmon_intel_wsm_ex.c b/extras/deprecated/perfmon/perfmon_intel_wsm_ex.c
index 3406c0c2d81..3406c0c2d81 100644
--- a/src/plugins/perfmon/perfmon_intel_wsm_ex.c
+++ b/extras/deprecated/perfmon/perfmon_intel_wsm_ex.c
diff --git a/src/plugins/perfmon/perfmon_periodic.c b/extras/deprecated/perfmon/perfmon_periodic.c
index de31221f6f4..de31221f6f4 100644
--- a/src/plugins/perfmon/perfmon_periodic.c
+++ b/extras/deprecated/perfmon/perfmon_periodic.c
diff --git a/src/plugins/perfmon/perfmon_plugin.c b/extras/deprecated/perfmon/perfmon_plugin.c
index 1d56573abd5..1d56573abd5 100644
--- a/src/plugins/perfmon/perfmon_plugin.c
+++ b/extras/deprecated/perfmon/perfmon_plugin.c
diff --git a/src/vlib/main.h b/src/vlib/main.h
index adfdc87bf7c..477211d65ce 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -47,7 +47,6 @@
#include <vppinfra/pool.h>
#include <vppinfra/random_buffer.h>
#include <vppinfra/time.h>
-#include <vppinfra/pmc.h>
#include <vppinfra/pcap.h>
#include <pthread.h>
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt
index a972d906769..b83b57e8b89 100644
--- a/src/vppinfra/CMakeLists.txt
+++ b/src/vppinfra/CMakeLists.txt
@@ -150,7 +150,6 @@ set(VPPINFRA_HEADERS
pcap_funcs.h
pmalloc.h
pool.h
- pmc.h
ptclosure.h
random_buffer.h
random.h
diff --git a/src/vppinfra/pmc.h b/src/vppinfra/pmc.h
deleted file mode 100644
index 258b925127d..00000000000
--- a/src/vppinfra/pmc.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2018 Cisco and/or its affiliates.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef included_clib_pmc_h
-#define included_clib_pmc_h
-
-#if defined (__x86_64__)
-
-always_inline u64
-clib_rdpmc (int counter_id)
-{
- u32 a, d;
-
- asm volatile ("rdpmc":"=a" (a), "=d" (d):"c" (counter_id));
- return (u64) a + ((u64) d << (u64) 32);
-}
-
-#else
-always_inline u64
-clib_rdpmc (int counter_id)
-{
- return 0ULL;
-}
-#endif /* __aarch64__ */
-
-#endif /* included_clib_pmc_h */
-
-/*
- * fd.io coding-style-patch-verification: ON
- *
- * Local Variables:
- * eval: (c-set-style "gnu")
- * End:
- */
diff --git a/test/test_vlib.py b/test/test_vlib.py
index 8a02639e76b..89ccb396ecd 100644
--- a/test/test_vlib.py
+++ b/test/test_vlib.py
@@ -50,7 +50,6 @@ class TestVlib(VppTestCase):
"event-logger resize 102400",
"event-logger restart",
"pcap dispatch trace on max 100 buffer-trace pg-input 15",
- "set pmc instructions-per-clock",
"pa en",
"show event-log 100 all",
"event-log save",