@@ -289,10 +289,7 @@ class bo_impl
289289 , size(sz)
290290 {}
291291
292- virtual ~bo_impl ()
293- {
294- XRT_TRACE_POINT_LOG (xrt_bo_dtor);
295- }
292+ virtual ~bo_impl () = default ;
296293
297294 bo_impl (const bo_impl&) = delete;
298295 bo_impl (bo_impl&&) = delete;
@@ -1087,7 +1084,7 @@ alloc_bo(const device_type& device, size_t sz, xrtBufferFlags flags, xrtMemoryGr
10871084static std::shared_ptr<xrt::bo_impl>
10881085alloc_kbuf (const device_type& device, size_t sz, xrtBufferFlags flags, xrtMemoryGroup grp)
10891086{
1090- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_kbuf_ctor );
1087+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_kbuf );
10911088 auto handle = alloc_bo (device, sz, flags, grp);
10921089 auto boh = std::make_shared<xrt::buffer_kbuf>(device, std::move (handle), sz);
10931090 boh->get_usage_logger ()->log_buffer_info_construct (device->get_device_id (), sz, device.get_hwctx_handle ());
@@ -1097,7 +1094,7 @@ alloc_kbuf(const device_type& device, size_t sz, xrtBufferFlags flags, xrtMemory
10971094static std::shared_ptr<xrt::bo_impl>
10981095alloc_ubuf (const device_type& device, void * userptr, size_t sz, xrtBufferFlags flags, xrtMemoryGroup grp)
10991096{
1100- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_ubuf_ctor );
1097+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_ubuf );
11011098 // On NoDMA platforms a userptr would require userspace management
11021099 // of specified userptr with extra memcpy on sync and copy. If
11031100 // supported then it would hide inefficient application code, so
@@ -1119,7 +1116,7 @@ alloc_ubuf(const device_type& device, void* userptr, size_t sz, xrtBufferFlags f
11191116static std::shared_ptr<xrt::bo_impl>
11201117alloc_hbuf (const device_type& device, xrt_core::aligned_ptr_type&& hbuf, size_t sz, xrtBufferFlags flags, xrtMemoryGroup grp)
11211118{
1122- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_hbuf_ctor );
1119+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_hbuf );
11231120 auto handle = alloc_bo (device, hbuf.get (), sz, flags, grp);
11241121 auto boh = std::make_shared<xrt::buffer_hbuf>(device, std::move (handle), sz, std::move (hbuf));
11251122 boh->get_usage_logger ()->log_buffer_info_construct (device->get_device_id (), sz, device.get_hwctx_handle ());
@@ -1129,7 +1126,7 @@ alloc_hbuf(const device_type& device, xrt_core::aligned_ptr_type&& hbuf, size_t
11291126static std::shared_ptr<xrt::bo_impl>
11301127alloc_dbuf (const device_type& device, size_t sz, xrtBufferFlags, xrtMemoryGroup grp)
11311128{
1132- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_dbuf_ctor );
1129+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_dbuf );
11331130 auto handle = alloc_bo (device, sz, XCL_BO_FLAGS_DEV_ONLY, grp);
11341131 auto boh = std::make_shared<xrt::buffer_dbuf>(device, std::move (handle), sz);
11351132 boh->get_usage_logger ()->log_buffer_info_construct (device->get_device_id (), sz, device.get_hwctx_handle ());
@@ -1139,7 +1136,7 @@ alloc_dbuf(const device_type& device, size_t sz, xrtBufferFlags, xrtMemoryGroup
11391136static std::shared_ptr<xrt::bo_impl>
11401137alloc_nodma (const device_type& device, size_t sz, xrtBufferFlags, xrtMemoryGroup grp)
11411138{
1142- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_nodma_ctor );
1139+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_nodma );
11431140 constexpr size_t align = 64 ;
11441141 if (sz % align)
11451142 throw xrt_core::error (EINVAL, " Invalid buffer size '" + std::to_string (sz) +
@@ -1186,21 +1183,21 @@ alloc(const device_type& device, size_t sz, xrtBufferFlags flags, xrtMemoryGroup
11861183static std::shared_ptr<xrt::bo_impl>
11871184alloc_xbuf (const device_type& device, xcl_buffer_handle xhdl)
11881185{
1189- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_xbuf_ctor );
1186+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_xbuf );
11901187 return std::make_shared<xrt::buffer_xbuf>(device, xhdl);
11911188}
11921189
11931190static std::shared_ptr<xrt::bo_impl>
11941191alloc_userptr (const device_type& device, void * userptr, size_t sz, xrtBufferFlags flags, xrtMemoryGroup grp)
11951192{
1196- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_userptr_ctor );
1193+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_userptr );
11971194 return alloc_ubuf (device, userptr, sz, flags, grp);
11981195}
11991196
12001197static std::shared_ptr<xrt::bo_impl>
12011198alloc_import (const device_type& device, xrt::bo_impl::export_handle ehdl)
12021199{
1203- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_import_ctor );
1200+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_import );
12041201 auto boh = std::make_shared<xrt::buffer_import>(device, ehdl);
12051202 boh->get_usage_logger ()->log_buffer_info_construct (device->get_device_id (), boh->get_size (), device.get_hwctx_handle ());
12061203 return boh;
@@ -1209,7 +1206,7 @@ alloc_import(const device_type& device, xrt::bo_impl::export_handle ehdl)
12091206static std::shared_ptr<xrt::bo_impl>
12101207alloc_import_from_pid (const device_type& device, xrt::pid_type pid, xrt::bo_impl::export_handle ehdl)
12111208{
1212- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_import_from_pid_ctor );
1209+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_import_from_pid );
12131210 auto boh = std::make_shared<xrt::buffer_import>(device, pid, ehdl);
12141211 boh->get_usage_logger ()->log_buffer_info_construct (device->get_device_id (),
12151212 boh->get_size (),
@@ -1220,7 +1217,7 @@ alloc_import_from_pid(const device_type& device, xrt::pid_type pid, xrt::bo_impl
12201217static std::shared_ptr<xrt::bo_impl>
12211218alloc_sub (const std::shared_ptr<xrt::bo_impl>& parent, size_t size, size_t offset)
12221219{
1223- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_sub_ctor );
1220+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_sub );
12241221 auto boh = std::make_shared<xrt::buffer_sub>(parent, size, offset);
12251222 boh->get_usage_logger ()->log_buffer_info_construct (boh->get_core_device ()->get_device_id (),
12261223 boh->get_size (),
@@ -1232,7 +1229,7 @@ alloc_sub(const std::shared_ptr<xrt::bo_impl>& parent, size_t size, size_t offse
12321229static std::shared_ptr<xrt::bo_impl>
12331230alloc_clone (const std::shared_ptr<xrt::bo_impl>& src, xrt::memory_group grp)
12341231{
1235- XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_clone_ctor );
1232+ XRT_TRACE_POINT_SCOPE (xrt_bo_alloc_clone );
12361233 // Same device and flags as src bo
12371234 auto device = src->get_device ();
12381235 auto xflags = static_cast <xrtBufferFlags>(src->get_flags ());
0 commit comments