All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc
@ 2022-05-24 13:17 ` Christophe Leroy
  0 siblings, 0 replies; 43+ messages in thread
From: Christophe Leroy @ 2022-05-24 13:17 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman, peterz,
	aik, sv, rostedt, jpoimboe, naveen.n.rao, mbenes
  Cc: Christophe Leroy, linux-kernel, linuxppc-dev

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

-- 
2.35.3


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

end of thread, other threads:[~2022-06-24 18:47 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 13:17 [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc Christophe Leroy
2022-05-24 13:17 ` Christophe Leroy
2022-05-24 13:17 ` [RFC PATCH v2 1/7] objtool: Fix SEGFAULT Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 13:17 ` [RFC PATCH v2 2/7] objtool: Use target file endianness instead of a compiled constant Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 13:17 ` [RFC PATCH v2 3/7] objtool: Use target file class size " Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 17:59   ` Peter Zijlstra
2022-05-24 17:59     ` Peter Zijlstra
2022-05-24 13:17 ` [RFC PATCH v2 4/7] objtool: Add --mnop as an option to --mcount Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 13:17 ` [RFC PATCH v2 5/7] objtool: Enable objtool to run only on files with ftrace enabled Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 18:01   ` Peter Zijlstra
2022-05-24 18:01     ` Peter Zijlstra
2022-05-24 18:02     ` Peter Zijlstra
2022-05-24 18:02       ` Peter Zijlstra
2022-05-24 18:59       ` Christophe Leroy
2022-05-24 18:59         ` Christophe Leroy
2022-05-24 19:50         ` Peter Zijlstra
2022-05-24 19:50           ` Peter Zijlstra
2022-05-25 11:00           ` Sathvika Vasireddy
2022-05-24 13:17 ` [RFC PATCH v2 6/7] objtool/powerpc: Enable objtool to be built on ppc Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-24 13:17 ` [RFC PATCH v2 7/7] objtool/powerpc: Add --mcount specific implementation Christophe Leroy
2022-05-24 13:17   ` Christophe Leroy
2022-05-25 10:14 ` [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc Sathvika Vasireddy
2022-05-25 10:14   ` Sathvika Vasireddy
2022-05-25 16:51   ` Segher Boessenkool
2022-05-25 16:51     ` Segher Boessenkool
2022-05-25 17:39   ` Christophe Leroy
2022-05-25 17:39     ` Christophe Leroy
2022-05-25 18:12     ` Sathvika Vasireddy
2022-05-25 18:12       ` Sathvika Vasireddy
2022-06-15 16:03       ` Christophe Leroy
2022-06-15 16:03         ` Christophe Leroy
2022-06-18  4:56         ` Sathvika Vasireddy
2022-06-18  4:56           ` Sathvika Vasireddy
2022-06-24  7:08           ` Christophe Leroy
2022-06-24  7:08             ` Christophe Leroy
2022-06-24 18:44             ` Sathvika Vasireddy
2022-06-24 18:44               ` Sathvika Vasireddy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.