Support watch() and unwatch() in RDC module framework

The framework now supports watch() and unwatch(), which can be used
by the telemetry library to init events or pre-fetch fields when recording
starts.
* A new header file RdcTelemetryLibInterface.h is defined for library to
  include it.
* The RdcWatchTable will not talk to RdcMetricFetcher directly anymore.
  It will call the framework watch/unwatch to dispatch it to the libraries.
* Make the python binding consistent with the current code.

Change-Id: Ie5731d920ed5928f901369d60c23bd450807a562


[ROCm/rdc commit: 151520b97e]
Αυτή η υποβολή περιλαμβάνεται σε:
Bill(Shuzhou) Liu
2020-09-15 14:53:04 -04:00
γονέας fbd87a499f
υποβολή 753d5fed6d
13 αρχεία άλλαξαν με 266 προσθήκες και 80 διαγραφές
@@ -83,10 +83,8 @@ class RdcWatchTableImpl : public RdcWatchTable {
//!< once per second.
rdc_status_t rdc_field_update_all() override;
// TODO(bill_liu): Remove the RdcMetricFetcherPtr
RdcWatchTableImpl(const RdcGroupSettingsPtr& group_settings,
const RdcCacheManagerPtr& cache_mgr,
const RdcMetricFetcherPtr& metric_fetcher,
const RdcModuleMgrPtr& module_mgr);
private:
@@ -116,7 +114,6 @@ class RdcWatchTableImpl : public RdcWatchTable {
RdcGroupSettingsPtr group_settings_;
RdcCacheManagerPtr cache_mgr_;
RdcMetricFetcherPtr metric_fetcher_;
RdcModuleMgrPtr rdc_module_mgr_;
//!< The watch table to store the watch settings.