recordmcount: arm64: Replace the ignored mcount call into nop
authorLi Bin <huawei.libin@huawei.com>
Fri, 30 Oct 2015 08:31:04 +0000 (16:31 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 3 Nov 2015 15:50:29 +0000 (10:50 -0500)
commit2ee8a74f2a5da913637f75a19a0da0e7a08c0f86
tree30a1fe09feca6c1aca42c716aa0ef36ceb8fdce9
parentc84da8b9ad3761eef43811181c7e896e9834b26b
recordmcount: arm64: Replace the ignored mcount call into nop

By now, the recordmcount only records the function that in
following sections:
.text/.ref.text/.sched.text/.spinlock.text/.irqentry.text/
.kprobes.text/.text.unlikely

For the function that not in these sections, the call mcount
will be in place and not be replaced when kernel boot up. And
it will bring performance overhead, such as do_mem_abort (in
.exception.text section). This patch make the call mcount to
nop for this case in recordmcount.

Link: http://lkml.kernel.org/r/1446019445-14421-1-git-send-email-huawei.libin@huawei.com
Link: http://lkml.kernel.org/r/1446193864-24593-4-git-send-email-huawei.libin@huawei.com
Cc: <lkp@intel.com>
Cc: <catalin.marinas@arm.com>
Cc: <takahiro.akashi@linaro.org>
Cc: <stable@vger.kernel.org> # 3.18+
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Li Bin <huawei.libin@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/recordmcount.c