aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorNaveen N Rao <naveen@kernel.org>2024-10-30 12:38:37 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2024-10-31 11:00:53 +1100
commit654b3fa61b817a46037197b73a7ac6d36d01df7e (patch)
tree1738d5b550b4253dce3f2d6074dd3f54432327d0 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentpowerpc64/ftrace: Nop out additional 'std' instruction emitted by gcc v5.x (diff)
downloadwireguard-linux-654b3fa61b817a46037197b73a7ac6d36d01df7e.tar.xz
wireguard-linux-654b3fa61b817a46037197b73a7ac6d36d01df7e.zip
powerpc32/ftrace: Unify 32-bit and 64-bit ftrace entry code
On 32-bit powerpc, gcc generates a three instruction sequence for function profiling: mflr r0 stw r0, 4(r1) bl _mcount On kernel boot, the call to _mcount() is nop-ed out, to be patched back in when ftrace is actually enabled. The 'stw' instruction therefore is not necessary unless ftrace is enabled. Nop it out during ftrace init. When ftrace is enabled, we want the 'stw' so that stack unwinding works properly. Perform the same within the ftrace handler, similar to 64-bit powerpc. 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-5-hbathini@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions