libbpf: Deprecate priv/set_priv storage
authorDelyan Kratunov <delyank@fb.com>
Thu, 3 Feb 2022 18:00:32 +0000 (10:00 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Feb 2022 20:34:45 +0000 (12:34 -0800)
commitca33aa4ec5cbae7ddb995e565bc3b67ee4532b7a
treef5d4aab00a556138381b52b018c305a0afeb4c49
parenta6763080856f444868620ae065ac25cbac0c4922
libbpf: Deprecate priv/set_priv storage

Arbitrary storage via bpf_*__set_priv/__priv is being deprecated
without a replacement ([1]). perf uses this capability, but most of
that is going away with the removal of prologue generation ([2]).
perf is already suppressing deprecation warnings, so the remaining
cleanup will happen separately.

  [1]: Closes: https://github.com/libbpf/libbpf/issues/294
  [2]: https://lore.kernel.org/bpf/20220123221932.537060-1-jolsa@kernel.org/

Signed-off-by: Delyan Kratunov <delyank@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220203180032.1921580-1-delyank@fb.com
tools/lib/bpf/libbpf.h