diff options
author | Shaopeng Tan <[email protected]> | 2023-04-13 16:22:56 +0900 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-04-13 11:34:12 -0600 |
commit | a080b6e74b241dbc7e13dd378d6f6fc884579196 (patch) | |
tree | b572b6b6ab420e132cc9f0d4d957398f312de376 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 1e359b6a9422a2bdef14798d539e9d5783bdd5c1 (diff) |
selftests/resctrl: Flush stdout file buffer before executing fork()
When a process has buffered output, a child process created by fork()
will also copy buffered output. When using kselftest framework,
the output (resctrl test result message) will be printed multiple times.
Add fflush() to flush out the buffered output before executing fork().
Reviewed-by: Shuah Khan <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Signed-off-by: Shaopeng Tan <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions