From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0052.outbound.protection.outlook.com [104.47.36.52]) by dpdk.org (Postfix) with ESMTP id 2CA591B1C3 for ; Tue, 16 Jan 2018 16:40:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8bktqxRSlQGhUM01BvDDXMvzCoLkbJnjmfoVBEvGYcE=; b=U7TYLG1eaGGJN3UMst4HqKLKK38/dmlnAwiaNayMMsKKv9V4Cu/I8fRzdD2HmXqMVDKjc8v64ILi1pNxJryB8S2UlGdvE/pb42p/RV5oPwK97xT+WFzqQf8jxhxrUzxu/IWJl1mUrhkHmjwKpQFztCItxAPi6TXRgi22s7k37AA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 15:40:32 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, liang.j.ma@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 16 Jan 2018 21:09:50 +0530 Message-Id: <20180116154003.3762-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR02CA0016.namprd02.prod.outlook.com (10.168.209.154) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b38ca308-0560-40fe-1714-08d55cf77bc5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:z5RV0Jwa4zDIxsWhxAABB2Ta2XfmyM/EIRQl3ihZ52Vrht0HWSprmh8rRVL7TpEkBjgUHJz8hTws/YP3i83k4NLfrBhMDAxe7alBqG0N8TULBNIyJNf744QRALvOFvMSz6LFl7Nxpm+omOpdSS97BsYSxpei6qcQk3bXsZkEMV66g+NoBjtxKU3sDsqvcCLPS8ojpmuE553kz7vvIUVYYsG8fsk3vCAhlW5eYPd6GsY6BH6KMhXW6BGf1a2B+8px; 25:0hsmv2zyncXO1ceQlr62m34kNpbqpoSY6HUkkZzTRcSdOjiKse6CLFMfEBhVIz28hpv6/FbIyoFsWV3C4EXqRMrPq6Ga86YWM5/J6IsxpXJ5iDXIzlZNrnbjZctqFtyvjWztgCeqfz2RAVGwF38qu1nckqA9YoWBmq7ZqoqLvmX5dmcKPTfoSXzFwRWElH8h4CbDOezzHLoMeRdJKkRPG1EFig7+h3s9GDH75E7IJg+Wj2slTWj2CNbyjyAsKEhGBcVJh/qRVSp5r4waXOs6GnaqFltoWQLo0I36AqP1YZW2LN9iV00R8oIxv5SyJ6RkXeV5uNHBcuf38jGnj5QEEg==; 31:XVm3y7xZ/3k1oRiD1BZaHP/H2EeFfjLs+zx3munhOkwud5V4LRov5rm/hnG6zfNxxVfzMBqKWe9PdazX6RjpqplWMJISPQsxArBnYS2Ab2itv4R7yLOQDwEBR6AMiDclL7WgR5T9FQltGq2H4JN7rJFe2jdoCd1J2aMl96r6nFr+U6v+qfdASvaqtEqDG+bUfjLuU1wuHQwCDmM3b9u1EmizGVhU4v9tuhI3QCSEIok= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:jqC4sSge1nR3yORKOxSnxHD65CAQIJdV/wCWZshT/9D9wzMXBHS8fwhaBl0DzR6p22MZPw8pK3ND844u03WwXjdqdvo5oOqCdqYTVj2cupGm4nj1DYusdFLGm752r+GfkUD3vpQ86b0Vb/gDvgzjk1mSp+yRvdIu+C1E9KXkkJEuJgiXwtCmvxZVjRgQIcFG8NSXjWyxSOkStwyNVnh6azd9JCcjfvi7kvOkQCVZKiiiCqrMpwLqX9WVKUwOGx3OnylzEU9g2DYQk1ekUo/TFIrLotETEDsgrDq9xySJESTUYJDnnL1V+AHVshZ5i+4SDovrS8EwD3vTZMSPvliAzcS/E99Q2LqlJGfGtlYWHDuH31PYaShUDBoTzGQ4MVcpfY60LCz9MFcsrfNOuDOFQhThiVPKLsnKQFqMu9eM2u4JMQEzsHBO5oOdALZR7UG8lhldtKOdvgi9KKnn4oHZFyqHdWIH7PqM51p4sQZ/OoHFIrTk54H50MNywPA6iRJvrJxdVKN8qbMx3GGgeNvsny2O29jrtBHPKk6ZkUSXBd/x0symOmVur5Py2925GQFQ298Yp6Z+/Wrus8Jnl1AlZ+KYrM4IXN5v9Gca4tSTcI0=; 4:/U7SlLMFj+SaHFxxq9EJsEgpJD6XHcDWwFCDM5Sgr4pUkPlqJydCx4oQHTZPYUHL5PxMk8KrHN1GN7obKxf0qgxX07XjwDr/ccMnQfOSp0hK/wlOEazxQHGzkJYQVGZgLBCJGS3IFqQKWhclI0vxbwrBUQslzQHu9sPEb/Vqdtx9WOq7P/uEpEKStW4sjLFM7Xs+IG8J4o0cVNKCqwcMnW94QWM0cbyjMciaO3/iKc6JuNcRvWbwGvx4BGdWgojsAi/YtPqmU9buDvywaJLXGA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(944501161)(10201501046)(3002001)(6041268)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(346002)(39380400002)(396003)(376002)(189003)(199004)(81166006)(97736004)(8676002)(6116002)(5009440100003)(52116002)(305945005)(8936002)(107886003)(53376002)(1076002)(51416003)(81156014)(25786009)(8656006)(4326008)(50466002)(50226002)(6486002)(5660300001)(3846002)(7736002)(16526018)(68736007)(69596002)(42882006)(106356001)(26005)(76176011)(6306002)(53936002)(6512007)(59450400001)(47776003)(48376002)(16586007)(386003)(6506007)(66066001)(72206003)(2950100002)(36756003)(966005)(2906002)(478600001)(105586002)(316002)(53416004)(6666003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:/6iCbpnrwTiHz7ykWFdEEzLSRlLu2TaJUGucnrtFo?= =?us-ascii?Q?mxzdZebeRr34yASqz4glG/GeUBoPTS2BFKdhLBzUplFaEdjrYLCAnAmsRRdP?= =?us-ascii?Q?MLuX0z6SuVaxlCE+LuxrH+FToKb2dwwZt36hUXSk/tHWX6+nrAmOILO+cI/c?= =?us-ascii?Q?RO7b0sKvbY0p8QDUZK6Aom+BFn513X5huAm/IjQbu6JslQnJAh9F2580acY8?= =?us-ascii?Q?q9b8jf1elTdyM0DeFJasa4pyKszowWAoewW5DYX0wlVckEf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vWJubx2sXKUQOQs4Z82aqLbMcGKifARogvKXALcgKM0ZG97R4UwQsFyHZRtyGNPdFTJ8bcVGKLAPmVzjweiLZ9LQeUIm7qhyOOVRCvgQbWwZVvhfSKp7lh9J2a6zjGcSizUrDYlUj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 15:40:32.0047 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b38ca308-0560-40fe-1714-08d55cf77bc5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v6 01/14] app/eventdev: add packet distribution logs 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: , X-List-Received-Date: Tue, 16 Jan 2018 15:40:36 -0000 Add logs for packet distribution across worker cores to be printed along with the test results. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v6 Changes: - Missed retaining acks when sending previous patchset. v5 Changes: - Split generic and lockfree diagrams for pipeline queue and atq in documentation. - Update release notes. v4 Changes: - remove Tx queue locking by using Tx service ml discussion : http://dpdk.org/ml/archives/dev/2018-January/086730.html v3 Changes: - Add SPDX licence tags - Redo atq test app/test-eventdev/evt_main.c | 3 +++ app/test-eventdev/test_perf_common.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c index 3c27f3216..57bb94570 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -29,6 +29,9 @@ signal_handler(int signum) rte_eal_mp_wait_lcore(); + if (test->ops.test_result) + test->ops.test_result(test, &opt); + if (test->ops.eventdev_destroy) test->ops.eventdev_destroy(test, &opt); diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index e82cc9301..e279d81a5 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -8,8 +8,20 @@ int perf_test_result(struct evt_test *test, struct evt_options *opt) { RTE_SET_USED(opt); + int i; + uint64_t total = 0; struct test_perf *t = evt_test_priv(test); + printf("Packet distribution across worker cores :\n"); + for (i = 0; i < t->nb_workers; i++) + total += t->worker[i].processed_pkts; + for (i = 0; i < t->nb_workers; i++) + printf("Worker %d packets: "CLGRN"%"PRIx64" "CLNRM"percentage:" + CLGRN" %3.2f\n"CLNRM, i, + t->worker[i].processed_pkts, + (((double)t->worker[i].processed_pkts)/total) + * 100); + return t->result; } -- 2.14.1