On Wed, Aug 12, 2020 at 04:33:03PM +0000, Leah Rumancik wrote: > Sample program to protect GUID partition table. Uses IO filter bpf > program type. > > Signed-off-by: Kjetil Ørbekk <orbekk@xxxxxxxxxx> > Signed-off-by: Harshad Shirwadkar <harshads@xxxxxxxxxx> > Signed-off-by: Leah Rumancik <leah.rumancik@xxxxxxxxx> > --- > samples/bpf/Makefile | 3 + > samples/bpf/protect_gpt_kern.c | 21 ++++++ > samples/bpf/protect_gpt_user.c | 133 +++++++++++++++++++++++++++++++++ Please add new tests to tools/testing/selftests/bpf/. Also use skeleton. Check how tools/testing/selftests/bpf/prog_tests/sk_lookup.c use test_sk_lookup__open_and_load() from #include "test_sk_lookup.skel.h". Its bpf prog is in tools/testing/selftests/bpf/progs/test_sk_lookup.c.