]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mips: ftrace: fix static function graph tracing
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 24 Mar 2018 16:57:49 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:18:44 +0000 (11:18 +0200)
commite7e6fc525e156fda0e20875f8a751e212aee7eb5
tree4423c4d78cd406e1a5f83a2ccdc79aff57035bfd
parentf304c2500a63b5b350fe6e892ac65249258dd428
mips: ftrace: fix static function graph tracing

commit 6fb8656646f996d1eef42e6d56203c4915cb9e08 upstream.

ftrace_graph_caller was never run after calling ftrace_trace_function,
breaking the function graph tracer. Fix this, bringing it in line with the
x86 implementation.

While we're at it, also streamline the control flow of _mcount a bit to
reduce the number of branches.

This issue was reported before:
https://www.linux-mips.org/archives/linux-mips/2014-11/msg00295.html

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Tested-by: Matt Redfearn <matt.redfearn@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/18929/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: stable@vger.kernel.org # v3.17+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/mcount.S