Skip to content

gpudev: annotate memory allocation functions

Stephen Hemminger dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2test-gpudev: avoid use-after-free and free-non-heap warningsapp/test-gpudev/main.c+3 -130 replies
2/2gpudev: add malloc annotations to rte_gpu_mem_alloclib/gpudev/rte_gpudev.h+24 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] gpudev: annotate memory allocation functions

Use function attributes to catch misuse of GPU memory at compile time.

v2 - remove test case where invalid pointer was being passed.
The test is now caught at compile time, making a runtime test no longer necessary.

Stephen Hemminger (2):
test-gpudev: avoid use-after-free and free-non-heap warnings
gpudev: add malloc annotations to rte_gpu_mem_alloc

 app/test-gpudev/main.c  | 16 +++-----------
 lib/gpudev/rte_gpudev.h | 46 +++++++++++++++++++++--------------------
 2 files changed, 27 insertions(+), 35 deletions(-)
Signature · 1 line
2.45.2