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).


[ROCm/rocprofiler-sdk commit: 34897d318f]
This commit is contained in:
Benjamin Welton
2024-07-12 16:20:33 -07:00
کامیت شده توسط GitHub
والد 40e85cadd8
کامیت cc30e4830d
13فایلهای تغییر یافته به همراه4202 افزوده شده و 734 حذف شده
+15
مشاهده پرونده
@@ -126,6 +126,21 @@ if(NOT TARGET PTL::ptl-static)
add_subdirectory(ptl EXCLUDE_FROM_ALL)
endif()
rocprofiler_checkout_git_submodule(
RECURSIVE
RELATIVE_PATH external/yaml-cpp
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
REPO_URL https://github.com/jbeder/yaml-cpp.git
REPO_BRANCH "master")
add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL)
target_link_libraries(rocprofiler-yaml-cpp
INTERFACE $<BUILD_INTERFACE:yaml-cpp::yaml-cpp>)
target_include_directories(
rocprofiler-yaml-cpp
INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/external/yaml-cpp/include>)
# checkout submodule if not already checked out or clone repo if no .gitmodules file
rocprofiler_checkout_git_submodule(
RECURSIVE
فروخته شده Submodule
+1
Submodule projects/rocprofiler-sdk/external/yaml-cpp added at 1d8ca1f35e