rocprofiler-sdk-roctx/api_trace.h File Reference

rocprofiler-sdk-roctx/api_trace.h File Reference#

ROCTx Developer API: rocprofiler-sdk-roctx/api_trace.h File Reference
ROCTx Developer API 0.6.0
ROCm Profiling API and tools
api_trace.h File Reference
#include "rocprofiler-sdk-roctx/defines.h"
#include "rocprofiler-sdk-roctx/types.h"
#include "rocprofiler-sdk-roctx/version.h"
#include <sched.h>
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for api_trace.h:

Go to the source code of this file.

Data Structures

struct  roctxCoreApiTable_t
 
struct  roctxControlApiTable_t
 
struct  roctxNameApiTable_t
 

Macros

#define ROCTX_API_TABLE_VERSION_MAJOR   0
 
#define ROCTX_API_TABLE_VERSION_STEP   0
 
#define ROCTX_CORE_API_TABLE_VERSION_MAJOR   0
 
#define ROCTX_CORE_API_TABLE_VERSION_STEP   0
 
#define ROCTX_CONTROL_API_TABLE_VERSION_MAJOR   0
 
#define ROCTX_CONTROL_API_TABLE_VERSION_STEP   0
 
#define ROCTX_RESOURCE_API_TABLE_VERSION_MAJOR   0
 
#define ROCTX_RESOURCE_API_TABLE_VERSION_STEP   0
 

Typedefs

typedef uint64_t roctx_range_id_t
 
typedef void(* roctxMarkA_fn_t) (const char *message)
 
typedef int(* roctxRangePushA_fn_t) (const char *message)
 
typedef int(* roctxRangePop_fn_t) (void)
 
typedef roctx_range_id_t(* roctxRangeStartA_fn_t) (const char *message)
 
typedef void(* roctxRangeStop_fn_t) (roctx_range_id_t id)
 
typedef int(* roctxProfilerPause_fn_t) (roctx_thread_id_t tid)
 
typedef int(* roctxProfilerResume_fn_t) (roctx_thread_id_t tid)
 
typedef int(* roctxNameOsThread_fn_t) (const char *name)
 
typedef int(* roctxNameHsaAgent_fn_t) (const char *name, const struct hsa_agent_s *agent)
 
typedef int(* roctxNameHipDevice_fn_t) (const char *name, int device_id)
 
typedef int(* roctxNameHipStream_fn_t) (const char *name, const struct ihipStream_t *stream)
 
typedef int(* roctxGetThreadId_fn_t) (roctx_thread_id_t *tid)
 

Data Structure Documentation

◆ roctxCoreApiTable_t

struct roctxCoreApiTable_t

Definition at line 61 of file api_trace.h.

+ Collaboration diagram for roctxCoreApiTable_t:
Data Fields
roctxGetThreadId_fn_t roctxGetThreadId_fn
roctxMarkA_fn_t roctxMarkA_fn
roctxRangePop_fn_t roctxRangePop_fn
roctxRangePushA_fn_t roctxRangePushA_fn
roctxRangeStartA_fn_t roctxRangeStartA_fn
roctxRangeStop_fn_t roctxRangeStop_fn
uint64_t size

◆ roctxControlApiTable_t

struct roctxControlApiTable_t

Definition at line 72 of file api_trace.h.

+ Collaboration diagram for roctxControlApiTable_t:
Data Fields
roctxProfilerPause_fn_t roctxProfilerPause_fn
roctxProfilerResume_fn_t roctxProfilerResume_fn
uint64_t size

◆ roctxNameApiTable_t

struct roctxNameApiTable_t

Definition at line 79 of file api_trace.h.

+ Collaboration diagram for roctxNameApiTable_t:
Data Fields
roctxNameHipDevice_fn_t roctxNameHipDevice_fn
roctxNameHipStream_fn_t roctxNameHipStream_fn
roctxNameHsaAgent_fn_t roctxNameHsaAgent_fn
roctxNameOsThread_fn_t roctxNameOsThread_fn
uint64_t size

