1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
zhoumin 42ea22e754 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>
2025-04-02 09:51:25 -04:00
..
2025-03-30 13:45:28 -07:00
2025-03-24 21:28:12 -07:00
2025-01-25 08:22:26 +00:00
2025-03-24 21:18:05 -07:00
2025-03-25 15:44:19 -07:00
2025-03-30 15:44:36 -07:00
2025-03-31 13:37:22 -07:00
2025-03-27 19:22:24 -07:00
2025-03-24 19:41:37 -07:00
2025-03-27 16:03:52 -07:00
2025-03-26 21:48:21 -07:00
2025-03-30 15:44:36 -07:00
2025-03-25 14:47:04 -07:00
2025-02-10 16:56:58 -08:00
2025-03-24 13:39:27 -07:00
2025-03-30 15:25:15 -07:00
2025-01-31 12:07:07 -08:00
2025-03-27 19:22:24 -07:00
2025-03-06 15:13:13 -04:00
2025-03-24 13:39:27 -07:00
2025-01-28 11:34:03 -08:00
2025-03-29 11:59:43 -07:00
2025-02-12 12:12:27 +01:00
2025-03-24 09:52:37 -07:00
2025-03-25 10:54:15 -07:00
2025-02-26 14:22:47 -08:00