mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Add objtool and orc support for LoongArch
@ 2023-10-20  2:26 Tiezhu Yang
  2023-10-20  2:26 ` [PATCH v3 1/8] objtool/LoongArch: Enable objtool to be built Tiezhu Yang
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Tiezhu Yang @ 2023-10-20  2:26 UTC (permalink / raw)
  To: Josh Poimboeuf, Peter Zijlstra, Huacai Chen
  Cc: loongarch, linux-kernel, loongson-kernel

This version is based on the latest torvalds/linux.git (20231020)
which includes the commit 00c2ca84c680 ("LoongArch: Use SYM_CODE_*
to annotate exception handlers"), tested with the latest upstream
gcc and binutils (20231009).

v3:
  -- Use tab for indentation in special.h
  -- Replace BP/bp with FP/fp
  -- Modify jirl decoder to handle special case in hibernate_asm.o
  -- Remove the calling of bswap_if_needed() which always return false
  -- Remove OBJECT_FILES_NON_STANDARD_suspend_asm.o
  -- Remove check of assembler version in Makefile
  -- Remove UNWIND_HINT_EMPTY in kernel_entry
  -- Put unwind_init() after cpu_probe()
  -- Remove CONFIG_BPF_JIT_ALWAYS_ON in defconfig
  -- Rename title of patch #8 to "Add ORC stack unwinder support"
  -- Fix build error of scripts/sorttable.h reported by test robot
  -- Add exception_table[] to save exception handlers

Tiezhu Yang (8):
  objtool/LoongArch: Enable objtool to be built
  objtool/LoongArch: Implement instruction decoder
  objtool/x86: Separate arch-specific and generic parts
  objtool/LoongArch: Enable orc to be built
  objtool: Check local label about sibling call
  objtool: Check local label in add_dead_ends()
  objtool: Check local label in read_unwind_hints()
  LoongArch: Add ORC stack unwinder support

 arch/loongarch/Kconfig                             |   2 +
 arch/loongarch/Kconfig.debug                       |  11 +
 arch/loongarch/Makefile                            |  18 +
 arch/loongarch/include/asm/Kbuild                  |   1 +
 arch/loongarch/include/asm/bug.h                   |   1 +
 arch/loongarch/include/asm/exception.h             |   2 +
 arch/loongarch/include/asm/module.h                |   7 +
 arch/loongarch/include/asm/orc_header.h            |  19 +
 arch/loongarch/include/asm/orc_lookup.h            |  34 ++
 arch/loongarch/include/asm/orc_types.h             |  58 +++
 arch/loongarch/include/asm/stackframe.h            |   3 +
 arch/loongarch/include/asm/unwind.h                |  22 +-
 arch/loongarch/include/asm/unwind_hints.h          |  28 ++
 arch/loongarch/kernel/Makefile                     |   3 +
 arch/loongarch/kernel/entry.S                      |   5 +
 arch/loongarch/kernel/genex.S                      |   4 +
 arch/loongarch/kernel/module.c                     |  11 +-
 arch/loongarch/kernel/relocate_kernel.S            |   2 +
 arch/loongarch/kernel/setup.c                      |   2 +
 arch/loongarch/kernel/stacktrace.c                 |   1 +
 arch/loongarch/kernel/traps.c                      |  44 +-
 arch/loongarch/kernel/unwind_orc.c                 | 522 +++++++++++++++++++++
 arch/loongarch/kernel/vmlinux.lds.S                |   3 +
 arch/loongarch/lib/Makefile                        |   2 +
 arch/loongarch/mm/tlb.c                            |  27 +-
 arch/loongarch/mm/tlbex.S                          |   9 +
 arch/loongarch/vdso/Makefile                       |   1 +
 include/linux/compiler.h                           |   9 +
 scripts/Makefile                                   |   7 +-
 tools/arch/loongarch/include/asm/inst.h            | 161 +++++++
 tools/arch/loongarch/include/asm/orc_types.h       |  58 +++
 tools/include/linux/bitops.h                       |  11 +
 tools/objtool/Makefile                             |   4 +
 tools/objtool/arch/loongarch/Build                 |   3 +
 tools/objtool/arch/loongarch/decode.c              | 352 ++++++++++++++
 .../objtool/arch/loongarch/include/arch/cfi_regs.h |  22 +
 tools/objtool/arch/loongarch/include/arch/elf.h    |  30 ++
 .../objtool/arch/loongarch/include/arch/special.h  |  33 ++
 tools/objtool/arch/loongarch/orc.c                 | 171 +++++++
 tools/objtool/arch/loongarch/special.c             |  15 +
 tools/objtool/arch/x86/Build                       |   1 +
 tools/objtool/arch/x86/orc.c                       | 188 ++++++++
 tools/objtool/check.c                              | 118 +++--
 tools/objtool/include/objtool/orc.h                |  14 +
 tools/objtool/orc_dump.c                           |  69 +--
 tools/objtool/orc_gen.c                            | 113 +----
 46 files changed, 1964 insertions(+), 257 deletions(-)
 create mode 100644 arch/loongarch/include/asm/orc_header.h
 create mode 100644 arch/loongarch/include/asm/orc_lookup.h
 create mode 100644 arch/loongarch/include/asm/orc_types.h
 create mode 100644 arch/loongarch/include/asm/unwind_hints.h
 create mode 100644 arch/loongarch/kernel/unwind_orc.c
 create mode 100644 tools/arch/loongarch/include/asm/inst.h
 create mode 100644 tools/arch/loongarch/include/asm/orc_types.h
 create mode 100644 tools/objtool/arch/loongarch/Build
 create mode 100644 tools/objtool/arch/loongarch/decode.c
 create mode 100644 tools/objtool/arch/loongarch/include/arch/cfi_regs.h
 create mode 100644 tools/objtool/arch/loongarch/include/arch/elf.h
 create mode 100644 tools/objtool/arch/loongarch/include/arch/special.h
 create mode 100644 tools/objtool/arch/loongarch/orc.c
 create mode 100644 tools/objtool/arch/loongarch/special.c
 create mode 100644 tools/objtool/arch/x86/orc.c
 create mode 100644 tools/objtool/include/objtool/orc.h

-- 
2.1.0


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

end of thread, other threads:[~2023-10-21  8:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20  2:26 [PATCH v3 0/8] Add objtool and orc support for LoongArch Tiezhu Yang
2023-10-20  2:26 ` [PATCH v3 1/8] objtool/LoongArch: Enable objtool to be built Tiezhu Yang
2023-10-20  2:26 ` [PATCH v3 2/8] objtool/LoongArch: Implement instruction decoder Tiezhu Yang
2023-10-20  2:26 ` [PATCH v3 3/8] objtool/x86: Separate arch-specific and generic parts Tiezhu Yang
2023-10-20  2:26 ` [PATCH v3 4/8] objtool/LoongArch: Enable orc to be built Tiezhu Yang
2023-10-21  8:08   ` Huacai Chen
2023-10-20  2:26 ` [PATCH v3 5/8] objtool: Check local label about sibling call Tiezhu Yang
2023-10-20  9:30   ` Peter Zijlstra
2023-10-20 10:56     ` Tiezhu Yang
2023-10-20  2:26 ` [PATCH v3 6/8] objtool: Check local label in add_dead_ends() Tiezhu Yang
2023-10-20  2:27 ` [PATCH v3 7/8] objtool: Check local label in read_unwind_hints() Tiezhu Yang
2023-10-20  2:27 ` [PATCH v3 8/8] LoongArch: Add ORC stack unwinder support Tiezhu Yang
2023-10-21  8:08   ` Huacai Chen
2023-10-20  8:51 ` [PATCH v3 0/8] Add objtool and orc support for LoongArch Huacai Chen
2023-10-20 10:28   ` Tiezhu Yang
2023-10-20 10:45     ` Xi Ruoyao
2023-10-20 10:54       ` Tiezhu Yang
2023-10-21  8:13         ` Huacai Chen

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®