[PATCH 0/2] gpudev: annotate memory allocation

Stephen Hemminger stephen at networkplumber.org
Fri Oct 18 00:58:02 CEST 2024


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

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  | 10 ++++++++-
 lib/gpudev/rte_gpudev.h | 46 +++++++++++++++++++++--------------------
 2 files changed, 33 insertions(+), 23 deletions(-)

-- 
2.45.2



More information about the dev mailing list