Home
last modified time | relevance | path

Searched refs:test_data (Results 1 – 17 of 17) sorted by relevance

/dpdk/app/test-compress-perf/
H A Dmain.c53 static struct comp_test_data *test_data; variable
56 comp_perf_check_capabilities(struct comp_test_data *test_data, uint8_t cdev_id) in comp_perf_check_capabilities() argument
60 cap = rte_compressdev_capability_get(cdev_id, test_data->test_algo); in comp_perf_check_capabilities()
65 test_data->test_algo); in comp_perf_check_capabilities()
72 switch (test_data->test_algo) { in comp_perf_check_capabilities()
75 if (test_data->huffman_enc == RTE_COMP_HUFFMAN_FIXED && in comp_perf_check_capabilities()
82 if (test_data->huffman_enc == RTE_COMP_HUFFMAN_DYNAMIC && in comp_perf_check_capabilities()
91 if ((test_data->lz4_flags & RTE_COMP_LZ4_FLAG_BLOCK_CHECKSUM) && in comp_perf_check_capabilities()
98 if ((test_data->lz4_flags & in comp_perf_check_capabilities()
114 if (test_data->window_sz != -1) { in comp_perf_check_capabilities()
[all …]
H A Dcomp_perf_options_parse.c94 parse_cperf_test_type(struct comp_test_data *test_data, const char *arg) in parse_cperf_test_type() argument
119 test_data->test = (enum cperf_test_type)id; in parse_cperf_test_type()
308 parse_num_iter(struct comp_test_data *test_data, const char *arg) in parse_num_iter() argument
310 int ret = parse_uint32_t(&test_data->num_iter, arg); in parse_num_iter()
317 if (test_data->num_iter == 0) { in parse_num_iter()
327 parse_pool_sz(struct comp_test_data *test_data, const char *arg) in parse_pool_sz() argument
329 int ret = parse_uint32_t(&test_data->pool_sz, arg); in parse_pool_sz()
336 if (test_data->pool_sz == 0) { in parse_pool_sz()
345 parse_burst_sz(struct comp_test_data *test_data, const char *arg) in parse_burst_sz() argument
347 int ret = parse_uint16_t(&test_data->burst_sz, arg); in parse_burst_sz()
[all …]
H A Dcomp_perf_test_common.c81 comp_perf_free_memory(struct comp_test_data *test_data, in comp_perf_free_memory() argument
104 for (i = 0; i < test_data->total_segs; i++) in comp_perf_free_memory()
109 for (i = 0; i < test_data->total_segs; i++) in comp_perf_free_memory()
148 comp_perf_allocate_external_mbufs(struct comp_test_data *test_data, in comp_perf_allocate_external_mbufs() argument
154 test_data->total_segs * sizeof(struct rte_memzone *), in comp_perf_allocate_external_mbufs()
164 test_data->total_segs * sizeof(struct rte_memzone *), in comp_perf_allocate_external_mbufs()
174 test_data->total_segs * sizeof(struct rte_mbuf_ext_shared_info), in comp_perf_allocate_external_mbufs()
184 test_data->total_segs * sizeof(struct rte_mbuf_ext_shared_info), in comp_perf_allocate_external_mbufs()
193 for (i = 0; i < test_data->total_segs; i++) { in comp_perf_allocate_external_mbufs()
195 i, test_data->out_seg_sz); in comp_perf_allocate_external_mbufs()
[all …]
H A Dcomp_perf_test_throughput.c53 struct comp_test_data *test_data = ctx->ver.options; in main_loop() local
65 if (test_data == NULL || !test_data->burst_sz) { in main_loop()
87 .algo = test_data->test_algo, in main_loop()
88 .level = test_data->level, in main_loop()
89 .window_size = test_data->window_sz, in main_loop()
94 if (test_data->test_algo == RTE_COMP_ALGO_DEFLATE) in main_loop()
95 xform.compress.deflate.huffman = test_data->huffman_enc; in main_loop()
96 else if (test_data->test_algo == RTE_COMP_ALGO_LZ4) in main_loop()
97 xform.compress.lz4.flags = test_data->lz4_flags; in main_loop()
100 out_seg_sz = test_data->out_seg_sz; in main_loop()
[all …]
H A Dcomp_perf_test_verify.c52 struct comp_test_data *test_data = ctx->options; in main_loop() local
68 if (test_data == NULL || !test_data->burst_sz) { in main_loop()
90 .algo = test_data->test_algo, in main_loop()
91 .level = test_data->level, in main_loop()
92 .window_size = test_data->window_sz, in main_loop()
97 if (test_data->test_algo == RTE_COMP_ALGO_DEFLATE) in main_loop()
98 xform.compress.deflate.huffman = test_data->huffman_enc; in main_loop()
99 else if (test_data->test_algo == RTE_COMP_ALGO_LZ4) in main_loop()
100 xform.compress.lz4.flags = test_data->lz4_flags; in main_loop()
105 out_seg_sz = test_data->out_seg_sz; in main_loop()
[all …]
H A Dcomp_perf_test_cyclecount.c70 struct comp_test_data *test_data = ctx->ver.options; in cperf_cyclecount_op_setup() local
77 num_iter = test_data->num_iter; in cperf_cyclecount_op_setup()
87 test_data->burst_sz); in cperf_cyclecount_op_setup()
155 struct comp_test_data *test_data = ctx->ver.options; in main_loop() local
169 if (test_data == NULL || !test_data->burst_sz) { in main_loop()
180 (test_data->burst_sz + mem->total_bufs) * in main_loop()
190 deq_ops = &ops[test_data->burst_sz]; in main_loop()
196 .algo = test_data->test_algo, in main_loop()
197 .level = test_data->level, in main_loop()
198 .window_size = test_data->window_sz, in main_loop()
[all …]
H A Dcomp_perf_test_common.h41 comp_perf_free_memory(struct comp_test_data *test_data,
45 comp_perf_allocate_memory(struct comp_test_data *test_data,
49 prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem);
52 print_test_dynamics(const struct comp_test_data *test_data);
H A Dcomp_perf_options.h82 comp_perf_options_parse(struct comp_test_data *test_data, int argc,
86 comp_perf_options_default(struct comp_test_data *test_data);
89 comp_perf_options_check(struct comp_test_data *test_data);
/dpdk/app/test/
H A Dtest_cryptodev_hash_test_vectors.h731 .test_data = &md5_test_vector,
736 .test_data = &md5_test_vector,
741 .test_data = &hmac_md5_test_vector,
746 .test_data = &hmac_md5_test_vector,
751 .test_data = &sha1_test_vector,
756 .test_data = &sha1_test_vector,
761 .test_data = &hmac_sha1_test_vector,
766 .test_data = &hmac_sha1_test_vector,
774 .test_data = &hmac_sha1_test_vector,
779 .test_data = &hmac_sha1_test_vector,
[all …]
H A Dtest_cryptodev_aes_test_vectors.h4097 .test_data = &aes_test_data_14,
4103 .test_data = &aes_test_data_1,
4109 .test_data = &aes_test_data_1,
4114 .test_data = &aes_test_data_2,
4119 .test_data = &aes_test_data_2,
4125 .test_data = &aes_test_data_2,
4134 .test_data = &aes_test_data_2,
4144 .test_data = &aes_test_data_2,
4154 .test_data = &aes_test_data_2,
4164 .test_data = &aes_test_data_3,
[all …]
H A Dtest_cryptodev_des_test_vectors.h848 .test_data = &des_cbc_test_vector,
853 .test_data = &des_cbc_test_vector,
959 .test_data = &des_test_data_1,
964 .test_data = &des_test_data_2,
969 .test_data = &des_test_data_3,
974 .test_data = &des_test_data_1,
979 .test_data = &des_test_data_2,
984 .test_data = &des_test_data_3,
989 .test_data = &des_test_data_1,
995 .test_data = &des_test_data_2,
[all …]
H A Dtest_compressdev.c851 const struct test_data_params *test_data, in test_setup_com_bufs() argument
868 unsigned int buff_type = test_data->buff_type; in test_setup_com_bufs()
869 unsigned int big_data = test_data->big_data; in test_setup_com_bufs()
888 if (test_data->decompress_state == RTE_COMP_OP_STATEFUL) { in test_setup_com_bufs()
912 if (test_data->use_external_mbufs) { in test_setup_com_bufs()
918 test_data->inbuf_memzone->addr, in test_setup_com_bufs()
919 test_data->inbuf_memzone->iova, in test_setup_com_bufs()
920 test_data->inbuf_data_size, in test_setup_com_bufs()
923 test_data->inbuf_data_size); in test_setup_com_bufs()
986 const struct test_data_params *test_data, in test_mbufs_calculate_data_size() argument
[all …]
H A Dtest_crc.c69 uint8_t *test_data; in test_crc_calc() local
81 test_data = rte_zmalloc(NULL, CRC32_VEC_LEN1, 0); in test_crc_calc()
82 if (test_data == NULL) in test_crc_calc()
86 rte_memcpy(&test_data[i], crc32_vec1, 12); in test_crc_calc()
88 result = crc_calc(test_data, CRC32_VEC_LEN1, type); in test_crc_calc()
96 rte_memcpy(&test_data[i], crc32_vec1, 12); in test_crc_calc()
98 result = crc_calc(test_data, CRC32_VEC_LEN2, type); in test_crc_calc()
124 rte_free(test_data); in test_crc_calc()
128 rte_free(test_data); in test_crc_calc()
H A Dtest_trace_perf.c15 struct test_data;
24 struct __rte_cache_aligned test_data { struct
44 measure_perf(const char *str, struct test_data *data) in measure_perf() argument
66 wait_till_workers_are_ready(struct test_data *data) in wait_till_workers_are_ready()
76 signal_workers_to_finish(struct test_data *data) in signal_workers_to_finish()
127 run_test(const char *str, lcore_function_t f, struct test_data *data, size_t sz) in WORKER_DEFINE()
150 struct test_data *data; in test_trace_perf()
161 sz = sizeof(struct test_data); in test_trace_perf()
H A Dtest_acl.c282 test_classify_alg(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], in test_classify_alg() argument
311 if (result != test_data[i].allow) { in test_classify_alg()
314 __LINE__, i, test_data[i].allow, in test_classify_alg()
323 if (result != test_data[i].deny) { in test_classify_alg()
326 __LINE__, i, test_data[i].deny, in test_classify_alg()
341 test_classify_run(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], in test_classify_run() argument
359 bswap_test_data(test_data, dim, 1); in test_classify_run()
363 data[i] = (uint8_t *)&test_data[i]; in test_classify_run()
367 ret = test_classify_alg(acx, test_data, data, dim, alg[i]); in test_classify_run()
376 bswap_test_data(test_data, dim, 0); in test_classify_run()
[all …]
H A Dtest_cryptodev_blockcipher.h59 const struct blockcipher_test_data *test_data; member
H A Dtest_mbuf.c2091 struct test_case *test_data) in create_packet() argument
2102 memcpy(seg_lengths, test_data->seg_lengths, in create_packet()
2103 sizeof(unsigned int)*test_data->seg_count); in create_packet()
2104 for (seg = 0; seg < test_data->seg_count; seg++) { in create_packet()
2114 if (test_data->flags == MBUF_HEADER && seg == 0) { in create_packet()