Lines Matching refs:err
494 int err; in __bpf_strtoll() local
496 err = __bpf_strtoull(buf, buf_len, flags, &_res, &is_negative); in __bpf_strtoll()
497 if (err < 0) in __bpf_strtoll()
498 return err; in __bpf_strtoll()
508 return err; in __bpf_strtoll()
515 int err; in BPF_CALL_4() local
517 err = __bpf_strtoll(buf, buf_len, flags, &_res); in BPF_CALL_4()
518 if (err < 0) in BPF_CALL_4()
519 return err; in BPF_CALL_4()
523 return err; in BPF_CALL_4()
541 int err; in BPF_CALL_4() local
543 err = __bpf_strtoull(buf, buf_len, flags, &_res, &is_negative); in BPF_CALL_4()
544 if (err < 0) in BPF_CALL_4()
545 return err; in BPF_CALL_4()
551 return err; in BPF_CALL_4()
583 int err = -EINVAL; in BPF_CALL_4() local
596 err = -ENOENT; in BPF_CALL_4()
608 return err; in BPF_CALL_4()
815 int err, i, num_spec = 0; in bpf_bprintf_prepare() local
839 err = -EINVAL; in bpf_bprintf_prepare()
852 err = -EINVAL; in bpf_bprintf_prepare()
894 err = snprintf(tmp_buf, in bpf_bprintf_prepare()
898 tmp_buf += (err + 1); in bpf_bprintf_prepare()
909 err = -EINVAL; in bpf_bprintf_prepare()
919 err = -ENOSPC; in bpf_bprintf_prepare()
924 err = copy_from_kernel_nofault(cur_ip, unsafe_ptr, in bpf_bprintf_prepare()
926 if (err < 0) in bpf_bprintf_prepare()
935 err = snprintf(tmp_buf, tmp_buf_end - tmp_buf, in bpf_bprintf_prepare()
938 tmp_buf += err + 1; in bpf_bprintf_prepare()
948 err = -EINVAL; in bpf_bprintf_prepare()
956 err = -ENOSPC; in bpf_bprintf_prepare()
961 err = bpf_trace_copy_string(tmp_buf, unsafe_ptr, in bpf_bprintf_prepare()
964 if (err < 0) { in bpf_bprintf_prepare()
966 err = 1; in bpf_bprintf_prepare()
969 tmp_buf += err; in bpf_bprintf_prepare()
978 err = -ENOSPC; in bpf_bprintf_prepare()
1002 err = -EINVAL; in bpf_bprintf_prepare()
1012 err = -ENOSPC; in bpf_bprintf_prepare()
1027 err = 0; in bpf_bprintf_prepare()
1029 if (err) in bpf_bprintf_prepare()
1031 return err; in bpf_bprintf_prepare()
1040 int err, num_args; in BPF_CALL_5() local
1050 err = bpf_bprintf_prepare(fmt, UINT_MAX, args, num_args, &data); in BPF_CALL_5()
1051 if (err < 0) in BPF_CALL_5()
1052 return err; in BPF_CALL_5()
1054 err = bstr_printf(str, str_size, fmt, data.bin_args); in BPF_CALL_5()
1058 return err + 1; in BPF_CALL_5()
1471 int err; in BPF_CALL_4() local
1475 err = bpf_dynptr_check_size(size); in BPF_CALL_4()
1476 if (err) in BPF_CALL_4()
1481 err = -EINVAL; in BPF_CALL_4()
1491 return err; in BPF_CALL_4()
1507 int err; in BPF_CALL_5() local
1512 err = bpf_dynptr_check_off_len(src, offset, len); in BPF_CALL_5()
1513 if (err) in BPF_CALL_5()
1514 return err; in BPF_CALL_5()
1535 int err; in BPF_CALL_5() local
1540 err = bpf_dynptr_check_off_len(dst, offset, len); in BPF_CALL_5()
1541 if (err) in BPF_CALL_5()
1542 return err; in BPF_CALL_5()
1562 int err; in BPF_CALL_3() local
1567 err = bpf_dynptr_check_off_len(ptr, offset, len); in BPF_CALL_3()
1568 if (err) in BPF_CALL_3()