Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
A Dstring_kfuncs_failure2.c7 char long_str[XATTR_SIZE_MAX + 1]; variable
9 SEC("syscall") int test_strcmp_too_long(void *ctx) { return bpf_strcmp(long_str, long_str); } in test_strcmp_too_long()
10 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strchr_too_long()
11 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strchrnul_too_long()
12 SEC("syscall") int test_strnchr_too_long(void *ctx) { return bpf_strnchr(long_str, sizeof(long_str)… in test_strnchr_too_long()
13 SEC("syscall") int test_strrchr_too_long(void *ctx) { return bpf_strrchr(long_str, 'b'); } in test_strrchr_too_long()
14 SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); } in test_strlen_too_long()
15 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)… in test_strnlen_too_long()
16 SEC("syscall") int test_strspn_str_too_long(void *ctx) { return bpf_strspn(long_str, "a"); } in test_strspn_str_too_long()
20 SEC("syscall") int test_strstr_too_long(void *ctx) { return bpf_strstr(long_str, "hello"); } in test_strstr_too_long()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dstring_kfuncs.c36 memset(skel->bss->long_str, 'a', sizeof(skel->bss->long_str)); in run_too_long_tests()

Completed in 5 milliseconds