All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 bpf-next 0/2] Make BPF skeleton easier to use from C++ code
@ 2022-02-12  5:57 Andrii Nakryiko
  2022-02-12  5:57 ` [PATCH v2 bpf-next 1/2] bpftool: add C++-specific open/load/etc skeleton wrappers Andrii Nakryiko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrii Nakryiko @ 2022-02-12  5:57 UTC (permalink / raw)
  To: bpf, ast, daniel; +Cc: andrii, kernel-team

Add minimal C++-specific additions to BPF skeleton codegen to facilitate
easier use of C skeletons in C++ applications. These additions don't add any
extra ongoing maintenance and allows C++ users to fit pure C skeleton better
into their C++ code base. All that without the need to design, implement and
support a separate C++ BPF skeleton implementation.

v1->v2:
  - use default argument values in T::open() (Alexei).

Andrii Nakryiko (2):
  bpftool: add C++-specific open/load/etc skeleton wrappers
  selftests/bpf: add Skeleton templated wrapper as an example

 tools/bpf/bpftool/gen.c                  | 24 ++++++-
 tools/testing/selftests/bpf/test_cpp.cpp | 87 +++++++++++++++++++++++-
 2 files changed, 107 insertions(+), 4 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-15 18:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-12  5:57 [PATCH v2 bpf-next 0/2] Make BPF skeleton easier to use from C++ code Andrii Nakryiko
2022-02-12  5:57 ` [PATCH v2 bpf-next 1/2] bpftool: add C++-specific open/load/etc skeleton wrappers Andrii Nakryiko
2022-02-12  5:57 ` [PATCH v2 bpf-next 2/2] selftests/bpf: add Skeleton templated wrapper as an example Andrii Nakryiko
2022-02-15 18:10 ` [PATCH v2 bpf-next 0/2] Make BPF skeleton easier to use from C++ code patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.