Re: [RFC PATCH v3 0/3] Introduce BPF map tracing capability

From: Alexei Starovoitov
Date: Wed Nov 03 2021 - 13:50:11 EST


On Wed, Nov 3, 2021 at 10:45 AM Joe Burton <jevburton.kernel@xxxxxxxxx> wrote:
>
> Sort of - I hit issues when defining the function in the same
> compilation unit as the call site. For example:
>
> static noinline int bpf_array_map_trace_update(struct bpf_map *map,
> void *key, void *value, u64 map_flags)

Not quite :)
You've had this issue because of 'static noinline'.
Just 'noinline' would not have such issues even in the same file.

Reminder: please don't top post and trim your replies.