Skip to content

Commit

Permalink
Added ve2 events under ifdef (#8729)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthash0804 authored Jan 29, 2025
1 parent 9e7e75a commit 3c58f93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,17 @@ namespace xdp::aie::profile {
XAIE_EVENT_PORT_IDLE_0_PL};
eventSets["output_stalls"] = {XAIE_EVENT_PORT_STALLED_0_PL,
XAIE_EVENT_PORT_IDLE_0_PL};
}
else if (hwGen == 5){
}
#ifdef XDP_VE2_BUILD
else if (hwGen == 5) {
eventSets["input_stalls"] = {XAIE_EVENT_NOC0_DMA_MM2S_0_STREAM_BACKPRESSURE_PL,
XAIE_EVENT_NOC0_DMA_MM2S_0_MEMORY_STARVATION_PL};
eventSets["output_stalls"] = {XAIE_EVENT_NOC0_DMA_S2MM_0_MEMORY_BACKPRESSURE_PL,
XAIE_EVENT_NOC0_DMA_S2MM_0_STALLED_LOCK_PL};
eventSets["input_throughputs"] = {XAIE_EVENT_NOC0_GROUP_DMA_ACTIVITY_PL, XAIE_EVENT_PORT_RUNNING_0_PL};
eventSets["output_throughputs"] = {XAIE_EVENT_NOC0_GROUP_DMA_ACTIVITY_PL, XAIE_EVENT_PORT_RUNNING_0_PL};
}
}
#endif
else {
eventSets["input_stalls"] = {XAIE_EVENT_DMA_MM2S_0_STREAM_BACKPRESSURE_PL,
XAIE_EVENT_DMA_MM2S_0_MEMORY_STARVATION_PL};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ namespace xdp::aie::trace {
XAIE_EVENT_DMA_S2MM_1_START_BD_PL, XAIE_EVENT_DMA_S2MM_1_FINISHED_BD_PL,
XAIE_EVENT_DMA_S2MM_1_STALLED_LOCK_ACQUIRE_PL};
}
#ifdef XDP_VE2_BUILD
else if (hwGen == 5) {
eventSets["input_ports_details"] = {
XAIE_EVENT_NOC0_DMA_MM2S_0_START_TASK_PL, XAIE_EVENT_NOC0_DMA_MM2S_0_FINISHED_BD_PL,
Expand All @@ -255,6 +256,7 @@ namespace xdp::aie::trace {
XAIE_EVENT_NOC0_DMA_S2MM_0_FINISHED_TASK_PL, XAIE_EVENT_NOC0_DMA_S2MM_0_STALLED_LOCK_PL,
XAIE_EVENT_NOC0_DMA_S2MM_0_STREAM_STARVATION_PL, XAIE_EVENT_NOC0_DMA_S2MM_0_MEMORY_BACKPRESSURE_PL};
}
#endif
else {
eventSets["input_ports_details"] = {
XAIE_EVENT_DMA_MM2S_0_START_TASK_PL, XAIE_EVENT_DMA_MM2S_0_FINISHED_BD_PL,
Expand Down

0 comments on commit 3c58f93

Please sign in to comment.