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 127E545BCB; Fri, 25 Oct 2024 19:57:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B194F402BD; Fri, 25 Oct 2024 19:57:09 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 1F19B40156 for ; Fri, 25 Oct 2024 19:57:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729879027; x=1761415027; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=h/aJ7Cqe1t1ryDD6dQ0EM4lvjnUtpfOu9okpECGhi0g=; b=inPOlQM76c+/Si9xXnyXoJ12h3LW0uYLzG7Bt/wu7J3unXJnIF+pRfjU DsGuM3umPKYviEIyj/EbpuCpc0jSGDZd5rPRkC5XxBToWjbMbtUWMZHMs TncB0XQz6jYGkud1Hd09khEiCQscLeOBUJEF//F0f0HKlJpyz78TXT0+Q jNpii8HPSrDWCabNIst7MVmwi7wRGDbeXaA9T9U2ngenErPOmWAvyuuz2 Y78/VQr7gsagfjWlkMm9V5RAaFGMhj1M0nh2ncvUNtJ5O0w9LxWj4KPow t0r5x3QVvmptJ8LfDeM2X9e/YO7QD6kgS900L6ap2ARP1RO1RwJIr6iWE Q==; X-CSE-ConnectionGUID: FK5ot8qzRLmEzvaaZmgpJQ== X-CSE-MsgGUID: l4i9IGQBTyaXzbpcRG5NMw== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="52110561" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="52110561" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 10:57:06 -0700 X-CSE-ConnectionGUID: GuAUDVOLR5eWmoWETiCgsg== X-CSE-MsgGUID: qZrgiBAjRC+4R4n2ZZB2vg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="81132222" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orviesa006.jf.intel.com with ESMTP; 25 Oct 2024 10:57:06 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hemant.agrawal@nxp.com, hernan.vargas@intel.com, Nicolas Chautru Subject: [PATCH v1 1/2] app/bbdev: add capture of queue dump Date: Fri, 25 Oct 2024 10:57:08 -0700 Message-Id: <20241025175709.1415722-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025175709.1415722-1-nicolas.chautru@intel.com> References: <20241025175709.1415722-1-nicolas.chautru@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 Capturing additional queue dump information in the bbdev-test application using the api introduced earlier. Signed-off-by: Nicolas Chautru --- app/test-bbdev/test_bbdev_perf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 9be360b225..405c22de44 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -111,6 +111,8 @@ static uint32_t ldpc_cap_flags; /* FFT window width predefined on device and on vector. */ static int fft_window_width_dev; +bool dump_ops = true; + /* Represents tested active devices */ static struct active_device { const char *driver_name; @@ -3109,6 +3111,20 @@ run_test_case_on_device(test_case_function *test_case_func, uint8_t dev_id, /* Run test case function */ t_ret = test_case_func(ad, op_params); + if (dump_ops) { + /* Dump queue information in local file. */ + static FILE *fd; + fd = fopen("./dump_bbdev_queue_ops.txt", "w"); + if (fd == NULL) { + printf("Open dump file error.\n"); + return -1; + } + rte_bbdev_queue_ops_dump(ad->dev_id, ad->queue_ids[i], fd); + fclose(fd); + /* Run it once only. */ + dump_ops = false; + } + /* Free active device resources and return */ free_buffers(ad, op_params); return t_ret; -- 2.34.1