Re: [PATCH] tracepoint: Do not warn on EEXIST or ENOENT
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2021-06-26 23:35:47
Also in:
bpf, lkml
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2021-06-26 23:35:47
Also in:
bpf, lkml
On Sat, 26 Jun 2021 14:42:49 -0400 (EDT) Mathieu Desnoyers [off-list ref] wrote:
quoted
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. -- Steve