All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] add btf_dedup() support for VAR and DATASEC
@ 2019-04-15 23:48 andrii.nakryiko
  2019-04-15 23:48 ` [PATCH bpf-next 1/2] btf: add support for VAR and DATASEC in btf_dedup() andrii.nakryiko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andrii.nakryiko @ 2019-04-15 23:48 UTC (permalink / raw)
  To: andrii.nakryiko, netdev, bpf, kernel-team; +Cc: Andrii Nakryiko

From: Andrii Nakryiko <andriin@fb.com>

This patchset adds support for new BTF_KIND_VAR and BTF_KIND_DATASEC BTF types
in btf_dedup() algorithm. VAR and DATASEC are not deduplicated and are always
considered to be unique, but they require referenced type IDs adjustment.

Patch #1 adds VAR/DATASEC pass-through support to btf_dedup().
Patch #2 adds a test validating all the type ID adjustments are correct.

Andrii Nakryiko (2):
  btf: add support for VAR and DATASEC in btf_dedup()
  selftests/btf: add VAR and DATASEC case for dedup tests

 tools/lib/bpf/btf.c                    | 29 +++++++++++++--
 tools/testing/selftests/bpf/test_btf.c | 49 ++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 2 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-04-16  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-15 23:48 [PATCH bpf-next 0/2] add btf_dedup() support for VAR and DATASEC andrii.nakryiko
2019-04-15 23:48 ` [PATCH bpf-next 1/2] btf: add support for VAR and DATASEC in btf_dedup() andrii.nakryiko
2019-04-15 23:48 ` [PATCH bpf-next 2/2] selftests/btf: add VAR and DATASEC case for dedup tests andrii.nakryiko
2019-04-16  8:26 ` [PATCH bpf-next 0/2] add btf_dedup() support for VAR and DATASEC Daniel Borkmann

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.