13 #ifndef VT_CUPTI_EVENTS_H
14 #define VT_CUPTI_EVENTS_H
16 #if (defined(VT_CUPTI_EVENTS))
19 #include "vt_inttypes.h"
24 typedef struct vtcuptievtevt_st
26 CUpti_EventID cuptiEvtID;
29 struct vtcuptievtevt_st *next;
36 typedef struct vtcuptievtdev_st
41 vt_cuptievt_evt_t *vtcuptiEvtList;
43 struct vtcuptievtdev_st *next;
49 typedef struct vtcuptievtgrp_st
51 CUpti_EventGroup evtGrp;
52 CUpti_EventID *cuptiEvtIDs;
56 struct vtcuptievtgrp_st *next;
63 typedef struct vtcuptievtctx_st
66 vt_cuptievt_dev_t *vtDevCap;
67 vt_cuptievt_grp_t *vtGrpList;
68 uint64_t *counterData;
69 CUpti_EventID *cuptiEvtIDs;
70 struct vtcuptievtctx_st *next;
77 void vt_cupti_events_init(
void);
82 void vt_cupti_events_finalize(
void);
90 void vt_cuptievt_finalize_device(uint32_t ptid, uint8_t cleanExit);
99 vt_cuptievt_ctx_t* vt_cuptievt_getCurrentContext(uint32_t ptid);
109 void vt_cuptievt_writeCounter(vt_cuptievt_ctx_t *vtcuptiCtx, uint32_t strmid,
119 void vt_cuptievt_resetCounter(vt_cuptievt_ctx_t *vtcuptiCtx, uint32_t strmid,