Adding Plugin Interface

- Add roctracer plugins hooks
- Add Roctracer plugin environment variable
- Add the plugin class
- Add the plugin implementation

Change-Id: I12ee2e2be035abac14864764fb76837a4533cf60
This commit is contained in:
Ammar ELWazir
2022-08-08 19:20:32 -05:00
bovenliggende 591db0b718
commit 1c7c5cc112
9 gewijzigde bestanden met toevoegingen van 406 en 162 verwijderingen
+25
Bestand weergeven
@@ -0,0 +1,25 @@
################################################################################
## Copyright (c) 2022 Advanced Micro Devices, Inc.
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to
## deal in the Software without restriction, including without limitation the
## rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
## sell copies of the Software, and to permit persons to whom the Software is
## furnished to do so, subject to the following conditions:
##
## The above copyright notice and this permission notice shall be included in
## all copies or substantial portions of the Software.
##
## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
## AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
## IN THE SOFTWARE.
################################################################################
# Uncomment the following lines to add new plugin
# Replace <NAME_OF_THE_PLUGIN> with the name of the plugin
# add_subdirectory(<NAME_OF_THE_PLUGIN>)
+7
Bestand weergeven
@@ -0,0 +1,7 @@
{
global: roctracer_plugin_initialize;
roctracer_plugin_finalize;
roctracer_plugin_write_callback_record;
roctracer_plugin_write_activity_records;
local: *;
};