Lines Matching refs:ulen
2911 u32 ulen = info->raw_tracepoint.tp_name_len; in bpf_raw_tp_link_fill_link_info() local
2914 if (!ulen ^ !ubuf) in bpf_raw_tp_link_fill_link_info()
2922 if (ulen >= tp_len + 1) { in bpf_raw_tp_link_fill_link_info()
2928 if (copy_to_user(ubuf, tp_name, ulen - 1)) in bpf_raw_tp_link_fill_link_info()
2930 if (put_user(zero, ubuf + ulen - 1)) in bpf_raw_tp_link_fill_link_info()
3622 u32 ulen; in bpf_prog_get_info_by_fd() local
3645 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd()
3647 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd()
3648 if (ulen) { in bpf_prog_get_info_by_fd()
3652 for (i = 0; i < ulen; i++) in bpf_prog_get_info_by_fd()
3683 ulen = info.xlated_prog_len; in bpf_prog_get_info_by_fd()
3685 if (info.xlated_prog_len && ulen) { in bpf_prog_get_info_by_fd()
3697 ulen = min_t(u32, info.xlated_prog_len, ulen); in bpf_prog_get_info_by_fd()
3698 fault = copy_to_user(uinsns, insns_sanitized, ulen); in bpf_prog_get_info_by_fd()
3715 ulen = info.jited_prog_len; in bpf_prog_get_info_by_fd()
3726 if (info.jited_prog_len && ulen) { in bpf_prog_get_info_by_fd()
3729 ulen = min_t(u32, info.jited_prog_len, ulen); in bpf_prog_get_info_by_fd()
3738 free = ulen; in bpf_prog_get_info_by_fd()
3751 if (copy_to_user(uinsns, prog->bpf_func, ulen)) in bpf_prog_get_info_by_fd()
3759 ulen = info.nr_jited_ksyms; in bpf_prog_get_info_by_fd()
3761 if (ulen) { in bpf_prog_get_info_by_fd()
3770 ulen = min_t(u32, info.nr_jited_ksyms, ulen); in bpf_prog_get_info_by_fd()
3773 for (i = 0; i < ulen; i++) { in bpf_prog_get_info_by_fd()
3790 ulen = info.nr_jited_func_lens; in bpf_prog_get_info_by_fd()
3792 if (ulen) { in bpf_prog_get_info_by_fd()
3798 ulen = min_t(u32, info.nr_jited_func_lens, ulen); in bpf_prog_get_info_by_fd()
3801 for (i = 0; i < ulen; i++) { in bpf_prog_get_info_by_fd()
3820 ulen = info.nr_func_info; in bpf_prog_get_info_by_fd()
3822 if (info.nr_func_info && ulen) { in bpf_prog_get_info_by_fd()
3826 ulen = min_t(u32, info.nr_func_info, ulen); in bpf_prog_get_info_by_fd()
3828 info.func_info_rec_size * ulen)) in bpf_prog_get_info_by_fd()
3832 ulen = info.nr_line_info; in bpf_prog_get_info_by_fd()
3834 if (info.nr_line_info && ulen) { in bpf_prog_get_info_by_fd()
3838 ulen = min_t(u32, info.nr_line_info, ulen); in bpf_prog_get_info_by_fd()
3840 info.line_info_rec_size * ulen)) in bpf_prog_get_info_by_fd()
3844 ulen = info.nr_jited_line_info; in bpf_prog_get_info_by_fd()
3849 if (info.nr_jited_line_info && ulen) { in bpf_prog_get_info_by_fd()
3855 ulen = min_t(u32, info.nr_jited_line_info, ulen); in bpf_prog_get_info_by_fd()
3856 for (i = 0; i < ulen; i++) { in bpf_prog_get_info_by_fd()
3866 ulen = info.nr_prog_tags; in bpf_prog_get_info_by_fd()
3868 if (ulen) { in bpf_prog_get_info_by_fd()
3873 ulen = min_t(u32, info.nr_prog_tags, ulen); in bpf_prog_get_info_by_fd()
3875 for (i = 0; i < ulen; i++) { in bpf_prog_get_info_by_fd()