diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-02-11 21:57:33 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-02-15 09:59:01 -0800 |
commit | 189e0ecabc1717db62deab751afa755f07bdbcf8 (patch) | |
tree | e0c190cad0dc273b1d371bf8b8d567a9ee657b5e /tools/lib/api/fd/array.c | |
parent | bb8ffe61ea454a565e4fb1f450ef71237c9f032c (diff) |
selftests/bpf: Add Skeleton templated wrapper as an example
Add an example of how to build C++ template-based BPF skeleton wrapper.
It's an actually runnable valid use of skeleton through more C++-like
interface. Note that skeleton destuction happens implicitly through
Skeleton<T>'s destructor.
Also make test_cpp runnable as it would have crashed on invalid btf
passed into btf_dump__new().
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220212055733.539056-3-andrii@kernel.org
Diffstat (limited to 'tools/lib/api/fd/array.c')
0 files changed, 0 insertions, 0 deletions