Skip to content

RFC Speed booting by sorting ORC unwind tables at build time

Shile Zhang linux-kbuild lkml 6 versions – Applied

Status from this message: The following commit has been merged into the core/objtool branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 RFC Latest7 patches 3 repliesApplied
  2. v5 RFC7 patches 2 repliesSuperseded
  3. v4 RFC7 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 RFC7 patches14 repliesSuperseded
v2 RFC3 patches2 repliesSuperseded
v1 RFC4 patches7 repliesSuperseded

Changes in v6 from the cover letter

- fix compile error reported by kbuild test robot;

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/7scripts/sortextable: Rewrite error/success handlingscripts/sortextable.c scripts/sortextable.h+48 -820 replies
2/7scripts/sortextable: kernel coding style formatingscripts/sortextable.c scripts/sortextable.h+111 -1020 replies
3/7scripts/sortextable: Remove dead codescripts/sortextable.h+0 -40 replies
4/7scripts/sortextable: refactor do_func() functionscripts/sortextable.c scripts/sortextable.h+61 -580 replies
5/7scripts/sorttable: rename sortextable to sorttablearch/arc/Kconfig arch/arm/Kconfig arch/arm64/Kconfig +13 more+26 -260 replies
6/7scripts/sorttable: Add ORC unwind tables sort concurrentlyscripts/Makefile scripts/sorttable.c scripts/sorttable.h+189 -60 replies
7/7x86/unwind/orc: remove run-time ORC unwind tables sortarch/x86/kernel/unwind_orc.c scripts/link-vmlinux.sh+9 -40 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)
1/7A-b
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [RFC PATCH v6 0/7] Speed booting by sorting ORC unwind tables at build time

Hi,

Sorry, update for compile error fix, reported by Intel's kbuild test robot. Any comments or suggestions are welcome!

Thanks!

Changelog:
==========
v5->v6:
- fix compile error reported by kbuild test robot;

v4->v5:
- replace sort with qsort, suggested by Andy Lutomirski <[email protected]>;
- add error handling in link scripts;
- fixed some review findings;
https://lore.kernel.org/lkml/[email protected]/

v3->v4:
- Code refactored for Peter's review findings and suggestions.
https://lore.kernel.org/lkml/[email protected]/

v2->v3:
- Discard new added sortorctable tool and related Kconfig changes.
- Refactored sortextable, makes it more readable and extendable.
- Rename 'sortextable' to 'sorttable', for more kernel tables extend.
- Add ORC unwind tables sort into sorttable.
- Remove the runtime ORC tables sort.
https://lore.kernel.org/lkml/[email protected]/

v1->v2:
- Removed new added Kconfig and runtime sort code, advised by Josh Poimboeuf.
- Some minor refactoring.
https://lore.kernel.org/lkml/[email protected]/

v1:
- Added a new sortorctable tool to sort ORC unwind tables at build time, same as sortextable.
- Add a new Kconfigure to control if ORC unwind tables sort at build time.
https://lore.kernel.org/lkml/[email protected]/

Shile Zhang (7):
scripts/sortextable: Rewrite error/success handling scripts/sortextable: kernel coding style formating scripts/sortextable: Remove dead code scripts/sortextable: refactor do_func() function scripts/sorttable: rename sortextable to sorttable scripts/sorttable: Add ORC unwind tables sort concurrently x86/unwind/orc: remove run-time ORC unwind tables sort

 arch/arc/Kconfig                       |   2 +-
 arch/arm/Kconfig                       |   2 +-
 arch/arm64/Kconfig                     |   2 +-
 arch/microblaze/Kconfig                |   2 +-
 arch/mips/Kconfig                      |   2 +-
 arch/parisc/Kconfig                    |   2 +-
 arch/powerpc/Kconfig                   |   2 +-
 arch/s390/Kconfig                      |   2 +-
 arch/x86/Kconfig                       |   2 +-
 arch/x86/kernel/unwind_orc.c           |   8 +-
 arch/xtensa/Kconfig                    |   2 +-
 init/Kconfig                           |   2 +-
 scripts/.gitignore                     |   2 +-
 scripts/Makefile                       |  13 +-
 scripts/link-vmlinux.sh                |  13 +-
 scripts/sortextable.h                  | 209 --------------
 scripts/{sortextable.c => sorttable.c} | 305 +++++++++-----------
 scripts/sorttable.h                    | 380 +++++++++++++++++++++++++
 18 files changed, 557 insertions(+), 395 deletions(-)
 delete mode 100644 scripts/sortextable.h
 rename scripts/{sortextable.c => sorttable.c} (67%)
 create mode 100644 scripts/sorttable.h
Signature · 1 line
2.24.0.rc2