Add event counter support

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
This commit is contained in:
Chris Freehill committed 2020-08-17 19:45:18 -04:00
1 parent 9c7a1347ea
commit d7c9625fc6
14 files changed
+444 -42

No files matched your search

+1
Vedi File
@@ -49,6 +49,7 @@ class RdciDmonSubSystem: public RdciSubSystem {
DMON_UNKNOWN = 0,
DMON_HELP,
DMON_LIST_FIELDS,
DMON_LIST_ALL_FIELDS,
DMON_MONITOR
} dmon_ops_;