summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorzhoumin <teczm@foxmail.com>2025-03-31 20:00:34 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-04-02 16:51:25 +0300
commit42ea22e754ba4f2b86f8760ca27f6f71da2d982c (patch)
tree8710fc517e702c8ff127a25788f8e23e50f8231d /tools/perf/scripts/python/export-to-sqlite.py
parent2c9ee74a6d6166d0f31f00841cde16a2915fffcb (diff)
downloadlinux-42ea22e754ba4f2b86f8760ca27f6f71da2d982c.tar.xz
ftrace: Add cond_resched() to ftrace_graph_set_hash()
When the kernel contains a large number of functions that can be traced, the loop in ftrace_graph_set_hash() may take a lot of time to execute. This may trigger the softlockup watchdog. Add cond_resched() within the loop to allow the kernel to remain responsive even when processing a large number of functions. This matches the cond_resched() that is used in other locations of the code that iterates over all functions that can be traced. Cc: stable@vger.kernel.org Fixes: b9b0c831bed26 ("ftrace: Convert graph filter to use hash tables") Link: https://lore.kernel.org/tencent_3E06CE338692017B5809534B9C5C03DA7705@qq.com Signed-off-by: zhoumin <teczm@foxmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions