Searched refs:bpf_strrchr (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ ! |
| H A D | string_kfuncs_success.c | 35 __test(9) int test_strrchr_found(void *ctx) { return bpf_strrchr(str, 'l'); } in test_strstr_found() 36 __test(11) int test_strrchr_null(void *ctx) { return bpf_strrchr(str, '\0'); } in test_strcasestr_found() 37 __test(-ENOENT) int test_strrchr_notfound(void *ctx) { return bpf_strrchr(str, 'x'); } in test_strstr_notfound()
|
| H A D | string_kfuncs_failure1.c | 41 SEC("syscall") __retval(USER_PTR_ERR)int test_strrchr_null(void *ctx) { return bpf_strrchr(NULL, 'a'); } in __retval() 67 SEC("syscall") __retval(USER_PTR_ERR) int test_strrchr_user_ptr(void *ctx) { return bpf_strrchr(user_ptr, 'a'); } in __retval() 95 SEC("syscall") __retval(-EFAULT) int test_strrchr_pagefault(void *ctx) { return bpf_strrchr(invalid_kern_ptr, 'a'); } in test_strcspn_pagefault2()
|
| H A D | string_kfuncs_failure2.c | 15 SEC("syscall") int test_strrchr_too_long(void *ctx) { return bpf_strrchr(long_str, 'b'); } in test_strlen_too_long()
|
| /linux/kernel/bpf/ ! |
| H A D | helpers.c | 3792 * bpf_strrchr - Find the last occurrence of a character in a string 3803 __bpf_kfunc int bpf_strrchr(const char *s__ign, int c) in bpf_strcspn() 4828 BTF_ID_FLAGS(func, bpf_strrchr); 3673 __bpf_kfunc int bpf_strrchr(const char *s__ign, int c) bpf_strrchr() function
|