From: Longfang Liu <liulongfang@huawei.com> Added support for init2 performance test function for uadk_tools of comp module. Signed-off-by: Longfang Liu <liulongfang@huawei.com> --- uadk_tool/benchmark/zip_uadk_benchmark.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uadk_tool/benchmark/zip_uadk_benchmark.c b/uadk_tool/benchmark/zip_uadk_benchmark.c index 8573cdc..68b93cf 100644 --- a/uadk_tool/benchmark/zip_uadk_benchmark.c +++ b/uadk_tool/benchmark/zip_uadk_benchmark.c @@ -395,7 +395,16 @@ static int init_ctx_config2(struct acc_option *options) ZIP_TST_PRT("failed to do comp init2!\n"); else ret = wd_comp_init2_(alg_name, SCHED_POLICY_DEV, TASK_HW, &cparams); + if (ret) { + ZIP_TST_PRT("failed to do comp init2!\n"); + return ret; + } + + return 0; + +out_freectx: free(ctx_set_num); + return ret; } -- 2.33.0