Adds support for RSMI event counters. This also includes
"macro" or "pseudo" events, in which an event value is
obtained from RSMI, followed by some post processing before
being displayed in rdci.

Aside from the support of new fields, the main update here
is to introduce an initialization and "shutdown" call for
new fields that will require this.

Also, includes some modifications to the rdci dmon list
command:
* in rdc_field_data.data, added the ability to specify whether
  a field should be hidden or not, by default. This will
  allow us to support many fields, even those that are not
  typically of interest (but sometimes may be), without
  confusing the user or unnecessary clutter.
* added a --list-all option which lists all available field
  including the more obscure fields.

Change-Id: I01dd0edea963c12f82c6e44f893a390711ef3e83
Αυτή η υποβολή περιλαμβάνεται σε:
Chris Freehill
2020-08-16 10:38:41 -05:00
γονέας 9c7a1347ea
υποβολή d7c9625fc6
14 αρχεία άλλαξαν με 444 προσθήκες και 42 διαγραφές
@@ -346,6 +346,16 @@ const char* rdc_status_string(rdc_status_t result) {
return "The value already exists";
case RDC_ST_CLIENT_ERROR:
return "RDC Client error";
case RDC_ST_INSUFF_RESOURCES:
return "Not enough resources to complete operation";
case RDC_ST_FILE_ERROR:
return "Failed to access a file";
case RDC_ST_NO_DATA:
return "Data was requested, but none was found";
case RDC_ST_PERM_ERROR:
return "Insufficient permission to complete operation";
case RDC_ST_UNKNOWN_ERROR:
return "Unknown error";
default:
return "Unknown";
}