]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Jan 2020 03:02:41 +0000 (22:02 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit47a217f9bfccc81a0f9eae728b6e5394f96af662
tree8ada8fc5ac01278d38ee938379e26f9781a5195f
parent671207c1bcf4d23a21b2ebdaed86005cf6e41c73
tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined

BugLink: https://bugs.launchpad.net/bugs/1861934
commit b8299d362d0837ae39e87e9019ebe6b736e0f035 upstream.

On some archs with some configurations, MCOUNT_INSN_SIZE is not defined, and
this makes the stack tracer fail to compile. Just define it to zero in this
case.

Link: https://lore.kernel.org/r/202001020219.zvE3vsty%lkp@intel.com
Cc: stable@vger.kernel.org
Fixes: 4df297129f622 ("tracing: Remove most or all of stack tracer stack size from stack_max_size")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/trace/trace_stack.c