Skip to content

Commit

Permalink
Add additional guards for branches that should exclude Ioctl-based mo…
Browse files Browse the repository at this point in the history
…nitors (Xilinx#7091)
  • Loading branch information
jvillarre authored Oct 6, 2022
1 parent d37388e commit f949c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime_src/xdp/profile/device/device_intf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "tracedefs.h"

#ifndef _WIN32
#ifndef SKIP_IOCTL
// open+ioctl based Profile IP
#include "ioctl_monitors/ioctl_aim.h"
#include "ioctl_monitors/ioctl_am.h"
Expand All @@ -32,6 +33,7 @@
#include "ioctl_monitors/ioctl_traceS2MM.h"
#include "ioctl_monitors/ioctl_aieTraceS2MM.h"
#include "ioctl_monitors/ioctl_add.h"
#endif

// open+mmap based Profile IP
#include "mmapped_monitors/mmapped_aim.h"
Expand Down Expand Up @@ -679,6 +681,7 @@ DeviceIntf::~DeviceIntf()
}
}
}
#ifndef SKIP_IOCTL
else if (xrt_core::system::monitor_access_type::ioctl == accessType) {
for(uint64_t i = 0; i < map->m_count; i++ ) {
switch(map->m_debug_ip_data[i].m_type) {
Expand Down Expand Up @@ -782,6 +785,7 @@ DeviceIntf::~DeviceIntf()
}
}
}
#endif
else {
// other access types not supported yet
}
Expand Down

0 comments on commit f949c6c

Please sign in to comment.