diff options
| author | Andrii Nakryiko <[email protected]> | 2021-08-15 07:06:08 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-08-16 22:45:08 +0000 |
| commit | 5e3b8356de3623987ace530b1977ffeb9ecf5a8a (patch) | |
| tree | 290b81ae84bd5819db142c6da14c8502ae20c3b0 /net/unix/unix_bpf.c | |
| parent | selftests/bpf: Add bpf_cookie selftests for high-level APIs (diff) | |
| download | kernel-5e3b8356de3623987ace530b1977ffeb9ecf5a8a.tar.gz kernel-5e3b8356de3623987ace530b1977ffeb9ecf5a8a.zip | |
libbpf: Add uprobe ref counter offset support for USDT semaphores
When attaching to uprobes through perf subsystem, it's possible to specify
offset of a so-called USDT semaphore, which is just a reference counted u16,
used by kernel to keep track of how many tracers are attached to a given
location. Support for this feature was added in [0], so just wire this through
uprobe_opts. This is important to enable implementing USDT attachment and
tracing through libbpf's bpf_program__attach_uprobe_opts() API.
[0] a6ca88b241d5 ("trace_uprobe: support reference counter in fd-based uprobe")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
