From patchwork Mon Feb 3 19:49:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 183049 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4365112ile; Mon, 3 Feb 2020 11:50:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzd4dVo6kieleTsxCgy/1xuw9lomoTMPFlZoubfIwg5Iw2HblD00ei8OWyQN96Di2/sRT7D X-Received: by 2002:a17:906:ccc2:: with SMTP id ot2mr22244454ejb.194.1580759400998; Mon, 03 Feb 2020 11:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580759400; cv=none; d=google.com; s=arc-20160816; b=cago37dwKZ+RE9lHx3PbytiBA55ocujmknDVnXOOpXnKjD223kAiKcBDylkG38AC5c oWXA1X3M5y3f6lXfRVuqR3IugVE8G+xEhku/dwUIew4Upwr57f239E0lOA7okte7/61/ ZUZ/UoiNQ6LjXc8e5dlM8HiwCriLcLshwic/PqjOEdqhZjha2Esk8+Hstot67rmQ6X5S 73o+yhr7K3hz0TWpRJFWDf9A/3lG3FEb7amAVz0jYGHUmW/zdu5NWbE1F6C7p29wO/hK nRGbEEdRIbbke/c9CPCU7F0zorLXxyrrZv96yxphVTZPMjYQLTyo3j9CUfOmQrv08k65 HOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=tDphgDkxi3uic0UIyHz+NzquYbb9cd80jiNMGZ1o3mY=; b=FQjTn0/dtieoGIHxmIyPHgod8CK2mDWZfkYOHWUOry1gOGuy0i8qttmmzpMwdCeuci vinaPJmiuBDNIWrEs43RScxu+sZsbmc0jNsqAS60OeIV1NjONtDMt6l9kmBjnirG4Ork 19oQJJB78K3BhnKFjO8H7MPHpuKdHRyQmYHUsKEcy8LAj2sAy5gUK3mNiyW/CHZGgJWP +1w/w+yaAoS2FWkJ1r4fpNiZaI0MvbiNA/gqaLR7KMyMwJUojqxVOssINR3+0V0Sj5UM BVni4wtscmv7fcQAO9yHMWe0M+OvRv1iR/kjvPHwY6T1lba6TFezopM4bWuKyNQtkew4 Ll4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id bs7si10897592edb.86.2020.02.03.11.50.00; Mon, 03 Feb 2020 11:50:00 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D98751BFB1; Mon, 3 Feb 2020 20:49:33 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 07AA61BFDD for ; Mon, 3 Feb 2020 20:49:30 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8EFF7101E; Mon, 3 Feb 2020 11:49:29 -0800 (PST) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.14.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B69A3F52E; Mon, 3 Feb 2020 11:49:29 -0800 (PST) From: Honnappa Nagarahalli To: agupta3@marvell.com, yipeng1.wang@intel.com, sameh.gobriel@intel.com, honnappa.nagarahalli@arm.com Cc: thomas@monjalon.net, david.marchand@redhat.com, dev@dpdk.org, nd@arm.com Date: Mon, 3 Feb 2020 13:49:11 -0600 Message-Id: <20200203194912.4669-5-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200203194912.4669-1-honnappa.nagarahalli@arm.com> References: <1567748973-24192-1-git-send-email-agupta3@marvell.com> <20200203194912.4669-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 4/5] test/hash: move reader writer lock free tests to perf tests 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" Move reader writer lock free tests to performance tests. Signed-off-by: Honnappa Nagarahalli --- app/test/Makefile | 2 +- app/test/autotest_data.py | 4 ++-- app/test/meson.build | 4 ++-- ...t_hash_readwrite_lf.c => test_hash_readwrite_lf_perf.c} | 7 ++++--- 4 files changed, 9 insertions(+), 8 deletions(-) rename app/test/{test_hash_readwrite_lf.c => test_hash_readwrite_lf_perf.c} (99%) -- 2.17.1 diff --git a/app/test/Makefile b/app/test/Makefile index 57930c00b..d955dbb03 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -122,7 +122,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_perf.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_functions.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_multiwriter.c SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite.c -SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite_lf.c +SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite_lf_perf.c SRCS-$(CONFIG_RTE_LIBRTE_RIB) += test_rib.c SRCS-$(CONFIG_RTE_LIBRTE_RIB) += test_rib6.c diff --git a/app/test/autotest_data.py b/app/test/autotest_data.py index 71db4b3f6..7b1d01389 100644 --- a/app/test/autotest_data.py +++ b/app/test/autotest_data.py @@ -676,8 +676,8 @@ "Report": None, }, { - "Name": "Hash read-write lock-free concurrency autotest", - "Command": "hash_readwrite_lf_autotest", + "Name": "Hash read-write lock-free concurrency perf autotest", + "Command": "hash_readwrite_lf_perf_autotest", "Func": default_autotest, "Report": None, }, diff --git a/app/test/meson.build b/app/test/meson.build index 08c0ecb3f..07cf675a4 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -59,7 +59,7 @@ test_sources = files('commands.c', 'test_hash_multiwriter.c', 'test_hash_readwrite.c', 'test_hash_perf.c', - 'test_hash_readwrite_lf.c', + 'test_hash_readwrite_lf_perf.c', 'test_interrupts.c', 'test_ipsec.c', 'test_ipsec_sad.c', @@ -234,7 +234,6 @@ fast_test_names = [ 'eventdev_common_autotest', 'fbarray_autotest', 'hash_readwrite_func_autotest', - 'hash_readwrite_lf_autotest', 'ipsec_autotest', 'kni_autotest', 'kvargs_autotest', @@ -283,6 +282,7 @@ perf_test_names = [ 'stack_lf_perf_autotest', 'rand_perf_autotest', 'hash_readwrite_perf_autotest', + 'hash_readwrite_lf_perf_autotest' ] driver_test_names = [ diff --git a/app/test/test_hash_readwrite_lf.c b/app/test/test_hash_readwrite_lf_perf.c similarity index 99% rename from app/test/test_hash_readwrite_lf.c rename to app/test/test_hash_readwrite_lf_perf.c index 97c304054..a7547bea0 100644 --- a/app/test/test_hash_readwrite_lf.c +++ b/app/test/test_hash_readwrite_lf_perf.c @@ -1241,7 +1241,7 @@ test_hash_add_ks_lookup_hit_extbkt(struct rwc_perf *rwc_perf_results, } static int -test_hash_readwrite_lf_main(void) +test_hash_readwrite_lf_perf_main(void) { /* * Variables used to choose different tests. @@ -1254,7 +1254,7 @@ test_hash_readwrite_lf_main(void) int ext_bkt = 0; if (rte_lcore_count() < 2) { - printf("Not enough cores for hash_readwrite_lf_autotest, expecting at least 2\n"); + printf("Not enough cores for hash_readwrite_lf_perf_autotest, expecting at least 2\n"); return TEST_SKIPPED; } @@ -1431,4 +1431,5 @@ test_hash_readwrite_lf_main(void) return 0; } -REGISTER_TEST_COMMAND(hash_readwrite_lf_autotest, test_hash_readwrite_lf_main); +REGISTER_TEST_COMMAND(hash_readwrite_lf_perf_autotest, + test_hash_readwrite_lf_perf_main);