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 6ABDFA046B for ; Wed, 26 Jun 2019 19:34:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 22F3E25D9; Wed, 26 Jun 2019 19:34:53 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id 6392B1E25 for ; Wed, 26 Jun 2019 19:34:51 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id x17so3677420wrl.9 for ; Wed, 26 Jun 2019 10:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=ZcwuPKVWu5AkkjzPAri6jRMjjCcG4+9moYJ67zjUM+E=; b=bIVEaqtr9+KxYomTkV9XHJTizNP1PtY8Qwq+cDeGtZXuSLBQwJZgCuIutROjusJQpG yYP3cBVcfuo/WLMuh/YzkM39OA+4Iqt6eYPjHaAp0O3rgWw3XkJ3KApcR9tkRVVNfY0g 3J9uUTqC5l5CKeHhbhYN+53tvwBphGV855OVBM2pBawcGt05AZG4xwE8fCe0MuWXlmLn IbOqqW4QEnwvkFFeu9PnyMD9P0YRw9ely+HdL1U9fPPPa+2G/DySo3eYYX6uvbTjCIwS 2ZxDZgsQHE1AghuUszDYGXfQg3KW08IDTWZdk96UXMZBfqT6ZSHuFePM8JqkzrLBRQjA 9QZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZcwuPKVWu5AkkjzPAri6jRMjjCcG4+9moYJ67zjUM+E=; b=iUe6kBmn+mUe2lKFawCePObFAr2WjblIZMYjB2x5l1p52WcRYguSjsCKUSDiVCI9tU QomlBoP5BTspQ73kfsusOM05qJ+DQQ5Fgtn/ToJrLF4Iv8kRNDb8guwzk4wcO+eysIyK 8v80xZQIUY6hR9AEQs/avJhQKkS0LsF5LNHgtEXI4RNVe0s0FB+6Zx7vIb85u9vAytsh Ejlzx3fxKrmbQeTyPTTBg6ZBo9FqUm8iCjJ4yZdDi2IlGhnC7ygnTQJtYe8Q3F68A520 j2ROulq2tmuBkcO4dOrT+21W+SMGpFqMb6BaCCnXmvb3KjS0BHvkN3TZGgyiL5Caeypx +trA== X-Gm-Message-State: APjAAAXN/j9blcxta4b9E04MFy6/kbDL9+1DqVuz5hqcqTyCnzDLVYqx q1428+YjAVIwZR+0Tm0m4fs= X-Google-Smtp-Source: APXvYqyIqTbNWVhHbWdOMU9O3fGXsoa7NpCo4VjZrqQ1Llikip+n668g8vwJI/+i0u/nOc1OlRYCqg== X-Received: by 2002:a5d:6449:: with SMTP id d9mr4523224wrw.192.1561570491041; Wed, 26 Jun 2019 10:34:51 -0700 (PDT) Received: from [192.168.1.6] (178.43.130.103.ipv4.supernova.orange.pl. [178.43.130.103]) by smtp.gmail.com with ESMTPSA id y133sm4159672wmg.5.2019.06.26.10.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 10:34:50 -0700 (PDT) To: Shally Verma , "dev@dpdk.org" , "fiona.trahe@intel.com" , "arturx.trybula@intel.com" References: <1560032553-15528-1-git-send-email-tjozwiakgm@gmail.com> <1561566633-12329-1-git-send-email-tjozwiakgm@gmail.com> <1561566633-12329-3-git-send-email-tjozwiakgm@gmail.com> From: Tomasz Jozwiak Message-ID: <5fe0d9e5-2524-ac41-8f97-ec4fa8390d91@gmail.com> Date: Wed, 26 Jun 2019 19:34:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [EXT] [PATCH v3 2/7] app/test-compress-perf: add ptest command line option 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" Hi Shally, >> -----Original Message----- >> From: Tomasz Jozwiak >> Sent: Wednesday, June 26, 2019 10:00 PM >> To: dev@dpdk.org; fiona.trahe@intel.com; tjozwiakgm@gmail.com; Shally >> Verma ; arturx.trybula@intel.com >> Subject: [EXT] [PATCH v3 2/7] app/test-compress-perf: add ptest command >> line option >> >> External Email >> >> ---------------------------------------------------------------------- >> From: Tomasz Jozwiak >> >> This patch adds --ptest option to make possible a choose of test case from >> command line. >> >> Signed-off-by: Tomasz Jozwiak >> --- >> app/test-compress-perf/comp_perf_options_parse.c | 36 >> ++++++++++++++++++++++++ >> 1 file changed, 36 insertions(+) >> >> diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test- >> compress-perf/comp_perf_options_parse.c >> index bc4b98a..07672b2 100644 >> --- a/app/test-compress-perf/comp_perf_options_parse.c >> +++ b/app/test-compress-perf/comp_perf_options_parse.c >> @@ -15,6 +15,7 @@ >> >> #include "comp_perf_options.h" >> >> +#define CPERF_PTEST_TYPE ("ptest") >> #define CPERF_DRIVER_NAME ("driver-name") >> #define CPERF_TEST_FILE ("input-file") >> #define CPERF_SEG_SIZE ("seg-sz") >> @@ -37,6 +38,7 @@ static void >> usage(char *progname) >> { >> printf("%s [EAL options] --\n" >> + " --ptest benchmark / verify :" >> " --driver-name NAME: compress driver to use\n" >> " --input-file NAME: file to compress and decompress\n" >> " --extended-input-sz N: extend file data up to this size >> (default: no extension)\n" >> @@ -76,6 +78,37 @@ get_str_key_id_mapping(struct name_id_map *map, >> unsigned int map_len, } >> >> static int >> +parse_cperf_test_type(struct comp_test_data *test_data, const char >> +*arg) { >> + struct name_id_map cperftest_namemap[] = { >> + { >> + >> cperf_test_type_strs[CPERF_TEST_TYPE_BENCHMARK], >> + CPERF_TEST_TYPE_BENCHMARK >> + }, >> + { >> + cperf_test_type_strs[CPERF_TEST_TYPE_VERIFY], >> + CPERF_TEST_TYPE_VERIFY >> + }, >> + { >> + cperf_test_type_strs[CPERF_TEST_TYPE_PMDCC], >> + CPERF_TEST_TYPE_PMDCC > What is PMDCC here? What kind of test type? [Tomek] This's for 'pmd_cyclecount_test'. Actually compression_perf tool doesn't support that test, but we added a sort of 'template' for that, cause there's a plan to add this test in the future. Thx -- Tomek