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-03-07 19:58:05 -08:00
2025-01-25 08:22:26 +00:00
2025-03-12 13:41:44 +01:00
2025-03-24 21:18:05 -07:00
2025-03-25 15:44:19 -07:00
2025-02-26 16:07:59 +01:00
2025-01-24 22:47:27 -08:00
2025-03-28 11:22:54 -07:00
2025-03-30 15:44:36 -07:00
2025-03-30 15:18:36 -07:00
2025-03-31 13:37:22 -07:00
2025-03-29 10:01:55 -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-04-02 09:51:25 -04:00
2025-02-12 12:24:16 +01:00
2025-02-19 14:08:41 +01:00
2025-01-29 20:02:04 -05:00
2025-03-18 15:34:27 +01:00
2025-03-07 22:03:09 -06:00
2025-03-30 15:44:36 -07:00
2025-03-04 18:44:29 -08:00
2025-03-25 14:47:04 -07:00
2025-02-10 16:56:58 -08:00
2025-01-28 13:48:37 +01: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-01-28 13:48:37 +01:00
2025-02-21 15:05:38 +01:00
2025-01-13 22:40:36 -08:00
2025-03-10 11:54:46 +01:00
2025-01-02 22:12:12 +01:00
2025-02-18 10:16:04 +01:00
2025-02-21 10:25:33 +01:00
2024-12-30 17:59:08 -08:00
2025-03-27 19:22:24 -07:00
2024-12-24 09:46:49 +01:00
2025-03-10 11:54:46 +01:00
2025-01-07 16:59:15 +01:00
2025-02-04 01:42:27 +01:00
2025-01-28 13:48:37 +01:00
2025-03-22 09:49:26 +01:00
2025-02-24 16:37:23 -05:00
2025-03-06 15:13:13 -04:00
2025-03-10 11:54:46 +01:00
2025-03-06 10:18:36 +01:00
2025-01-28 13:48:37 +01:00
2025-03-24 13:39:27 -07:00
2025-03-04 18:44:29 -08:00
2025-01-12 20:20:58 -08:00
2025-03-06 22:26:49 +01:00
2025-02-24 11:17:10 -08:00
2025-03-25 10:33:23 -07:00
2025-01-28 11:34:03 -08:00
2025-03-25 10:46:44 +01:00
2025-01-28 13:48:37 +01:00
2025-03-30 15:44:36 -07:00
2025-03-11 10:15:52 -07:00
2025-03-25 10:33:23 -07:00
2025-01-28 13:48:37 +01:00
2025-03-29 11:59:43 -07:00
2025-01-13 22:40:36 -08:00
2025-02-05 07:14:24 -08:00
2025-03-21 15:30:10 -04:00
2025-01-12 20:21:00 -08:00
2025-01-28 13:48:37 +01:00
2025-02-12 12:12:27 +01:00
2025-01-28 13:48:37 +01:00
2025-03-01 02:52:52 -05:00
2025-03-24 09:52:37 -07:00
2025-03-06 12:07:39 +01:00
2025-03-25 10:54:15 -07:00
2025-02-26 14:22:47 -08:00