[PATCH v3 4/9] selftests/bpf: Move sample generation code to ima_test_common()