Skip to content

objtool: Honey, I shrunk the instruction

Peter Zijlstra lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10objtool: Change arch_decode_instruction() signaturetools/objtool/arch/powerpc/decode.c tools/objtool/arch/x86/decode.c tools/objtool/check.c +1 more+64 -710 replies
2/10objtool: Make instruction::stack_ops a single-linked listtools/objtool/arch/x86/decode.c tools/objtool/check.c tools/objtool/include/objtool/arch.h +1 more+9 -100 replies
3/10objtool: Make instruction::alts a single-linked listtools/objtool/check.c tools/objtool/include/objtool/check.h+10 -100 replies
4/10objtool: Shrink instruction::{type,visited}tools/objtool/include/objtool/check.h+5 -50 replies
5/10objtool: Remove instruction::reloctools/objtool/check.c tools/objtool/include/objtool/check.h+15 -170 replies
6/10objtool: Union instruction::{call_dest,jump_table}tools/objtool/check.c tools/objtool/include/objtool/check.h+50 -290 replies
7/10objtool: Fix overlapping alternativestools/objtool/check.c+43 -260 replies
8/10x86: Fix FILL_RETURN_BUFFERarch/x86/include/asm/nospec-branch.h+1 -10 replies
9/10objtool: Remove instruction::listtools/objtool/check.c tools/objtool/include/objtool/check.h tools/objtool/include/objtool/objtool.h +1 more+133 -860 replies
10/10objtool: Shrink reloctools/objtool/include/objtool/elf.h+9 -30 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNathan ChancellorJosh PoimboeufThomas Weißschuh
SeriesT-b A-b T-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] objtool: Honey, I shrunk the instruction

Hi,

Boris complained he could no longer build allyesconfig on his 32G desktop machine without having OOM terminate either objtool or chrome.

After talking about these patches on IRC, Nathan mentioned the linux-clang CI was also having trouble of recent, and these patches appear to make it happy again.

In total these patches shrink an allyesconfig run by about 6G:

pre: 5:58.22 real, 226.69 user, 131.22 sys, 26221520 mem
post: 5:03.34 real, 210.75 user, 88.80 sys, 20241232 mem

Also at:

https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=objtool/core