Skip to content

RFC objtool: Enable and implement --mcount option on powerpc

Christophe Leroy linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest7 patches 14 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7objtool: Fix SEGFAULTtools/objtool/check.c+1 -10 replies
2/7objtool: Use target file endianness instead of a compiled constanttools/objtool/arch/x86/include/arch/endianness.h tools/objtool/check.c tools/objtool/include/objtool/endianness.h +3 more+27 -310 replies
3/7objtool: Use target file class size instead of a compiled constanttools/objtool/check.c tools/objtool/elf.c tools/objtool/include/objtool/elf.h+23 -91 reply
4/7objtool: Add --mnop as an option to --mcountMakefile arch/x86/Kconfig scripts/Makefile.build +3 more+30 -100 replies
5/7objtool: Enable objtool to run only on files with ftrace enabledscripts/Makefile.build+2 -25 replies
6/7objtool/powerpc: Enable objtool to be built on ppcarch/powerpc/Kconfig tools/objtool/arch/powerpc/Build tools/objtool/arch/powerpc/decode.c +4 more+136 -00 replies
7/7objtool/powerpc: Add --mcount specific implementationarch/powerpc/Kconfig tools/objtool/arch/powerpc/decode.c tools/objtool/check.c +2 more+38 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc

This draft series adds PPC32 support to Sathvika's series. Verified on pmac32 on QEMU.

It should in principle also work for PPC64 BE but for the time being something goes wrong. In the beginning I had a segfaut hence the first patch. But I still get no mcount section in the files.

Christophe Leroy (3):
objtool: Fix SEGFAULT
objtool: Use target file endianness instead of a compiled constant
objtool: Use target file class size instead of a compiled constant

Sathvika Vasireddy (4):
objtool: Add --mnop as an option to --mcount
objtool: Enable objtool to run only on files with ftrace enabled objtool/powerpc: Enable objtool to be built on ppc objtool/powerpc: Add --mcount specific implementation

 Makefile                                      |  4 +-
 arch/powerpc/Kconfig                          |  2 +
 arch/x86/Kconfig                              |  1 +
 scripts/Makefile.build                        |  5 +-
 tools/objtool/arch/powerpc/Build              |  2 +
 tools/objtool/arch/powerpc/decode.c           | 88 +++++++++++++++++++
 .../arch/powerpc/include/arch/cfi_regs.h      | 11 +++
 tools/objtool/arch/powerpc/include/arch/elf.h |  8 ++
 .../arch/powerpc/include/arch/special.h       | 21 +++++
 tools/objtool/arch/powerpc/special.c          | 19 ++++
 .../arch/x86/include/arch/endianness.h        |  9 --
 tools/objtool/builtin-check.c                 | 14 +++
 tools/objtool/check.c                         | 51 ++++++-----
 tools/objtool/elf.c                           | 23 ++++-
 tools/objtool/include/objtool/builtin.h       |  1 +
 tools/objtool/include/objtool/elf.h           |  9 ++
 tools/objtool/include/objtool/endianness.h    | 29 +++---
 tools/objtool/orc_dump.c                      | 11 ++-
 tools/objtool/orc_gen.c                       |  4 +-
 tools/objtool/special.c                       |  3 +-
 20 files changed, 257 insertions(+), 58 deletions(-)
 create mode 100644 tools/objtool/arch/powerpc/Build
 create mode 100644 tools/objtool/arch/powerpc/decode.c
 create mode 100644 tools/objtool/arch/powerpc/include/arch/cfi_regs.h
 create mode 100644 tools/objtool/arch/powerpc/include/arch/elf.h
 create mode 100644 tools/objtool/arch/powerpc/include/arch/special.h
 create mode 100644 tools/objtool/arch/powerpc/special.c
 delete mode 100644 tools/objtool/arch/x86/include/arch/endianness.h
Signature · 1 line
2.35.3