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
此提交包含在:
Bill(Shuzhou) Liu
2020-09-15 14:53:04 -04:00
父節點 a80454b35d
當前提交 151520b97e
共有 13 個檔案被更改,包括 266 行新增80 行删除
+15
查看文件
@@ -31,6 +31,11 @@ class rdc_status_t(Enum):
RDC_ST_CLIENT_ERROR = 8
RDC_ST_ALREADY_EXIST = 9
RDC_ST_MAX_LIMIT = 10
RDC_ST_INSUFF_RESOURCES = 11
RDC_ST_FILE_ERROR = 12
RDC_ST_NO_DATA = 13
RDC_ST_PERM_ERROR = 14
RDC_ST_UNKNOWN_ERROR = 4294967295
class rdc_operation_mode_t(c_int):
RDC_OPERATION_MODE_AUTO = 0
@@ -62,6 +67,16 @@ class rdc_field_t(c_int):
RDC_FI_GPU_MEMORY_TOTAL = 502
RDC_FI_ECC_CORRECT_TOTAL = 600
RDC_FI_ECC_UNCORRECT_TOTAL = 601
RDC_EVNT_XGMI_0_NOP_TX = 1000
RDC_EVNT_XGMI_0_REQ_TX = 1001
RDC_EVNT_XGMI_0_RESP_TX = 1002
RDC_EVNT_XGMI_0_BEATS_TX = 1003
RDC_EVNT_XGMI_1_NOP_TX = 1004
RDC_EVNT_XGMI_1_REQ_TX = 1005
RDC_EVNT_XGMI_1_RESP_TX = 1006
RDC_EVNT_XGMI_1_BEATS_TX = 1007
RDC_EVNT_XGMI_0_THRPUT = 1500
RDC_EVNT_XGMI_1_THRPUT = 1501
rdc_handle_t = c_void_p
rdc_gpu_group_t = c_uint32