/linux/tools/lib/traceevent/ |
A D | kbuffer-parse.c | 190 kbuf = zmalloc(sizeof(*kbuf)); in kbuffer_alloc() 294 kbuf->next = kbuf->size; in old_update_pointers() 308 kbuf->curr = kbuf->size; in old_update_pointers() 309 kbuf->next = kbuf->size; in old_update_pointers() 310 kbuf->index = kbuf->size; in old_update_pointers() 335 kbuf->curr = kbuf->next; in __old_next_event() 336 if (kbuf->next >= kbuf->size) in __old_next_event() 454 kbuf->curr = kbuf->next; in __next_event() 455 if (kbuf->next >= kbuf->size) in __next_event() 467 return kbuf->next_event(kbuf); in next_event() [all …]
|
A D | kbuffer.h | 32 void kbuffer_free(struct kbuffer *kbuf); 36 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf); 38 unsigned int kbuffer_ptr_delta(struct kbuffer *kbuf, void *ptr); 44 int kbuffer_curr_index(struct kbuffer *kbuf); 46 int kbuffer_curr_offset(struct kbuffer *kbuf); 47 int kbuffer_curr_size(struct kbuffer *kbuf); 48 int kbuffer_event_size(struct kbuffer *kbuf); 49 int kbuffer_missed_events(struct kbuffer *kbuf); 50 int kbuffer_subbuffer_size(struct kbuffer *kbuf); 52 void kbuffer_set_old_format(struct kbuffer *kbuf); [all …]
|
/linux/arch/arm64/kernel/ |
A D | machine_kexec_file.c | 87 struct kexec_buf kbuf; in load_other_segments() local 93 kbuf.image = image; in load_other_segments() 111 kbuf.top_down = true; in load_other_segments() 123 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 132 kbuf.buf_align = 0; in load_other_segments() 144 initrd_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 159 kbuf.buffer = dtb; in load_other_segments() 160 kbuf.bufsz = dtb_len; in load_other_segments() 162 kbuf.memsz = dtb_len; in load_other_segments() 166 kbuf.top_down = true; in load_other_segments() [all …]
|
A D | kexec_image.c | 45 struct kexec_buf kbuf; in image_load() local 76 kbuf.image = image; in image_load() 77 kbuf.buf_min = 0; in image_load() 78 kbuf.buf_max = ULONG_MAX; in image_load() 79 kbuf.top_down = false; in image_load() 81 kbuf.buffer = kernel; in image_load() 82 kbuf.bufsz = kernel_len; in image_load() 83 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in image_load() 86 kbuf.buf_align = MIN_KIMG_ALIGN; in image_load() 89 kbuf.memsz += text_offset; in image_load() [all …]
|
A D | ptrace.c | 509 const void *kbuf, const void __user *ubuf) in hw_break_set() argument 570 const void *kbuf, const void __user *ubuf) in gpr_set() argument 650 const void *kbuf, const void __user *ubuf) in fpr_set() argument 678 const void *kbuf, const void __user *ubuf) in tls_set() argument 932 const void *kbuf, const void __user *ubuf) in pac_enabled_keys_set() argument 1001 const void *kbuf, const void __user *ubuf) in pac_address_keys_set() argument 1050 const void *kbuf, const void __user *ubuf) in pac_generic_keys_set() argument 1302 if (kbuf) { in compat_gpr_set() 1303 memcpy(®, kbuf, sizeof(reg)); in compat_gpr_set() 1304 kbuf += sizeof(reg); in compat_gpr_set() [all …]
|
/linux/arch/parisc/kernel/ |
A D | kexec_file.c | 45 kbuf.buffer = initrd; in elf_load() 46 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_load() 47 kbuf.buf_align = PAGE_SIZE; in elf_load() 48 kbuf.top_down = false; in elf_load() 50 ret = kexec_add_buffer(&kbuf); in elf_load() 60 kbuf.buffer = cmdline; in elf_load() 61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load() 62 kbuf.buf_align = PAGE_SIZE; in elf_load() 63 kbuf.top_down = false; in elf_load() 67 ret = kexec_add_buffer(&kbuf); in elf_load() [all …]
|
/linux/mm/damon/ |
A D | dbgfs.c | 28 char *kbuf; in user_input_str() local 36 if (!kbuf) in user_input_str() 41 kfree(kbuf); in user_input_str() 46 return kbuf; in user_input_str() 71 char *kbuf; in dbgfs_attrs_write() local 96 kfree(kbuf); in dbgfs_attrs_write() 133 char *kbuf; in dbgfs_schemes_read() local 137 if (!kbuf) in dbgfs_schemes_read() 235 char *kbuf; in dbgfs_schemes_write() local 459 if (!kbuf) in dbgfs_init_regions_read() [all …]
|
/linux/kernel/ |
A D | kexec_file.c | 535 if (end < kbuf->buf_min || start > kbuf->buf_max) in locate_mem_hole_callback() 697 kbuf->memsz = ALIGN(kbuf->memsz, PAGE_SIZE); in kexec_add_buffer() 698 kbuf->buf_align = max(kbuf->buf_align, PAGE_SIZE); in kexec_add_buffer() 706 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer() 707 ksegment->kbuf = kbuf->buffer; in kexec_add_buffer() 864 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf() 873 kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); in kexec_purgatory_setup_kbuf() 874 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf() 878 kbuf->buffer = vzalloc(kbuf->bufsz); in kexec_purgatory_setup_kbuf() 924 bss_addr = kbuf->mem + kbuf->bufsz; in kexec_purgatory_setup_sechdrs() [all …]
|
/linux/arch/powerpc/kexec/ |
A D | elf_64.c | 53 kbuf.buf_max = pbuf.buf_max = in elf64_load() 92 kbuf.buffer = initrd; in elf64_load() 93 kbuf.bufsz = kbuf.memsz = initrd_len; in elf64_load() 94 kbuf.buf_align = PAGE_SIZE; in elf64_load() 95 kbuf.top_down = false; in elf64_load() 100 initrd_load_addr = kbuf.mem; in elf64_load() 121 kbuf.buffer = fdt; in elf64_load() 122 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf64_load() 123 kbuf.buf_align = PAGE_SIZE; in elf64_load() 124 kbuf.top_down = true; in elf64_load() [all …]
|
A D | file_load_64.c | 276 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, in __locate_mem_hole_top_down() 375 kbuf->mem = start; in __locate_mem_hole_bottom_up() 737 kbuf->buffer = buf; in load_backup_segment() 739 kbuf->bufsz = kbuf->memsz = BACKUP_SRC_SIZE; in load_backup_segment() 740 kbuf->top_down = false; in load_backup_segment() 809 kbuf->buffer = headers; in load_elfcorehdr_segment() 811 kbuf->bufsz = kbuf->memsz = headers_sz; in load_elfcorehdr_segment() 856 image->elf_load_addr, kbuf->bufsz, kbuf->memsz); in load_crashdump_segments_ppc64() 1167 if (kbuf->top_down) in arch_kexec_locate_mem_hole() 1176 add_mem_range(emem, kbuf->mem, kbuf->memsz); in arch_kexec_locate_mem_hole() [all …]
|
/linux/fs/ |
A D | statfs.c | 271 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs() 272 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs() 284 buf.f_type = kbuf->f_type; in put_compat_statfs() 285 buf.f_bsize = kbuf->f_bsize; in put_compat_statfs() 287 buf.f_bfree = kbuf->f_bfree; in put_compat_statfs() 289 buf.f_files = kbuf->f_files; in put_compat_statfs() 290 buf.f_ffree = kbuf->f_ffree; in put_compat_statfs() 295 buf.f_flags = kbuf->f_flags; in put_compat_statfs() 327 if ((kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs64() 331 buf.f_type = kbuf->f_type; in put_compat_statfs64() [all …]
|
/linux/arch/x86/kernel/ |
A D | kexec-bzimage64.c | 418 kbuf.buffer = params; in bzImage64_load() 419 kbuf.memsz = kbuf.bufsz; in bzImage64_load() 420 kbuf.buf_align = 16; in bzImage64_load() 422 ret = kexec_add_buffer(&kbuf); in bzImage64_load() 427 bootparam_load_addr, kbuf.bufsz, kbuf.bufsz); in bzImage64_load() 439 kernel_load_addr = kbuf.mem; in bzImage64_load() 442 kernel_load_addr, kbuf.bufsz, kbuf.memsz); in bzImage64_load() 446 kbuf.buffer = initrd; in bzImage64_load() 447 kbuf.bufsz = kbuf.memsz = initrd_len; in bzImage64_load() 448 kbuf.buf_align = PAGE_SIZE; in bzImage64_load() [all …]
|
A D | crash.c | 389 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments() local 393 ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz); in crash_load_segments() 397 image->elf_headers = kbuf.buffer; in crash_load_segments() 398 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments() 400 kbuf.memsz = kbuf.bufsz; in crash_load_segments() 401 kbuf.buf_align = ELF_CORE_HEADER_ALIGN; in crash_load_segments() 402 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in crash_load_segments() 403 ret = kexec_add_buffer(&kbuf); in crash_load_segments() 408 image->elf_load_addr = kbuf.mem; in crash_load_segments() 410 image->elf_load_addr, kbuf.bufsz, kbuf.bufsz); in crash_load_segments()
|
/linux/arch/powerpc/kernel/ptrace/ |
A D | ptrace-decl.h | 69 const void *kbuf, const void __user *ubuf); 77 const void *kbuf, const void __user *ubuf); 85 const void *kbuf, const void __user *ubuf); 93 const void *kbuf, const void __user *ubuf); 104 const void *kbuf, const void __user *ubuf, 119 const void *kbuf, const void __user *ubuf); 124 const void *kbuf, const void __user *ubuf); 129 const void *kbuf, const void __user *ubuf); 134 const void *kbuf, const void __user *ubuf); 154 const void *kbuf, const void __user *ubuf); [all …]
|
A D | ptrace-tm.c | 136 const void *kbuf, const void __user *ubuf) in tm_cgpr_set() argument 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 167 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 275 const void *kbuf, const void __user *ubuf) in tm_cfpr_set() argument 395 const void *kbuf, const void __user *ubuf) in tm_cvmx_set() argument 514 const void *kbuf, const void __user *ubuf) in tm_cvsx_set() argument 618 const void *kbuf, const void __user *ubuf) in tm_spr_set() argument 678 const void *kbuf, const void __user *ubuf) in tm_tar_set() argument 719 const void *kbuf, const void __user *ubuf) in tm_ppr_set() argument 759 const void *kbuf, const void __user *ubuf) in tm_dscr_set() argument [all …]
|
A D | ptrace-view.c | 248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 646 const void *kbuf, const void __user *ubuf, in gpr32_set_common() argument 649 const compat_ulong_t *k = kbuf; in gpr32_set_common() 653 if (!kbuf && !user_read_access_begin(u, count)) in gpr32_set_common() 659 if (kbuf) in gpr32_set_common() 670 if (kbuf) in gpr32_set_common() 679 if (kbuf) { in gpr32_set_common() 694 if (kbuf) in gpr32_set_common() 702 if (!kbuf) in gpr32_set_common() 705 kbuf = k; in gpr32_set_common() [all …]
|
/linux/arch/sparc/kernel/ |
A D | ptrace_64.c | 162 void *kbuf, int len) in get_from_target() argument 177 void *kbuf, int len) in set_to_target() argument 271 const void *kbuf, const void __user *ubuf) in genregs64_set() argument 375 const void *kbuf, const void __user *ubuf) in fpregs64_set() argument 461 const void *kbuf, const void __user *ubuf) in setregs64_set() argument 564 const void *kbuf, const void __user *ubuf) in genregs32_set() argument 568 const compat_ulong_t *k = kbuf; in genregs32_set() 578 if (kbuf) { in genregs32_set() 637 if (kbuf) in genregs32_set() 703 const void *kbuf, const void __user *ubuf) in fpregs32_set() argument [all …]
|
A D | ptrace_32.c | 110 const void *kbuf, const void __user *ubuf) in genregs32_set() argument 120 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 128 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 138 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 147 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 152 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 157 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 185 const void *kbuf, const void __user *ubuf) in fpregs32_set() argument 194 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpregs32_set() 263 const void *kbuf, const void __user *ubuf) in setregs_set() argument [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
A D | reconfig.c | 362 char *kbuf; in ofdt_write() local 365 kbuf = memdup_user_nul(buf, count); in ofdt_write() 366 if (IS_ERR(kbuf)) in ofdt_write() 367 return PTR_ERR(kbuf); in ofdt_write() 369 tmp = strchr(kbuf, ' '); in ofdt_write() 377 if (!strcmp(kbuf, "add_node")) in ofdt_write() 379 else if (!strcmp(kbuf, "remove_node")) in ofdt_write() 381 else if (!strcmp(kbuf, "add_property")) in ofdt_write() 383 else if (!strcmp(kbuf, "remove_property")) in ofdt_write() 385 else if (!strcmp(kbuf, "update_property")) in ofdt_write() [all …]
|
/linux/arch/um/drivers/ |
A D | hostaudio_kern.c | 74 void *kbuf; in hostaudio_read() local 81 kbuf = kmalloc(count, GFP_KERNEL); in hostaudio_read() 82 if (kbuf == NULL) in hostaudio_read() 85 err = os_read_file(state->fd, kbuf, count); in hostaudio_read() 89 if (copy_to_user(buffer, kbuf, err)) in hostaudio_read() 93 kfree(kbuf); in hostaudio_read() 101 void *kbuf; in hostaudio_write() local 108 kbuf = memdup_user(buffer, count); in hostaudio_write() 109 if (IS_ERR(kbuf)) in hostaudio_write() 110 return PTR_ERR(kbuf); in hostaudio_write() [all …]
|
/linux/drivers/char/xilinx_hwicap/ |
A D | xilinx_hwicap.c | 360 u32 *kbuf; in hwicap_read() local 389 if (!kbuf) { in hwicap_read() 414 kbuf, words); in hwicap_read() 418 free_page((unsigned long)kbuf); in hwicap_read() 424 free_page((unsigned long)kbuf); in hwicap_read() 429 kbuf, in hwicap_read() 432 free_page((unsigned long)kbuf); in hwicap_read() 447 u32 *kbuf; in hwicap_write() local 464 if (!kbuf) { in hwicap_write() 498 kbuf, len >> 2); in hwicap_write() [all …]
|
/linux/security/integrity/ima/ |
A D | ima_kexec.c | 84 struct kexec_buf kbuf = { .image = image, .buf_align = PAGE_SIZE, in ima_add_kexec_buffer() local 118 kbuf.buffer = kexec_buffer; in ima_add_kexec_buffer() 119 kbuf.bufsz = kexec_buffer_size; in ima_add_kexec_buffer() 120 kbuf.memsz = kexec_segment_size; in ima_add_kexec_buffer() 121 ret = kexec_add_buffer(&kbuf); in ima_add_kexec_buffer() 128 image->ima_buffer_addr = kbuf.mem; in ima_add_kexec_buffer() 133 kbuf.mem); in ima_add_kexec_buffer()
|
/linux/drivers/staging/vc04_services/interface/vchiq_arm/ |
A D | vchiq_debugfs.c | 79 char kbuf[DEBUGFS_WRITE_BUF_SIZE + 1]; in debugfs_log_write() local 81 memset(kbuf, 0, DEBUGFS_WRITE_BUF_SIZE + 1); in debugfs_log_write() 85 if (copy_from_user(kbuf, buffer, count)) in debugfs_log_write() 87 kbuf[count - 1] = 0; in debugfs_log_write() 89 if (strncmp("error", kbuf, strlen("error")) == 0) in debugfs_log_write() 91 else if (strncmp("warning", kbuf, strlen("warning")) == 0) in debugfs_log_write() 93 else if (strncmp("info", kbuf, strlen("info")) == 0) in debugfs_log_write() 95 else if (strncmp("trace", kbuf, strlen("trace")) == 0) in debugfs_log_write()
|
/linux/include/linux/ |
A D | regset.h | 120 const void *kbuf, const void __user *ubuf); 254 const void **kbuf, in user_regset_copyin() argument 265 if (*kbuf) { in user_regset_copyin() 266 memcpy(data, *kbuf, copy); in user_regset_copyin() 267 *kbuf += copy; in user_regset_copyin() 280 const void **kbuf, in user_regset_copyin_ignore() argument 291 if (*kbuf) in user_regset_copyin_ignore() 292 *kbuf += copy; in user_regset_copyin_ignore()
|
/linux/net/qrtr/ |
A D | tun.c | 91 void *kbuf; in qrtr_tun_write_iter() local 99 kbuf = kzalloc(len, GFP_KERNEL); in qrtr_tun_write_iter() 100 if (!kbuf) in qrtr_tun_write_iter() 103 if (!copy_from_iter_full(kbuf, len, from)) { in qrtr_tun_write_iter() 104 kfree(kbuf); in qrtr_tun_write_iter() 108 ret = qrtr_endpoint_post(&tun->ep, kbuf, len); in qrtr_tun_write_iter() 110 kfree(kbuf); in qrtr_tun_write_iter()
|