add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 18:05:21 +08:00
parent 6d3d07f60a
commit f8dd05c006
2 changed files with 6 additions and 6 deletions

View File

@ -141,12 +141,12 @@ void *run_benchmark(void *args) {
pthread_t benchmark_task;
static int embenchmark(void) {
// pthread_attr_t attr;
// attr.schedparam.sched_priority = 25;
// attr.stacksize = 4096;
pthread_attr_t attr;
attr.schedparam.sched_priority = 25;
attr.stacksize = 4096;
// PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
run_benchmark(NULL);
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
// run_benchmark(NULL);
return 0;
}
PRIV_SHELL_CMD_FUNCTION(embenchmark, benchmark, PRIV_SHELL_CMD_MAIN_ATTR);

View File

@ -10,7 +10,7 @@
* See the Mulan PSL v2 for more details.
*/
__STACKSIZE__ = 6144;
__STACKSIZE__ = 4096;
OUTPUT_ARCH( "riscv" )
MEMORY
{