Add support to use the field name in rdci

In the rdci dmon and fieldgroup, now the fields can be specified
using either number id or the field name.

When the rdc is async fetching metrics, it will not report that fetch
as an error.

Change-Id: I81331e2c239af987181147be5ac0e29ba1617ab4


[ROCm/rdc commit: d30cb81fdb]
This commit is contained in:
Bill(Shuzhou) Liu
2020-05-19 09:38:50 -04:00
committed by Chris Freehill
orang tua aa0a40f84d
melakukan 0f8f345992
6 mengubah file dengan 60 tambahan dan 12 penghapusan
@@ -43,6 +43,8 @@ class RdciSubSystem {
std::vector<std::string> split_string(const std::string& s,
char delimiter) const;
void show_common_usage() const;
bool get_field_id_from_name(const std::string& name,
uint32_t& value) const; // NOLINT(runtime/references)
rdc_handle_t rdc_handle_;
std::string ip_port_;