From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14D78A04F3; Tue, 7 Jan 2020 18:41:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD3F01DA1C; Tue, 7 Jan 2020 18:41:08 +0100 (CET) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 4A6321DA06 for ; Tue, 7 Jan 2020 18:41:07 +0100 (CET) Received: by mail-pg1-f194.google.com with SMTP id x7so193450pgl.11 for ; Tue, 07 Jan 2020 09:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xDqRg58sEQqQyeRA3n5h3r1qfCwKKMT8765aU3Dif+M=; b=eq20zJR0YxXLXHVhSrBL5bpAezYL0K9nJkj7Ozd3XqCOLGo1Ey7BH3UkN6koZlMVWj Y9Mlv9K5lbC4LG7ErX8Kd2av50Qc3k/W6z3abZZfH5LKr6XMruiQqRV1oGnuf/z6Ljle WHWLDaBL/t0OLlpnG4SRapL2BwxgiFdPUkvWiChAx6E8ggOPPShk9hh/Y9pqAVDYRh6K oePvwkQmkk+oae9+TlNtC99eFMx0MrM7I2OMi3wYH3cl4HDp3AX4twy6fFw2QeEtlzr0 PHRzMCuYM2vHOnETO+IwE3UMPV2vaDhVMppzpcRwxbBdKMcur0GhH/DtfFrjSk+AbpTQ RCLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xDqRg58sEQqQyeRA3n5h3r1qfCwKKMT8765aU3Dif+M=; b=G7K9ljXPSWEUFpVyafI1gm/C5kcBJgv/1zPauTTQ9kZpzu8q5fBHgEq0wkppr/CLZu 6ODP78lC7FF2LHw6BuOExA/bDLkEhYYJuvG4XxdBZVU3vjKSTrBeh77JgaypYOZtOiic i6c4gz6RlUpptUx/upPg0S1jf10Wq3gwZbhRzy/3j6FF2FQa85gbI+ai2HYxXsJH8/nm Wv9wu+oCzI6plCrB+rz8NQCf/yu24agnRkqvMi2l+1bM9WZTJR0S8x2Ok8ztNAd9HYff Kd9N80OdGRCZx9arRRu62ccevgRjHpVu8ulBSj4ZweqpA84smceV7trkuu4CNZzzZFzl Z7VQ== X-Gm-Message-State: APjAAAXGxEvfYrcKOXO89wBKFbUH8qffSnt2L9r2+e08R0bgdenSWNy9 y2RIx++HVnMH99E4YpxGA/WReJb/vzA= X-Google-Smtp-Source: APXvYqy0rOmCEIGwCL96y9BuDYTmwxJjgcANg1jsIAzNxWg4Cw5fFPOzLmPsclcnqxWvNGhGr0hdGQ== X-Received: by 2002:a63:a34b:: with SMTP id v11mr552711pgn.229.1578418865954; Tue, 07 Jan 2020 09:41:05 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p5sm384104pgs.28.2020.01.07.09.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 09:41:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 7 Jan 2020 09:40:56 -0800 Message-Id: <20200107174056.9397-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] testpmd: call cleanup on exit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The rte_eal_cleanup code is not exercised by testpmd which is the most used DPDK test tool. Add a call at end of program. This helps exercise free and close paths which can be checked with tools like valgrind. Signed-off-by: Stephen Hemminger --- app/test-pmd/testpmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b3746822366f..a94ad19c8f5a 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -3570,5 +3570,6 @@ main(int argc, char** argv) return 1; } + rte_eal_cleanup(); return 0; } -- 2.20.1