]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:29 +0000 (13:59 +0100)
commit6077e5ac04544703f0d24085aee9ce218c77795f
treec21648340987e85897dda7b40df27fbda11f62c2
parentd0358283c5615e1a0e763530a1e7655b180ec7a4
ftrace: Optimize the allocation for mcount entries

commit bcea02b096333dc74af987cb9685a4dbdd820840 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: a79008755497d ("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>
(cherry picked from commit fadfcf39fbcdc9916b8593b93e47116845f45875)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
kernel/trace/ftrace.c