From: Nicolas Chautru <nicolas.chautru@intel.com>
To: dev@dpdk.org, akhil.goyal@nxp.com, trix@redhat.com
Cc: david.marchand@redhat.com, Nicolas Chautru <nicolas.chautru@intel.com>
Subject: [dpdk-dev] [PATCH v6 2/7] app/bbdev: add explicit check for counters
Date: Mon, 26 Oct 2020 10:48:05 -0700 [thread overview]
Message-ID: <1603734490-57821-3-git-send-email-nicolas.chautru@intel.com> (raw)
In-Reply-To: <1603734490-57821-1-git-send-email-nicolas.chautru@intel.com>
Adding explicit check in ut that the stats counters
have the expect values.
This was identified as a gap from code coverage.
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
Acked-by: Aidan Goddard <aidan.goddard@accelercomm.com>
Acked-by: Dave Burley <dave.burley@accelercomm.com>
---
app/test-bbdev/test_bbdev_perf.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 04334e3..f32cb1c 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -4777,6 +4777,23 @@ typedef int (test_case_function)(struct active_device *ad,
(double)(time_st.deq_max_time * 1000000) /
rte_get_tsc_hz());
+ struct rte_bbdev_stats stats = {0};
+ get_bbdev_queue_stats(ad->dev_id, queue_id, &stats);
+ if (op_type != RTE_BBDEV_OP_LDPC_DEC) {
+ TEST_ASSERT_SUCCESS(stats.enqueued_count != num_to_process,
+ "Mismatch in enqueue count %10"PRIu64" %d",
+ stats.enqueued_count, num_to_process);
+ TEST_ASSERT_SUCCESS(stats.dequeued_count != num_to_process,
+ "Mismatch in dequeue count %10"PRIu64" %d",
+ stats.dequeued_count, num_to_process);
+ }
+ TEST_ASSERT_SUCCESS(stats.enqueue_err_count != 0,
+ "Enqueue count Error %10"PRIu64"",
+ stats.enqueue_err_count);
+ TEST_ASSERT_SUCCESS(stats.dequeue_err_count != 0,
+ "Dequeue count Error (%10"PRIu64"",
+ stats.dequeue_err_count);
+
return TEST_SUCCESS;
#endif
}
--
1.8.3.1
next prev parent reply other threads:[~2020-10-26 17:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 17:48 [dpdk-dev] [PATCH v6 0/7] BBDEV test updates Nicolas Chautru
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 1/7] app/bbdev: add explicit ut for latency vs validation Nicolas Chautru
2020-10-26 17:48 ` Nicolas Chautru [this message]
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 3/7] app/bbdev: include explicit HARQ preloading Nicolas Chautru
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 4/7] app/bbdev: define wait for offload Nicolas Chautru
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 5/7] app/bbdev: skip bler ut when compression is used Nicolas Chautru
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 6/7] app/bbdev: reduce duration of throughput test Nicolas Chautru
2020-10-26 17:48 ` [dpdk-dev] [PATCH v6 7/7] app/bbdev: update offload test to dequeue full ring Nicolas Chautru
2020-10-28 12:15 ` [dpdk-dev] [PATCH v6 0/7] BBDEV test updates Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1603734490-57821-3-git-send-email-nicolas.chautru@intel.com \
--to=nicolas.chautru@intel.com \
--cc=akhil.goyal@nxp.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=trix@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).