From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F3BA45B61; Fri, 18 Oct 2024 00:58:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2CE040268; Fri, 18 Oct 2024 00:58:56 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 705544021E for ; Fri, 18 Oct 2024 00:58:55 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-20ca1b6a80aso13524385ad.2 for ; Thu, 17 Oct 2024 15:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1729205934; x=1729810734; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EKb8doTyuFLonsArLJnRWmGu8L8SSUHzgz7KFyy4tgI=; b=U6plrIvtgDgoDs++zOO05fJcghpCTWVeDIPoEZVTPzf61SZO/YJvQVy7m5nvU2kVHg JQhiwhv+TsheeSVGJWZ81jfjkqEmCm3W1FIeLt3fHRkknyB7yEKaajr/2mMTyhrtvxWw 4mfaI9bgxc3Tajz0sUMKePtpxsf2EZnBQqOfH7uXeGKT+cDqf8hDC+PNhdPlfoRoQ0bh ueotv6EmwPgkDxmdYNMOaGpcZkjXXsaXaWbhlPHOvPuiTONv4yJyK46FKRvs03DnVKuW ZvupGp/3W3MYZUhtnjldKJc0GSVMsBeG6EjVtLGDoUNSE/84AlAXjUQr4QMuEn85vlx8 ps0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729205934; x=1729810734; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EKb8doTyuFLonsArLJnRWmGu8L8SSUHzgz7KFyy4tgI=; b=aC0sfLNjiYJ+P26jwpuM0lHuzYM7lK+9vfKL/lTMnAfbtjC+p7m8sPvkFA5oPbi2SY +BmHmA8LUJ0Ua0sJjFitteMpn8XKYM9XN0yjRpESZOr7+RbboJ1ZiNU9Rw5KCeZgLDVQ ikOEgQ33h/brfGqJSWKrwhPIntZnAEXBItRXmkNbml7S1OIIKS/p0nrVX9DHNbGSOmOZ 1VDSSSAzoaCLKoVBLrr6btRhbl5l+wOa6y3mvV1yCvOCLY7l9PfKdOPFDS1H+Xl02jpA UCUOvSSoGhIEOo+dePpQscbwaICJHsR7qO3wf+MjoVg0+Y9Dgr0xJtEHsPowOfbK3HBV m5iA== X-Gm-Message-State: AOJu0Ywcbzvk2lONdzMaFdC5ofUxDsAikbVJCAD+CFUTvAYH8v6D2zZn IUgIe97BqBxVy2KUz8BWxKyC6IEn+bL4H4pWiF8+Vi4gdw0w03+Vzf9XEzhLEdRJm3a2akxs+NX H X-Google-Smtp-Source: AGHT+IFyJAlPUMlzk9O63ViRXCY7EhqHMuqJeDMubxLBk2F/N73Pqx5LILPohg1yesuzW9AxrtSaiw== X-Received: by 2002:a17:902:d507:b0:20c:6ac0:f1f3 with SMTP id d9443c01a7336-20e5a8cfb59mr8057115ad.34.1729205934480; Thu, 17 Oct 2024 15:58:54 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e5a71ee35sm1544685ad.17.2024.10.17.15.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 15:58:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/2] gpudev: annotate memory allocation Date: Thu, 17 Oct 2024 15:58:02 -0700 Message-ID: <20241017225844.235401-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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