Re: [PATCH] tracepoint: Do not warn on EEXIST or ENOENT
From: Steven Rostedt
Date: Sat Jun 26 2021 - 19:35:47 EST
On Sat, 26 Jun 2021 14:42:49 -0400 (EDT)
Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> wrote:
> > If BPF is OK with registering the same probe more than once if user
> > space expects it, we can add this patch, which allows the caller (in
> > this case BPF) to not warn if the probe being registered is already
> > registered, and keeps the idea that a probe registered twice is a bug
> > for all other use cases.
> How can removal of the duplicates be non buggy then ? The first removal will match both probes.
The registering of the first duplicate would fail with an error, but
will not warn. There would be no unregistering needed.