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 63A13423FE; Tue, 17 Jan 2023 17:51:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECDDB42D4E; Tue, 17 Jan 2023 17:50:31 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id BFAC24067E for ; Tue, 17 Jan 2023 17:50:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974227; x=1705510227; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BslVWmnTK0q5pkJOGWEuILE/rcPZ3sGfj+3rVDYlmto=; b=LV9So/gGoKcJXzLYPgOtJwT+Wb2PDXReRSKe4hdYxwuN3eCKGn2cG8E7 xDboNVKRCIPsBCfcR+UqQPbxjpkp3rCV5cG1lugEdhaoyvX0fMmYKTGot IcGS1oMewdD3HRNAKvSi3n9XoI+Z2mkbDla0i8hJat81hFp0VNJbP6n4+ TA2UCeBLDvhogOkJgHmQTX7nfWoLjep833yCka2InVvM2sxEruvjg8ld/ GWwbtTcjqM06QsHQqyhTLKd7UIZPpQbZkRgz9cpZ+q8JLW1qzx9lu+nTv Xsz9vNmudbKzxzAkPgxwfOM4iYzy22wf+kS7SNj41I9mgSTvMukGQbOEY w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022071" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022071" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 08:50:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235103" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235103" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2023 08:50:26 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v1 06/13] test/bbdev: log capture from queue stop Date: Tue, 17 Jan 2023 08:50:16 -0800 Message-Id: <20230117165023.20567-7-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230117165023.20567-1-hernan.vargas@intel.com> References: <20230117165023.20567-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Improve log capture in bbdev not requiring standard output. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 36ea399938..ffb2de0604 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -889,6 +889,7 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, &qconf); } + rte_bbdev_queue_start(ad->dev_id, queue_id); if (ret != 0) { printf("All queues on dev %u allocated: %u\n", dev_id, queue_id); @@ -897,8 +898,8 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, ad->queue_ids[queue_id] = queue_id; } TEST_ASSERT(queue_id != 0, - "ERROR Failed to configure any queues on dev %u", - dev_id); + "ERROR Failed to configure any queues on dev %u\n" + "\tthe device may not support or have been configured", dev_id); ad->nb_queues = queue_id; set_avail_op(ad, op_type); @@ -3844,6 +3845,7 @@ throughput_pmd_lcore_ldpc_dec(void *arg) TEST_ASSERT_SUCCESS(ret, "Validation failed!"); } + rte_bbdev_queue_stop(tp->dev_id, queue_id); rte_bbdev_dec_op_free_bulk(ops_enq, num_ops); double tb_len_bits = calc_ldpc_dec_TB_size(ref_op); -- 2.37.1