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 A7230A00C3; Wed, 26 Jan 2022 06:11:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AC1E42722; Wed, 26 Jan 2022 06:11:01 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4ECF8426D3 for ; Wed, 26 Jan 2022 06:10:51 +0100 (CET) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 997A020B83DE; Tue, 25 Jan 2022 21:10:49 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 997A020B83DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1643173849; bh=uNqpWOjFVOr49nT6aqByQ48q6be9UZq5EG60CbxtPrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4dxWfUN4v6LMEaJvpaLkEQCGloekJ6pmfuMzVCdH0CFEiy6WYjLLNJ+vsnpfL18H 4jjB8rxLJJvqFNKzXC5AWJiWsS2DsgLd1VQpVpY3fqPeIpZLVkWjs7luPGkwOzZDOa jFG4IA9UsWPiVLYGp8LCWY2M12dYN9od+VUT8/z4= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, bruce.richardson@intel.com, roretzla@microsoft.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, talshn@nvidia.com, thomas@monjalon.net, aconole@redhat.com Subject: [PATCH v15 08/11] app/test: resolve name collision Date: Tue, 25 Jan 2022 21:10:41 -0800 Message-Id: <1643173844-27341-9-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1643173844-27341-1-git-send-email-jizh@linux.microsoft.com> References: <1638990000-3228-1-git-send-email-jizh@linux.microsoft.com> <1643173844-27341-1-git-send-email-jizh@linux.microsoft.com> 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 Add OP_ prefix to resolve name collision to enable hash_perf test Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- app/test/test_hash_perf.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c index 76cdac5d53..7e98ec3964 100644 --- a/app/test/test_hash_perf.c +++ b/app/test/test_hash_perf.c @@ -30,10 +30,10 @@ #define BURST_SIZE 16 enum operations { - ADD = 0, - LOOKUP, - LOOKUP_MULTI, - DELETE, + OP_ADD = 0, + OP_LOOKUP, + OP_LOOKUP_MULTI, + OP_DELETE, NUM_OPERATIONS }; @@ -308,7 +308,7 @@ timed_adds(unsigned int with_hash, unsigned int with_data, const uint64_t end_tsc = rte_rdtsc(); const uint64_t time_taken = end_tsc - start_tsc; - cycles[table_index][ADD][with_hash][with_data] = time_taken/keys_to_add; + cycles[table_index][OP_ADD][with_hash][with_data] = time_taken/keys_to_add; return 0; } @@ -385,7 +385,7 @@ timed_lookups(unsigned int with_hash, unsigned int with_data, const uint64_t end_tsc = rte_rdtsc(); const uint64_t time_taken = end_tsc - start_tsc; - cycles[table_index][LOOKUP][with_hash][with_data] = time_taken/num_lookups; + cycles[table_index][OP_LOOKUP][with_hash][with_data] = time_taken/num_lookups; return 0; } @@ -511,7 +511,7 @@ timed_lookups_multi(unsigned int with_hash, unsigned int with_data, const uint64_t end_tsc = rte_rdtsc(); const uint64_t time_taken = end_tsc - start_tsc; - cycles[table_index][LOOKUP_MULTI][with_hash][with_data] = + cycles[table_index][OP_LOOKUP_MULTI][with_hash][with_data] = time_taken/num_lookups; return 0; @@ -550,7 +550,7 @@ timed_deletes(unsigned int with_hash, unsigned int with_data, const uint64_t end_tsc = rte_rdtsc(); const uint64_t time_taken = end_tsc - start_tsc; - cycles[table_index][DELETE][with_hash][with_data] = time_taken/keys_to_add; + cycles[table_index][OP_DELETE][with_hash][with_data] = time_taken/keys_to_add; return 0; } -- 2.34.1.windows.1