Re: [RFC][PATCH 00/36] objtool: Make recordmcount a subcommand
From: Steven Rostedt
Date: Tue Apr 14 2020 - 11:55:06 EST
On Tue, 14 Apr 2020 15:17:39 +0100
Julien Thierry <jthierry@xxxxxxxxxx> wrote:
> > I was hoping to have objtool handle all the operations needed that required
> > reading elf headers.
> >
>
> That makes sense, however, having each operation as an objtool
> subcommand doesn't solve that issue, right? Each invocation of objtool
> will re-read the elf object.
>
> I guess having all the relevant code in objtool as subcommand would be a
> first step towards that goal.
Exactly. I believe the goal (it's been a while since we discussed this),
was that we could "batch" the sub commands into a single command. That way,
the executable will be executed once per object file, load all the elf
headers, than iterate over all the sub commands that we set on the command
line.
-- Steve