MCPcopy Create free account
hub / github.com/F-Stack/f-stack / validate_fft_op

Function validate_fft_op

dpdk/app/test-bbdev/test_bbdev_perf.c:2683–2705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681}
2682
2683static int
2684validate_fft_op(struct rte_bbdev_fft_op **ops, const uint16_t n,
2685 struct rte_bbdev_fft_op *ref_op)
2686{
2687 unsigned int i;
2688 int ret;
2689 struct op_data_entries *fft_data_orig = &test_vector.entries[DATA_HARD_OUTPUT];
2690 struct op_data_entries *fft_pwr_orig = &test_vector.entries[DATA_SOFT_OUTPUT];
2691
2692 for (i = 0; i < n; ++i) {
2693 ret = check_fft_status_and_ordering(ops[i], i, ref_op->status);
2694 TEST_ASSERT_SUCCESS(ret, "Checking status and ordering for FFT failed");
2695 TEST_ASSERT_SUCCESS(validate_op_fft_chain(
2696 &ops[i]->fft.base_output, fft_data_orig),
2697 "FFT Output buffers (op=%u) are not matched", i);
2698 if (check_bit(ops[i]->fft.op_flags, RTE_BBDEV_FFT_POWER_MEAS))
2699 TEST_ASSERT_SUCCESS(validate_op_fft_chain(
2700 &ops[i]->fft.power_meas_output, fft_pwr_orig),
2701 "FFT Power Output buffers (op=%u) are not matched", i);
2702 }
2703
2704 return TEST_SUCCESS;
2705}
2706
2707static int
2708validate_mldts_op(struct rte_bbdev_mldts_op **ops, const uint16_t n,

Callers 3

dequeue_event_callbackFunction · 0.85
throughput_pmd_lcore_fftFunction · 0.85
latency_test_fftFunction · 0.85

Calls 3

validate_op_fft_chainFunction · 0.85
check_bitFunction · 0.70

Tested by

no test coverage detected