Plugin Intel PMU Tests
This page contains tests instructions for the Intel PMU plugin. This page is meant to aid in testing at release time and be a guide for developing automated tests. Please add any tests that you have run when testing this plugin.
These tests are specified by the high level design guide in Barometer. They are run manually.
Summary |
collectd.conf |
Steps |
Results |
|
---|---|---|---|---|
1 |
Verify intel_pmu compilation is skipped and collectd is successfully compiled and installed when jevents is installed without cFPIC flag |
n/a |
|
Collectd compilation fails and intel_pmu plugin compilation is not skipped. |
2 |
Verify intel_pmu compilation is not skipped and collectd is successfully compiled and installed when jevents is installed with cFPIC flag - |
n/a |
|
Collectd installation is completed and intel_pmu is compiled successfully. |
3 |
Verify only HWCacheEvents is collected when related field is set to True. |
|
|
HWCacheEvents are collected. |
4 |
Verify only KernelPMUEvents is collected when related field is set to True. |
|
|
KernelPMUEvents are collectd. |
5 |
Verify only SWEvents is collected when related field is set to True. |
|
|
SWEvents are collected. |
6 |
Verify only HWSpecificEvents is collected when related field is set to specific values. |
|
|
|
7 |
Verify that all metrics are collected when all fields have enabled flags. |
|
|
Make sure that events related to HWCacheEvents , KernelPMUEvents, SWEvents, HWSpecificEvents are collected. |
8 |
Verify number of counters for HWCacheEvents matches number of events defined in OPNFV metrics page. |
|
|
Number of counters for HWCacheEvents matches number of events defined in OPNFV metrics page. |
9 |
Verify number of counters for KernelPMUEvents matches number of events defined in OPNFV metrics page. |
|
|
Number of counters for KernelPMUEvents matches number of events defined in OPNFV metrics page. |
10 |
Verify number of counters for SWEvents matches number of events defined in OPNFV metrics page. |
|
|
Number of counters for SWEvents matches number of events defined in OPNFV metrics page. PASS |
11 |
Verify that HWCacheEvents counters are incremented. |
|
|
|
12 |
Verify that KernelPMUEvents counters are incremented. |
|
|
|
13 |
Verify that SWEvents counters are incremented. |
|
|
|
14 |
Verify that HWSpecificEvents counters are incremented. |
|
|
|
15 |
Verify values reported for HWCacheEvents are in range of actual values reported by perf tool. |
|
|
|
16 |
Verify values reported for KernelPMUEvents are in range of actual values reported by perf tool. |
|
|
|
17 |
Verify values reported for SWEvents are in range of actual values reported by perf tool |
|
|
|
18 |
Verify values reported for HWSpecificEvents are in range of actual values reported by perf tool |
|
|
|
19 |
Verify intel_pmu counters are reported per each core and per all cores |
|
|
|
20 |
Verify intel_pmu counters are not reported for unsupported events per core and per all cores. |
|
|
Unsupported events are collected per all cores. |
21 |
Config-less testing - invalid HWCacheEvents field |
|
Values to test = ['None', '', '1', 'incorrect']
|
|
22 |
Config-less testing - invalid KernelPMUEventsfield |
|
Values to test = ['None', '', '1', 'incorrect']
|
|
23 |
Config-less testing - invalid SWEventsfield |
|
Values to test = ['None', '', '1', 'incorrect']
|
|
24 |
Config-less testing - invalid HWSpecificEventsfield |
|
Values to test = ['']
|
|
25 |
Config-less testing - invalid field name |
|
Values to test = ['None', '', '1', 'true']
|