mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] kbuild: dead code elimination: ftrace fixes
@ 2016-12-22  8:51 Marcin Nowakowski
  2016-12-22  8:51 ` [PATCH 1/2] kbuild: keep __mcount_loc table through dead code elimination Marcin Nowakowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Marcin Nowakowski @ 2016-12-22  8:51 UTC (permalink / raw)
  To: Arnd Bergmann, linux-kernel; +Cc: Nicholas Piggin

Enabling dead code & data elimination currently breaks ftrace operation,
as the __mcount_loc section is removed (as it is not referenced directly
anywhere in the code).
Moreover, there are a lot of entries missing in the __mcount_loc section
as the recordmcount tool doesn't currently properly handle the section
names as created by the use of -ffunction-sections.

The following 2 patches fix that behaviour.
They are based on next-20161208.

Marcin Nowakowski (2):
  kbuild: keep __mcount_loc table through dead code elimination
  recordmcount: fix mcount recording with -ffunction-sections

 include/asm-generic/vmlinux.lds.h |  2 +-
 scripts/Makefile                  |  5 +++++
 scripts/recordmcount.c            | 26 +++++++++++++++++++++++++-
 3 files changed, 31 insertions(+), 2 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-22  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22  8:51 [PATCH RESEND 0/2] kbuild: dead code elimination: ftrace fixes Marcin Nowakowski
2016-12-22  8:51 ` [PATCH 1/2] kbuild: keep __mcount_loc table through dead code elimination Marcin Nowakowski
2016-12-22  8:51 ` [PATCH 2/2] recordmcount: fix mcount recording with -ffunction-sections Marcin Nowakowski
2016-12-22  9:08 ` [PATCH RESEND 0/2] kbuild: dead code elimination: ftrace fixes Nicholas Piggin
2016-12-22  9:15   ` Marcin Nowakowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®