Thread (11 messages) 11 messages, 2 authors, 2021-09-17
STALE1753d
Revisions (5)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v4 [diff vs current]

[PATCH 0/3] add support for writable bare tracepoint

From: Hou Tao <hidden>
Date: 2021-09-16 13:41:15
Also in: bpf

Hi,

The patchset series supports writable context for bare tracepoint.

The main idea comes from patchset "writable contexts for bpf 
raw tracepoints" [1], but it only supports normal tracepoint
with associated trace event under tracefs. Bare tracepoint
is more light-weight and doesn't have the ABI burden of
normal tracepoint, so add support for it in BPF.

Any comments are welcome.

[1]: https://lore.kernel.org/lkml/20190426184951.21812-1-mmullins@fb.com (local)

Hou Tao (3):
  bpf: support writable context for bare tracepoint
  libbpf: support detecting and attaching of writable tracepoint program
  bpf/selftests: add test for writable bare tracepoint

 include/trace/bpf_probe.h                     | 19 +++++++--
 tools/lib/bpf/libbpf.c                        |  4 ++
 .../bpf/bpf_testmod/bpf_testmod-events.h      | 15 +++++++
 .../selftests/bpf/bpf_testmod/bpf_testmod.c   | 10 +++++
 .../selftests/bpf/bpf_testmod/bpf_testmod.h   |  5 +++
 .../selftests/bpf/prog_tests/module_attach.c  | 40 ++++++++++++++++++-
 .../selftests/bpf/progs/test_module_attach.c  | 14 +++++++
 7 files changed, 101 insertions(+), 6 deletions(-)

-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help