Searched refs:bpf_strncmp (Results 1 – 12 of 12) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | strncmp_test.c | 28 cmp_ret = bpf_strncmp(str, STRNCMP_STR_SZ, target); in do_strncmp() 36 cmp_ret = bpf_strncmp(str, no_const_str_size, target); in strncmp_bad_not_const_str_size() 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 D | test_attach_probe.c | 93 return bpf_strncmp(data, sizeof(data), "test_data") == 0; in verify_sleepable_user_copy() 107 if (bpf_strncmp(data_short, 4, "tes\0") != 0 || ret != 4) in verify_sleepable_user_copy_str() 112 if (bpf_strncmp(data_short, 4, "tes\0") != 0 || ret != 4) in verify_sleepable_user_copy_str() 123 if (bpf_strncmp(data_long, 10, "test_data\0") != 0 || ret != 10) in verify_sleepable_user_copy_str() 128 if (bpf_strncmp(data_long_pad, 10, "test_data\0") != 0 || ret != 10 || data_long_pad[19] != '\0') in verify_sleepable_user_copy_str()
|
H A D | test_get_xattr.c | 36 if (bpf_strncmp(value1, ret, expected_value)) in BPF_PROG() 58 if (bpf_strncmp(value2, ret, expected_value)) in BPF_PROG()
|
H A D | task_kfunc_success.c | 337 bpf_strncmp(task->comm, 12, "foo"); in BPF_PROG() 338 bpf_strncmp(task->comm, 16, "foo"); in BPF_PROG() 339 bpf_strncmp(&task->comm[8], 4, "foo"); in BPF_PROG()
|
H A D | strncmp_bench.c | 46 if (bpf_strncmp(str, cmp_str_len + 1, target) < 0) in strncmp_helper()
|
H A D | sockopt_qos_to_cc.c | 28 if (bpf_strncmp(buf, sizeof(buf), cc_cubic)) in sockopt_qos_to_cc()
|
H A D | uprobe_multi.c | 41 return bpf_strncmp(data, sizeof(data), "test_data") == 0; in uprobe_multi_check()
|
H A D | setget_sockopt.c | 218 if (!bpf_strncmp(old_cc, sizeof(old_cc), cubic_cc)) { in bpf_test_tcp_sockopt() 230 if (bpf_strncmp(tmp_cc, sizeof(tmp_cc), new_cc)) in bpf_test_tcp_sockopt()
|
H A D | dynptr_success.c | 542 bpf_strncmp(data, 10, "foo"); in test_dynptr_skb_strcmp()
|
H A D | dynptr_fail.c | 409 bpf_strncmp((const char *)&ptr, sizeof(ptr), "hello!"); in invalid_helper1()
|
/linux/tools/testing/selftests/sched_ext/ |
H A D | select_cpu_dfl.bpf.c | 19 return !bpf_strncmp(p->comm, 9, "select_cpu"); in task_is_test()
|
/linux/kernel/bpf/ |
H A D | helpers.c | 573 BPF_CALL_3(bpf_strncmp, const char *, s1, u32, s1_sz, const char *, s2) in BPF_CALL_3() argument 579 .func = bpf_strncmp,
|