Update include/rocprofiler and lib/rocprofiler (#166)

- renamed inconsistent callback tracing types
- updated HIP and Marker API data structures (resemble HSA)
- cleaned up api_args.h and api_id.h headers
- cleaned up hsa.h, hip.h, and marker.h headers
- update to use (more consistent) name changes
- update code object data structs
- ROCPROFILER_SERVICE_CALLBACK_PHASE_{LOAD,UNLOAD} equivalent to ENTER, EXIT respectively

[ROCm/rocprofiler-sdk commit: cfbea0e5eb]
This commit is contained in:
Jonathan R. Madsen
2023-10-31 12:48:24 -05:00
committed by GitHub
parent a276ef5fcf
commit e4ebd5a22a
14 changed files with 147 additions and 130 deletions
@@ -24,27 +24,3 @@
#include <rocprofiler/hip/api_args.h>
#include <rocprofiler/hip/api_id.h>
#include <stdint.h>
typedef struct rocprofiler_hip_trace_data_s rocprofiler_hip_trace_data_t;
typedef struct rocprofiler_hip_api_data_s rocprofiler_hip_api_data_t;
struct rocprofiler_hip_api_data_s
{
uint64_t correlation_id;
uint32_t phase;
rocprofiler_hip_api_args_t args;
uint64_t* phase_data;
};
struct rocprofiler_hip_trace_data_s
{
rocprofiler_hip_api_data_t api_data;
uint64_t phase_enter_timestamp;
uint64_t phase_exit_timestamp;
uint64_t phase_data;
void (*phase_enter)(rocprofiler_hip_api_id_t operation_id, rocprofiler_hip_trace_data_t* data);
void (*phase_exit)(rocprofiler_hip_api_id_t operation_id, rocprofiler_hip_trace_data_t* data);
};