Home
last modified time | relevance | path

Searched refs:fentry_skel (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfentry_test.c7 static int fentry_test_common(struct fentry_test_lskel *fentry_skel) in fentry_test_common() argument
14 err = fentry_test_lskel__attach(fentry_skel); in fentry_test_common()
19 link_fd = fentry_test_lskel__test1__attach(fentry_skel); in fentry_test_common()
23 prog_fd = fentry_skel->progs.test1.prog_fd; in fentry_test_common()
28 result = (__u64 *)fentry_skel->bss; in fentry_test_common()
29 for (i = 0; i < sizeof(*fentry_skel->bss) / sizeof(__u64); i++) { in fentry_test_common()
34 fentry_test_lskel__detach(fentry_skel); in fentry_test_common()
37 memset(fentry_skel->bss, 0, sizeof(*fentry_skel->bss)); in fentry_test_common()
43 struct fentry_test_lskel *fentry_skel = NULL; in fentry_test() local
46 fentry_skel = fentry_test_lskel__open_and_load(); in fentry_test()
[all …]
H A Dfentry_fexit.c9 struct fentry_test_lskel *fentry_skel = NULL; in test_fentry_fexit() local
15 fentry_skel = fentry_test_lskel__open_and_load(); in test_fentry_fexit()
16 if (!ASSERT_OK_PTR(fentry_skel, "fentry_skel_load")) in test_fentry_fexit()
22 err = fentry_test_lskel__attach(fentry_skel); in test_fentry_fexit()
34 fentry_res = (__u64 *)fentry_skel->bss; in test_fentry_fexit()
36 printf("%lld\n", fentry_skel->bss->test1_result); in test_fentry_fexit()
43 fentry_test_lskel__destroy(fentry_skel); in test_fentry_fexit()