Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstrncmp_test.c9 #define STRNCMP_STR_SZ 8 macro
11 const char target[STRNCMP_STR_SZ] = "EEEEEEE";
12 char str[STRNCMP_STR_SZ];
16 const char no_str_target[STRNCMP_STR_SZ] = "12345678";
17 char writable_target[STRNCMP_STR_SZ];
18 unsigned int no_const_str_size = STRNCMP_STR_SZ;
28 cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, target); in do_strncmp()
44 cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, writable_target); in strncmp_bad_writable_target()
52 cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, no_str_target); in strncmp_bad_not_null_term_target()
H A Dstrncmp_bench.c8 #define STRNCMP_STR_SZ 4096 macro
12 const char target[STRNCMP_STR_SZ];
15 char str[STRNCMP_STR_SZ];