Macro Definition Documentation

◆ ROCTX_API_TABLE_VERSION_MAJOR

#define ROCTX_API_TABLE_VERSION_MAJOR   0

Definition at line 35 of file api_trace.h.

◆ ROCTX_API_TABLE_VERSION_STEP

#define ROCTX_API_TABLE_VERSION_STEP   0

Definition at line 36 of file api_trace.h.

◆ ROCTX_CONTROL_API_TABLE_VERSION_MAJOR

#define ROCTX_CONTROL_API_TABLE_VERSION_MAJOR   0

Definition at line 41 of file api_trace.h.

◆ ROCTX_CONTROL_API_TABLE_VERSION_STEP

#define ROCTX_CONTROL_API_TABLE_VERSION_STEP   0

Definition at line 42 of file api_trace.h.

◆ ROCTX_CORE_API_TABLE_VERSION_MAJOR

#define ROCTX_CORE_API_TABLE_VERSION_MAJOR   0

Definition at line 38 of file api_trace.h.

◆ ROCTX_CORE_API_TABLE_VERSION_STEP

#define ROCTX_CORE_API_TABLE_VERSION_STEP   0

Definition at line 39 of file api_trace.h.

◆ ROCTX_RESOURCE_API_TABLE_VERSION_MAJOR

#define ROCTX_RESOURCE_API_TABLE_VERSION_MAJOR   0

Definition at line 44 of file api_trace.h.

◆ ROCTX_RESOURCE_API_TABLE_VERSION_STEP

#define ROCTX_RESOURCE_API_TABLE_VERSION_STEP   0

Definition at line 45 of file api_trace.h.

Typedef Documentation

◆ roctx_range_id_t

typedef uint64_t roctx_range_id_t

Definition at line 47 of file api_trace.h.

◆ roctxGetThreadId_fn_t

typedef int(* roctxGetThreadId_fn_t) (roctx_thread_id_t *tid)

Definition at line 59 of file api_trace.h.

◆ roctxMarkA_fn_t

typedef void(* roctxMarkA_fn_t) (const char *message)

Definition at line 48 of file api_trace.h.

◆ roctxNameHipDevice_fn_t

typedef int(* roctxNameHipDevice_fn_t) (const char *name, int device_id)

Definition at line 57 of file api_trace.h.

◆ roctxNameHipStream_fn_t

typedef int(* roctxNameHipStream_fn_t) (const char *name, const struct ihipStream_t *stream)

Definition at line 58 of file api_trace.h.

◆ roctxNameHsaAgent_fn_t

typedef int(* roctxNameHsaAgent_fn_t) (const char *name, const struct hsa_agent_s *agent)

Definition at line 56 of file api_trace.h.

◆ roctxNameOsThread_fn_t

typedef int(* roctxNameOsThread_fn_t) (const char *name)

Definition at line 55 of file api_trace.h.

◆ roctxProfilerPause_fn_t

typedef int(* roctxProfilerPause_fn_t) (roctx_thread_id_t tid)

Definition at line 53 of file api_trace.h.

◆ roctxProfilerResume_fn_t

typedef int(* roctxProfilerResume_fn_t) (roctx_thread_id_t tid)

Definition at line 54 of file api_trace.h.

◆ roctxRangePop_fn_t

typedef int(* roctxRangePop_fn_t) (void)

Definition at line 50 of file api_trace.h.

◆ roctxRangePushA_fn_t

typedef int(* roctxRangePushA_fn_t) (const char *message)

Definition at line 49 of file api_trace.h.

◆ roctxRangeStartA_fn_t

typedef roctx_range_id_t(* roctxRangeStartA_fn_t) (const char *message)

Definition at line 51 of file api_trace.h.

◆ roctxRangeStop_fn_t

typedef void(* roctxRangeStop_fn_t) (roctx_range_id_t id)

Definition at line 52 of file api_trace.h.