powerpc/ftrace: Remove pointer to struct module from dyn_arch_ftrace
authorNaveen N Rao <naveen@kernel.org>
Wed, 30 Oct 2024 07:08:39 +0000 (12:38 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Oct 2024 00:00:53 +0000 (11:00 +1100)
commit8b0dc1305ea0bbb015b560193cdd76fd4100f062
tree86266bf2fcb96e7679865212a42a7f647ebb5722
parentc12cfe9dee077763708e0a5cf3aca02a85b1e8ba
powerpc/ftrace: Remove pointer to struct module from dyn_arch_ftrace

Pointer to struct module is only relevant for ftrace records belonging
to kernel modules. Having this field in dyn_arch_ftrace wastes memory
for all ftrace records belonging to the kernel. Remove the same in
favour of looking up the module from the ftrace record address, similar
to other architectures.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Naveen N Rao <naveen@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241030070850.1361304-7-hbathini@linux.ibm.com
arch/powerpc/include/asm/ftrace.h
arch/powerpc/kernel/trace/ftrace.c
arch/powerpc/kernel/trace/ftrace_64_pg.c