Use templates for module population

Also add stddef.h workaround for old GCC.
RHEL-8 still uses GCC 8.5 and templates are not well supported.

Change-Id: Ia4dae23892ec63682ea848c46ba81de85cf6d209
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: f9e80cc37a]
Αυτή η υποβολή περιλαμβάνεται σε:
Galantsev, Dmitrii
2023-12-08 19:48:09 -06:00
γονέας 38c60ff90b
υποβολή 703d6c0d44
27 αρχεία άλλαξαν με 135 προσθήκες και 165 διαγραφές
@@ -47,7 +47,7 @@ class RdcTelemetryModule : public RdcTelemetry {
rdc_status_t rdc_telemetry_fields_unwatch(rdc_gpu_field_t* fields, uint32_t fields_count);
explicit RdcTelemetryModule(RdcMetricFetcherPtr fetcher);
explicit RdcTelemetryModule(std::list<RdcTelemetryPtr> telemetry_modules);
private:
//< Helper function to dispatch fields to module