]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
intel_rdt: Updated list of supported RDT events
authorMichał Aleksiński <michal.aleksinski@mobica.com>
Tue, 26 Mar 2024 15:27:41 +0000 (16:27 +0100)
committerMichał Aleksiński <michal.aleksinski@mobica.com>
Tue, 26 Mar 2024 15:31:40 +0000 (16:31 +0100)
src/intel_rdt.c

index fe39872b1d29559fc029001ca5d76d15d3324400..090cbb3e4a4e9ca47a02a21bcfd1e11200cf1fd5 100644 (file)
 
 #define RDT_PLUGIN "intel_rdt"
 
-#if PQOS_VERSION >= 40400
-#define RDT_EVENTS                                                             \
-  (PQOS_MON_EVENT_L3_OCCUP | PQOS_PERF_EVENT_IPC | PQOS_MON_EVENT_LMEM_BW |    \
-   PQOS_MON_EVENT_TMEM_BW | PQOS_MON_EVENT_RMEM_BW | PQOS_PERF_EVENT_LLC_REF | \
-   PQOS_PERF_EVENT_LLC_MISS)
-#else
-#define RDT_EVENTS                                                             \
+#define RDT_EVENTS_BASE                                                        \
   (PQOS_MON_EVENT_L3_OCCUP | PQOS_PERF_EVENT_IPC | PQOS_MON_EVENT_LMEM_BW |    \
    PQOS_MON_EVENT_TMEM_BW | PQOS_MON_EVENT_RMEM_BW | PQOS_PERF_EVENT_LLC_MISS)
+
+#if PQOS_VERSION >= 40400
+#define RDT_EVENTS (RDT_EVENTS_BASE | PQOS_PERF_EVENT_LLC_REF)
+#else
+#define RDT_EVENTS RDT_EVENTS_BASE
 #endif
 
 #define RDT_MAX_SOCKETS 8