mbox series

[bpf-next,v2,0/2] selftests/bpf: implement setting global variables in veristat

Message ID 20250210135129.719119-1-mykyta.yatsenko5@gmail.com (mailing list archive)
Headers show
Series selftests/bpf: implement setting global variables in veristat | expand

Message

Mykyta Yatsenko Feb. 10, 2025, 1:51 p.m. UTC
From: Mykyta Yatsenko <yatsenko@meta.com>

To better verify some complex BPF programs by veristat, it would be useful
to preset global variables. This patch set implements this functionality
and introduces tests for veristat.

Mykyta Yatsenko (2):
  selftests/bpf: implement setting global variables in veristat
  selftests/bpf: introduce veristat test

 tools/testing/selftests/bpf/Makefile          |   1 +
 .../selftests/bpf/prog_tests/test_veristat.c  | 120 +++++++
 .../selftests/bpf/progs/set_global_vars.c     |  47 +++
 tools/testing/selftests/bpf/veristat.c        | 319 +++++++++++++++++-
 4 files changed, 475 insertions(+), 12 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/test_veristat.c
 create mode 100644 tools/testing/selftests/bpf/progs/set_global_vars.c