bugzilla: https://bugzilla.openanolis.cn/show_bug.cgi?id=1687
Description of problem:
On Anolis-8.4-4.19, if there is another instance which is currently reading trace_pipe, when echo function > current_tracer, the bash shows "echo : write error: device or resources busy". When executing lsof 2>/dev/null | grep /sys/kernel/debug/tracing, tracing is all occupied by the running instance.
Steps to Reproduce:
- Create a vm with Anolis OS 8.4 ANCK 64-bit
- Execute "echo function > /sys/kernel/debug/tracing/current_tracer"
Actual results:
execute failed
-bash: echo: write error: Device or resource busy
Expected results:
execute complete with no error
upstream link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7ef282e05132d56b6f6b71e3873f317664bea78b