Implement PMC AcquireTrace
Existing code uses lockf to ensure exclusive PMC access of one process and
one TraceId. However Thunk spec allows hsaKmtPmcAcquireTraceAccess to get
exclusive access to the defined set of counters, not exclusive to one
process or one TraceId. Multiple counter sets of multiple TraceIds is
allowed if they meet the concurrent access limit evaluated by the hardware
/driver.
Change-Id: I59cacb855a707fe326a4070452fcbbd3c95ac223
[ROCm/ROCR-Runtime commit: 1025579c0b]
This commit is contained in:
@@ -45,6 +45,7 @@ struct perf_counter_block {
|
||||
|
||||
HSAKMT_STATUS alloc_pmc_blocks(void);
|
||||
void free_pmc_blocks(void);
|
||||
uint32_t pmc_table_get_max_concurrent(int block_id);
|
||||
|
||||
HSAKMT_STATUS
|
||||
get_block_properties(uint32_t node_id,
|
||||
|
||||
Reference in New Issue
Block a user