Skip to content

objtool: Constify most of the instruction decoding loop

Ingo Molnar 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 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3objtool: Constify 'struct elf *' parameterstools/objtool/elf.c tools/objtool/elf.h+15 -150 replies
2/3objtool: Rename elf_read() to elf_open_read()tools/objtool/check.c tools/objtool/elf.c tools/objtool/elf.h+3 -34 replies
3/3objtool: Constify arch_decode_instruction()tools/objtool/arch.h tools/objtool/arch/x86/decode.c+4 -40 replies

Reviews trailers per patch

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

PatchJosh Poimboeuf
SeriesA-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] objtool: Constify most of the instruction decoding loop

Constify some of the decoding primitives, to ascertain and enforce that arch_decode_instructions() is a read-only consumer of the various ELF data structures. (Which it is.)

This is in preparation to parallelize the most expensive parts of objtool, but makes sense independently as well.

These bits can also be found at:

git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/objtool

(Subject to rebasing.)

Thanks,

Ingo

====
Ingo Molnar (3):
objtool: Constify 'struct elf *' parameters
objtool: Rename elf_read() to elf_open_read()
objtool: Constify arch_decode_instruction()

 tools/objtool/arch.h            |  2 +-
 tools/objtool/arch/x86/decode.c |  6 +++---
 tools/objtool/check.c           |  2 +-
 tools/objtool/elf.c             | 12 ++++++------
 tools/objtool/elf.h             | 22 +++++++++++-----------
 5 files changed, 22 insertions(+), 22 deletions(-)
Signature · 1 line
2.20.1