Add new init and destroy API for RAS library.
RAS library will provide two new APIs: rdc_status_t rdc_module_init(uint64_t flags); rdc_status_t rdc_module_destroy(); When RDC load the librdc_ras.so, it will call rdc_module_init(). When RDC exit, it will call rdc_module_destroy() Change-Id: I7f5c81fd19a45a906c3c339cd6eabee2277f27ca
Этот коммит содержится в:
@@ -53,11 +53,16 @@ class RdcRasLib: public RdcTelemetry {
|
||||
|
||||
explicit RdcRasLib(const char* lib_name);
|
||||
|
||||
~RdcRasLib();
|
||||
|
||||
private:
|
||||
RdcLibraryLoader lib_loader_;
|
||||
rdc_status_t (*fields_value_get_)(rdc_gpu_field_t*,
|
||||
uint32_t, rdc_field_value_f, void*);
|
||||
rdc_status_t (*fields_query_)(uint32_t[MAX_NUM_FIELDS], uint32_t*);
|
||||
|
||||
rdc_status_t (*rdc_module_init_)(uint64_t);
|
||||
rdc_status_t (*rdc_module_destroy_)();
|
||||
};
|
||||
typedef std::shared_ptr<RdcRasLib> RdcRasLibPtr;
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user