From 62860c1be5343470dc68447ffa3f74b59b02dabe Mon Sep 17 00:00:00 2001 From: Hailong Liu Date: Wed, 24 May 2023 06:05:18 +0000 Subject: [PATCH] unity_nosched: flush the cache to file rightnow Signed-off-by: Hailong Liu --- .../monitor/unity/collector/plugin/unity_nosched/unity_nosched.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/tools/monitor/unity/collector/plugin/unity_nosched/unity_nosched.c b/source/tools/monitor/unity/collector/plugin/unity_nosched/unity_nosched.c index 444e5b3f..45b78eb5 100644 --- a/source/tools/monitor/unity/collector/plugin/unity_nosched/unity_nosched.c +++ b/source/tools/monitor/unity/collector/plugin/unity_nosched/unity_nosched.c @@ -77,6 +77,7 @@ void flush_to_file(struct stackinfo *ev, int index) globEv.elem[i].e.comm, globEv.elem[i].e.pid, globEv.elem[i].e.delay, (globEv.elem[i].e.exit==globEv.elem[i].e.stamp)?"(EOF)":ts); print_stack(globEv.stackfd, globEv.elem[i].e.ret, ksyms, logfp); + fflush(logfp); } } -- Gitee