Home
last modified time | relevance | path

Searched refs:bpf_strlen (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c42 SEC("syscall") __retval(USER_PTR_ERR)int test_strlen_null(void *ctx) { return bpf_strlen(NULL); } in __retval()
68 SEC("syscall") __retval(USER_PTR_ERR) int test_strlen_user_ptr(void *ctx) { return bpf_strlen(user_ptr); }
96 SEC("syscall") __retval(-EFAULT) int test_strlen_pagefault(void *ctx) { return bpf_strlen(invalid_kern_ptr); }
H A Dstring_kfuncs_failure2.c16 SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); } in test_strspn_str_too_long()
H A Dstring_kfuncs_success.c38 __test(11) int test_strlen(void *ctx) { return bpf_strlen(str); } in test_strnstr_found1()
/linux/kernel/bpf/
H A Dhelpers.c3736 __bpf_kfunc int bpf_strlen(const char *s__ign) in bpf_strlen() function
4670 BTF_ID_FLAGS(func, bpf_strlen);