On Fri, 14 Feb 2025 23:14:26 +0100
Jiri Olsa wrote:
> > + while (fscanf(fp, "%16s %16s %c %*s\n", addr_str, size_str, &type) ==
> > 3) {
> > + uint64_t addr;
> > + uint64_t size;
> > +
> > + /* Only care about functions */
> > + if (type != 't' && type !
On Thu, Feb 13, 2025 at 11:20:51AM -0500, Steven Rostedt wrote:
SNIP
> +static int cmp_funcs(const void *A, const void *B)
> +{
> + const struct func_info *a = A;
> + const struct func_info *b = B;
> +
> + if (a->addr < b->addr)
> + return -1;
> + return a->addr > b->a
From: Steven Rostedt
When a function is annotated as "weak" and is overridden, the code is not
removed. If it is traced, the fentry/mcount location in the weak function
will be referenced by the "__mcount_loc" section. This will then be added
to the available_filter_functions list. Since only the