Re: [PATCH 00/14] scripts/sorttable: ftrace: Remove place holders for weak functions in available_filter_functions

Steven Rostedt
2025-01-02T19:46:04Z

On Thu, 2 Jan 2025 14:45:53 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

> > Why even do that? Why not just make the mcount_loc table be proper in
> > the first place.
>
> I was a bit nervous about changing the stop_mcount_loc value. I thought of
> doing that first, but then I noticed that the value is found by looking at
> the System.map file and not from the object itself. Changing it in the
> object will require some more elf parsing. Just zeroing out didn't require
> that.

I could still zero it out, but then change the start_mcount_loc to the
first valid function after the sort. As all the zeros will be at the start.

-- Steve