Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_strncmp.c12 u32 cmp_str_len; member
14 .cmp_str_len = 32,
31 args.cmp_str_len = strtoul(arg, NULL, 10); in strncmp_parse_arg()
32 if (!args.cmp_str_len || in strncmp_parse_arg()
33 args.cmp_str_len >= sizeof(ctx.skel->bss->str)) { in strncmp_parse_arg()
86 ctx.skel->rodata->cmp_str_len = args.cmp_str_len; in strncmp_setup()
88 memcpy(ctx.skel->bss->str, target, args.cmp_str_len); in strncmp_setup()
89 ctx.skel->bss->str[args.cmp_str_len] = '\0'; in strncmp_setup()
91 ctx.skel->bss->str[args.cmp_str_len - 1] -= 1; in strncmp_setup()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dstrncmp_bench.c11 const volatile unsigned int cmp_str_len = 1; variable
38 if (local_strncmp(str, cmp_str_len + 1, target) < 0) in strncmp_no_helper()
46 if (bpf_strncmp(str, cmp_str_len + 1, target) < 0) in strncmp_helper()