bpf_strlen
BTF_ID_FLAGS(func, bpf_strlen);
SEC("syscall") __retval(USER_PTR_ERR)int test_strlen_null(void *ctx) { return bpf_strlen(NULL); }
SEC("syscall") __retval(USER_PTR_ERR) int test_strlen_user_ptr(void *ctx) { return bpf_strlen(user_ptr); }
SEC("syscall") __retval(-EFAULT) int test_strlen_pagefault(void *ctx) { return bpf_strlen(invalid_kern_ptr); }
SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); }
__test(11) int test_strlen(void *ctx) { return bpf_strlen(str); }