Convert counter def format to YAML (#976)

* Convert counter def format to YAML

Converts counter definition format to YAML with the
following structure:

```yaml
COUNTER_NAME:
 architectures:
  gfxXX: // Can be more than one, / deliminated if they share idential data
    block: <Optional>
    event: <Optional>
    expression: <optional>
    description: <Optional> // In case per arch notes are needed
  gfxYY:
    ...
 description: General counter desctiption
```

All counters (derived and hardware) are now defined
in the same file for ease of future additions/subtractions.

Removes existing XML parser. Keeps the existing XML
definitions for now (since other tools still rely on
its presence).
This commit is contained in:
Benjamin Welton
2024-07-12 16:20:33 -07:00
committed by GitHub
parent 2be3543c7b
commit 34897d318f
13 changed files with 4202 additions and 734 deletions
+1
View File
@@ -54,6 +54,7 @@ rocprofiler_add_interface_library(rocprofiler-elf "ElfUtils elf library" INTERNA
rocprofiler_add_interface_library(rocprofiler-dw "ElfUtils dw library" INTERNAL)
rocprofiler_add_interface_library(rocprofiler-elfio "ELFIO header-only C++ library"
INTERNAL)
rocprofiler_add_interface_library(rocprofiler-yaml-cpp "YAML CPP Parser" INTERNAL)
#
# interface for libraries (ROCm-specific)