aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZheng Yejian <zhengyejian1@huawei.com>2023-09-06 16:19:30 +0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-09-07 16:38:54 -0400
commitf6bd2c92488c30ef53b5bd80c52f0a7eee9d545a (patch)
treef2b3e26bc8ffbafaa55ed241753fb98d251dabb8 /tools/perf/scripts/python/export-to-postgresql.py
parenttracing: Have event inject files inc the trace array ref count (diff)
downloadlinux-rng-f6bd2c92488c30ef53b5bd80c52f0a7eee9d545a.tar.xz
linux-rng-f6bd2c92488c30ef53b5bd80c52f0a7eee9d545a.zip
ring-buffer: Avoid softlockup in ring_buffer_resize()
When user resize all trace ring buffer through file 'buffer_size_kb', then in ring_buffer_resize(), kernel allocates buffer pages for each cpu in a loop. If the kernel preemption model is PREEMPT_NONE and there are many cpus and there are many buffer pages to be allocated, it may not give up cpu for a long time and finally cause a softlockup. To avoid it, call cond_resched() after each cpu buffer allocation. Link: https://lore.kernel.org/linux-trace-kernel/20230906081930.3939106-1-zhengyejian1@huawei.com Cc: <mhiramat@kernel.org> Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions