From patchwork Mon May 6 21:03:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Carrillo, Erik G" X-Patchwork-Id: 53299 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87981374C; Mon, 6 May 2019 23:05:26 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id DA80E343C for ; Mon, 6 May 2019 23:05:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2019 14:05:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,439,1549958400"; d="scan'208";a="230095144" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by orsmga001.jf.intel.com with ESMTP; 06 May 2019 14:05:23 -0700 From: Erik Gabriel Carrillo To: rsanford@akamai.com, thomas@monjalon.net Cc: dev@dpdk.org Date: Mon, 6 May 2019 16:03:51 -0500 Message-Id: <1557176631-21416-1-git-send-email-erik.g.carrillo@intel.com> X-Mailer: git-send-email 1.7.10 Subject: [dpdk-dev] [PATCH] test: call timer subsystem finalize at 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 eal_flags_autotest checks that no hugepage map files are left behind after a process exits, which can only be the case if all allocations made from DPDK heaps were freed back to the freelist, resulting in the hugepage map files being unlinked automatically. Add a call to rte_timer_subsystem_finalize() at application exit time to release allocations now made by the timer library. Fixes: c0749f7096c7 ("timer: allow management in shared memory") Signed-off-by: Erik Gabriel Carrillo --- app/test/test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test/test.c b/app/test/test.c index fbe4464..ea1e98f 100644 --- a/app/test/test.c +++ b/app/test/test.c @@ -187,6 +187,9 @@ main(int argc, char **argv) ret = 0; out: +#ifdef RTE_LIBRTE_TIMER + rte_timer_subsystem_finalize(); +#endif rte_eal_cleanup(); return ret; }