Re: [PATCHv2 bpf 3/3] bpf: Force cookies array to follow symbols sorting

From: Steven Rostedt
Date: Wed Jun 08 2022 - 12:08:40 EST


On Wed, 8 Jun 2022 08:59:50 -0700
Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote:

> Would it be possible to preprocess ftrace_pages to remove such invalid
> records (so that by the time we have to report
> available_filter_functions there are no invalid records)? Or that data
> is read-only when kernel is running?

It's possible, but will be time consuming (slow down boot up) and racy. In
other words, I didn't feel it was worth it.

We can add it. How much of an issue is it to have these place holders for
you? Currently, I only see it causes issues with tests. Is it really an
issue for use cases?

-- Steve