From 21eee47631378e0713a8ad57813dd282c62354ae Mon Sep 17 00:00:00 2001 From: TXuian <1163589503@qq.com> Date: Wed, 7 Dec 2022 19:11:27 +0800 Subject: [PATCH] add benchmark to app. TODO: test benchmark. --- .../Applications/benchmark/support/benchmark.c | 14 +++++++------- .../XiZi_IIoT/board/xidatong-riscv64/link.lds | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/APP_Framework/Applications/benchmark/support/benchmark.c b/APP_Framework/Applications/benchmark/support/benchmark.c index 466f542fe..cc3f00f00 100644 --- a/APP_Framework/Applications/benchmark/support/benchmark.c +++ b/APP_Framework/Applications/benchmark/support/benchmark.c @@ -53,12 +53,12 @@ BenchmarkPair bmh_list[] = { {.handle = &qrtest_handle, .name = "qrtest", .time = 0}, // {.handle = &combined_handle, .name = "combined", .time = 0}, // // {.handle = &slre_handle, .name = "slre", .time = 0}, // - {.handle = &libst_handle, .name = "libst", .time = 0}, // - {.handle = &statemate_handle, .name = "statemate", .time = 0}, // - {.handle = &tarfind_handle, .name = "tarfind", .time = 0}, // - {.handle = &libud_handle, .name = "libud", .time = 0}, // - // {.handle = &libwikisort_handle, .name = "libwikisort", .time = 0}, // - {.handle = NULL, .name = "", .time = 0}, // + {.handle = &libst_handle, .name = "libst", .time = 0}, // + {.handle = &statemate_handle, .name = "statemate", .time = 0}, // + {.handle = &tarfind_handle, .name = "tarfind", .time = 0}, // + {.handle = &libud_handle, .name = "libud", .time = 0}, // + {.handle = &libwikisort_handle, .name = "libwikisort", .time = 0}, // + {.handle = NULL, .name = "", .time = 0}, // }; float benchmark_time[25]; @@ -143,7 +143,7 @@ pthread_t benchmark_task; static int embenchmark(void) { pthread_attr_t attr; attr.schedparam.sched_priority = 25; - attr.stacksize = 4096; + attr.stacksize = 5120; PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); // run_benchmark(NULL); diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds index 64bc796fc..6026a8d94 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds @@ -10,7 +10,7 @@ * See the Mulan PSL v2 for more details. */ -__STACKSIZE__ = 4096; +__STACKSIZE__ = 5120; OUTPUT_ARCH( "riscv" ) MEMORY {