]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Optimize the allocation for mcount entries
authorWang Wensheng <wangwensheng4@huawei.com>
Wed, 9 Nov 2022 09:44:33 +0000 (09:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:17 +0000 (17:42 +0100)
commitecfbc496e20e7bbbeba02c1ac2c805f222570a09
treea52276e4390c8ea3ba7a24cf6dcb2c5253e9d6ea
parent7dd49d69029e007d4beece06fd4a65df003f9420
ftrace: Optimize the allocation for mcount entries

commit 73d6cfcea13742c44c3195217d8be609983c10a5 upstream.

If we can't allocate this size, try something smaller with half of the
size. Its order should be decreased by one instead of divided by two.

Link: https://lkml.kernel.org/r/20221109094434.84046-3-wangwensheng4@huawei.com
Cc: <mhiramat@kernel.org>
Cc: <mark.rutland@arm.com>
Cc: stable@vger.kernel.org
Fixes: b5abe386e6d2c ("ftrace: Allocate the mcount record pages as groups")
Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c