/kernel/bpf/ |
D | helpers.c | 364 static int __bpf_strtoull(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoull() argument 369 size_t cur_len = buf_len; in __bpf_strtoull() 374 if (!buf || !buf_len || !res || !is_negative) in __bpf_strtoull() 383 while (cur_buf < buf + buf_len && isspace(*cur_buf)) in __bpf_strtoull() 386 *is_negative = (cur_buf < buf + buf_len && *cur_buf == '-'); in __bpf_strtoull() 415 static int __bpf_strtoll(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoll() argument 422 err = __bpf_strtoull(buf, buf_len, flags, &_res, &is_negative); in __bpf_strtoll() 437 BPF_CALL_4(bpf_strtol, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument 443 err = __bpf_strtoll(buf, buf_len, flags, &_res); in BPF_CALL_4() 462 BPF_CALL_4(bpf_strtoul, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument [all …]
|
D | cgroup.c | 1174 size_t, buf_len, u64, flags) in BPF_CALL_4() argument 1184 tmp_ret = sysctl_cpy_dir(ctx->head->parent, &buf, &buf_len); in BPF_CALL_4() 1189 ret = strscpy(buf, ctx->table->procname, buf_len); in BPF_CALL_4() 1231 char *, buf, size_t, buf_len) in BPF_CALL_3() argument 1233 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3() 1246 size_t, buf_len) in BPF_CALL_3() argument 1249 if (buf && buf_len) in BPF_CALL_3() 1250 memset(buf, '\0', buf_len); in BPF_CALL_3() 1253 return copy_sysctl_value(buf, buf_len, ctx->new_val, ctx->new_len); in BPF_CALL_3() 1266 const char *, buf, size_t, buf_len) in BPF_CALL_3() argument [all …]
|
D | syscall.c | 2721 if (put_user(len, &uattr->task_fd_query.buf_len)) in bpf_task_fd_query_copy() 2723 input_len = attr->task_fd_query.buf_len; in bpf_task_fd_query_copy()
|
/kernel/ |
D | kexec_elf.c | 63 static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len) in elf_is_ehdr_sane() argument 91 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane() 110 } else if (ehdr->e_shoff + shdr_size > buf_len) { in elf_is_ehdr_sane() 185 static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len) in elf_is_phdr_sane() argument 191 } else if (phdr->p_offset + phdr->p_filesz > buf_len) { in elf_is_phdr_sane()
|
D | kexec_file.c | 39 unsigned long buf_len) in kexec_image_probe_default() argument 45 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default() 57 unsigned long buf_len) in arch_kexec_kernel_image_probe() argument 59 return kexec_image_probe_default(image, buf, buf_len); in arch_kexec_kernel_image_probe() 93 unsigned long buf_len) in kexec_image_verify_sig_default() argument 100 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig_default() 104 unsigned long buf_len) in arch_kexec_kernel_verify_sig() argument 106 return kexec_image_verify_sig_default(image, buf, buf_len); in arch_kexec_kernel_verify_sig()
|
/kernel/trace/ |
D | trace_output.c | 217 trace_print_hex_seq(struct trace_seq *p, const unsigned char *buf, int buf_len, in trace_print_hex_seq() argument 224 for (i = 0; i < buf_len; i += 16) in trace_print_hex_seq() 225 trace_seq_printf(p, fmt, min(buf_len - i, 16), &buf[i]); in trace_print_hex_seq() 239 size_t buf_len = count * el_size; in trace_print_array_seq() local 243 while (ptr < buf + buf_len) { in trace_print_array_seq()
|