/kernel/linux/linux-5.10/tools/lib/traceevent/ |
H A D | kbuffer-parse.c | 57 unsigned long long (*read_long)(struct kbuffer *kbuf, void *ptr); 58 int (*next_event)(struct kbuffer *kbuf); 75 static int do_swap(struct kbuffer *kbuf) in do_swap() argument 77 return ((kbuf->flags & KBUFFER_FL_HOST_BIG_ENDIAN) + kbuf->flags) & in do_swap() 125 static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) in read_8() argument 127 return kbuf->read_8(ptr); in read_8() 130 static unsigned int read_4(struct kbuffer *kbuf, void *ptr) in read_4() argument 132 return kbuf->read_4(ptr); in read_4() 135 static unsigned long long __read_long_8(struct kbuffer *kbuf, voi argument 140 __read_long_4(struct kbuffer *kbuf, void *ptr) __read_long_4() argument 145 read_long(struct kbuffer *kbuf, void *ptr) read_long() argument 150 calc_index(struct kbuffer *kbuf, void *ptr) calc_index() argument 167 struct kbuffer *kbuf; kbuffer_alloc() local 223 kbuffer_free(struct kbuffer *kbuf) kbuffer_free() argument 228 type4host(struct kbuffer *kbuf, unsigned int type_len_ts) type4host() argument 237 len4host(struct kbuffer *kbuf, unsigned int type_len_ts) len4host() argument 246 type_len4host(struct kbuffer *kbuf, unsigned int type_len_ts) type_len4host() argument 255 ts4host(struct kbuffer *kbuf, unsigned int type_len_ts) ts4host() argument 275 old_update_pointers(struct kbuffer *kbuf) old_update_pointers() argument 330 __old_next_event(struct kbuffer *kbuf) __old_next_event() argument 345 translate_data(struct kbuffer *kbuf, void *data, void **rptr, unsigned long long *delta, int *length) translate_data() argument 388 update_pointers(struct kbuffer *kbuf) update_pointers() argument 421 struct kbuffer kbuf; kbuffer_translate_data() local 449 __next_event(struct kbuffer *kbuf) __next_event() argument 465 next_event(struct kbuffer *kbuf) next_event() argument 482 kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts) kbuffer_next_event() argument 510 kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer) kbuffer_load_subbuffer() argument 559 kbuffer_subbuf_timestamp(struct kbuffer *kbuf, void *subbuf) kbuffer_subbuf_timestamp() argument 571 kbuffer_ptr_delta(struct kbuffer *kbuf, void *ptr) kbuffer_ptr_delta() argument 588 kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts) kbuffer_read_event() argument 607 kbuffer_timestamp(struct kbuffer *kbuf) kbuffer_timestamp() argument 630 kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts) kbuffer_read_at_offset() argument 661 kbuffer_subbuffer_size(struct kbuffer *kbuf) kbuffer_subbuffer_size() argument 676 kbuffer_curr_index(struct kbuffer *kbuf) kbuffer_curr_index() argument 688 kbuffer_curr_offset(struct kbuffer *kbuf) kbuffer_curr_offset() argument 700 kbuffer_event_size(struct kbuffer *kbuf) kbuffer_event_size() argument 712 kbuffer_curr_size(struct kbuffer *kbuf) kbuffer_curr_size() argument 726 kbuffer_missed_events(struct kbuffer *kbuf) kbuffer_missed_events() argument 744 kbuffer_set_old_format(struct kbuffer *kbuf) kbuffer_set_old_format() argument 757 kbuffer_start_of_data(struct kbuffer *kbuf) kbuffer_start_of_data() argument 776 kbuffer_raw_get(struct kbuffer *kbuf, void *subbuf, struct kbuffer_raw_info *info) kbuffer_raw_get() argument [all...] |
H A D | kbuffer.h | 32 void kbuffer_free(struct kbuffer *kbuf); 33 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer); 34 void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts); 35 void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts); 36 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf); 37 unsigned long long kbuffer_subbuf_timestamp(struct kbuffer *kbuf, void *subbuf); 38 unsigned int kbuffer_ptr_delta(struct kbuffer *kbuf, void *ptr); 42 void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts); 44 int kbuffer_curr_index(struct kbuffer *kbuf); 46 int kbuffer_curr_offset(struct kbuffer *kbuf); [all...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | machine_kexec_file.c | 95 struct kexec_buf kbuf; in load_other_segments() local 101 kbuf.image = image; in load_other_segments() 103 kbuf.buf_min = kernel_load_addr + kernel_size; in load_other_segments() 113 kbuf.buffer = headers; in load_other_segments() 114 kbuf.bufsz = headers_sz; in load_other_segments() 115 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in load_other_segments() 116 kbuf.memsz = headers_sz; in load_other_segments() 117 kbuf.buf_align = SZ_64K; /* largest supported page size */ in load_other_segments() 118 kbuf.buf_max = ULONG_MAX; in load_other_segments() 119 kbuf in load_other_segments() [all...] |
H A D | kexec_image.c | 44 struct kexec_buf kbuf; in image_load() local 75 kbuf.image = image; in image_load() 76 kbuf.buf_min = 0; in image_load() 77 kbuf.buf_max = ULONG_MAX; in image_load() 78 kbuf.top_down = false; in image_load() 80 kbuf.buffer = kernel; in image_load() 81 kbuf.bufsz = kernel_len; in image_load() 82 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in image_load() 83 kbuf.memsz = le64_to_cpu(h->image_size); in image_load() 85 kbuf in image_load() [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | kexec_file.c | 25 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf_load() local 32 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf_load() 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() 49 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf_load() 50 ret = kexec_add_buffer(&kbuf); in elf_load() 54 pr_debug("Loaded initrd at 0x%lx\n", kbuf in elf_load() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | kexec_file.c | 25 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf_load() local 32 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf_load() 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() 49 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf_load() 50 ret = kexec_add_buffer(&kbuf); in elf_load() 54 pr_debug("Loaded initrd at 0x%lx\n", kbuf in elf_load() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | kexec_file.c | 423 struct kexec_buf *kbuf) in locate_mem_hole_top_down() 425 struct kimage *image = kbuf->image; in locate_mem_hole_top_down() 428 temp_end = min(end, kbuf->buf_max); in locate_mem_hole_top_down() 429 temp_start = temp_end - kbuf->memsz; in locate_mem_hole_top_down() 433 temp_start = temp_start & (~(kbuf->buf_align - 1)); in locate_mem_hole_top_down() 435 if (temp_start < start || temp_start < kbuf->buf_min) in locate_mem_hole_top_down() 438 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down() 454 kbuf->mem = temp_start; in locate_mem_hole_top_down() 461 struct kexec_buf *kbuf) in locate_mem_hole_bottom_up() 463 struct kimage *image = kbuf in locate_mem_hole_bottom_up() 422 locate_mem_hole_top_down(unsigned long start, unsigned long end, struct kexec_buf *kbuf) locate_mem_hole_top_down() argument 460 locate_mem_hole_bottom_up(unsigned long start, unsigned long end, struct kexec_buf *kbuf) locate_mem_hole_bottom_up() argument 496 struct kexec_buf *kbuf = (struct kexec_buf *)arg; locate_mem_hole_callback() local 522 kexec_walk_memblock(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_memblock() argument 571 kexec_walk_memblock(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_memblock() argument 587 kexec_walk_resources(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_resources() argument 607 kexec_locate_mem_hole(struct kexec_buf *kbuf) kexec_locate_mem_hole() argument 633 kexec_add_buffer(struct kexec_buf *kbuf) kexec_add_buffer() argument 810 kexec_purgatory_setup_kbuf(struct purgatory_info *pi, struct kexec_buf *kbuf) kexec_purgatory_setup_kbuf() argument 871 kexec_purgatory_setup_sechdrs(struct purgatory_info *pi, struct kexec_buf *kbuf) kexec_purgatory_setup_sechdrs() argument 1014 kexec_load_purgatory(struct kimage *image, struct kexec_buf *kbuf) kexec_load_purgatory() argument [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | elf_kexec.c | 43 struct kexec_buf kbuf; in riscv_kexec_elf_load() local 46 kbuf.image = image; in riscv_kexec_elf_load() 57 kbuf.buffer = (void *) elf_info->buffer + phdr->p_offset; in riscv_kexec_elf_load() 58 kbuf.bufsz = size; in riscv_kexec_elf_load() 59 kbuf.buf_align = phdr->p_align; in riscv_kexec_elf_load() 60 kbuf.mem = phdr->p_paddr - old_pbase + new_pbase; in riscv_kexec_elf_load() 61 kbuf.memsz = phdr->p_memsz; in riscv_kexec_elf_load() 62 kbuf.top_down = false; in riscv_kexec_elf_load() 63 ret = kexec_add_buffer(&kbuf); in riscv_kexec_elf_load() 81 struct kexec_buf kbuf; in elf_find_pbase() local 206 struct kexec_buf kbuf; elf_kexec_load() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kexec/ |
H A D | elf_64.c | 40 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf64_load() local 52 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load() 53 kbuf.buf_max = pbuf.buf_max = in elf64_load() 58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load() 74 ret = load_crashdump_segments_ppc64(image, &kbuf); 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 in elf64_load() [all...] |
H A D | file_load_64.c | 238 * for the buffer. If found, sets kbuf->mem. 239 * @kbuf: Buffer contents and memory parameters. 245 static int __locate_mem_hole_top_down(struct kexec_buf *kbuf, in __locate_mem_hole_top_down() argument 273 start = ALIGN(start, kbuf->buf_align); in __locate_mem_hole_top_down() 274 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_top_down() 275 /* Suitable memory range found. Set kbuf->mem */ in __locate_mem_hole_top_down() 276 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, in __locate_mem_hole_top_down() 277 kbuf->buf_align); in __locate_mem_hole_top_down() 289 * @kbuf 296 locate_mem_hole_top_down_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) locate_mem_hole_top_down_ppc64() argument 344 __locate_mem_hole_bottom_up(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max) __locate_mem_hole_bottom_up() argument 394 locate_mem_hole_bottom_up_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) locate_mem_hole_bottom_up_ppc64() argument 719 load_backup_segment(struct kimage *image, struct kexec_buf *kbuf) load_backup_segment() argument 787 load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) load_elfcorehdr_segment() argument 835 load_crashdump_segments_ppc64(struct kimage *image, struct kexec_buf *kbuf) load_crashdump_segments_ppc64() argument 1152 arch_kexec_locate_mem_hole(struct kexec_buf *kbuf) arch_kexec_locate_mem_hole() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kexec/ |
H A D | elf_64.c | 40 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in elf64_load() local 52 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load() 53 kbuf.buf_max = pbuf.buf_max = in elf64_load() 58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); in elf64_load() 74 ret = load_crashdump_segments_ppc64(image, &kbuf); 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 in elf64_load() [all...] |
H A D | file_load_64.c | 243 * for the buffer. If found, sets kbuf->mem. 244 * @kbuf: Buffer contents and memory parameters. 250 static int __locate_mem_hole_top_down(struct kexec_buf *kbuf, in __locate_mem_hole_top_down() argument 278 start = ALIGN(start, kbuf->buf_align); in __locate_mem_hole_top_down() 279 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_top_down() 280 /* Suitable memory range found. Set kbuf->mem */ in __locate_mem_hole_top_down() 281 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, in __locate_mem_hole_top_down() 282 kbuf->buf_align); in __locate_mem_hole_top_down() 294 * @kbuf 301 locate_mem_hole_top_down_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) locate_mem_hole_top_down_ppc64() argument 349 __locate_mem_hole_bottom_up(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max) __locate_mem_hole_bottom_up() argument 399 locate_mem_hole_bottom_up_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) locate_mem_hole_bottom_up_ppc64() argument 726 load_backup_segment(struct kimage *image, struct kexec_buf *kbuf) load_backup_segment() argument 794 load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) load_elfcorehdr_segment() argument 842 load_crashdump_segments_ppc64(struct kimage *image, struct kexec_buf *kbuf) load_crashdump_segments_ppc64() argument 1261 arch_kexec_locate_mem_hole(struct kexec_buf *kbuf) arch_kexec_locate_mem_hole() argument [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | machine_kexec_file.c | 256 struct kexec_buf kbuf; in load_other_segments() local 262 kbuf.image = image; in load_other_segments() 264 kbuf.buf_min = kernel_load_addr + kernel_size; in load_other_segments() 274 kbuf.buffer = headers; in load_other_segments() 275 kbuf.bufsz = headers_sz; in load_other_segments() 276 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in load_other_segments() 277 kbuf.memsz = headers_sz; in load_other_segments() 278 kbuf.buf_align = SZ_64K; /* largest supported page size */ in load_other_segments() 279 kbuf.buf_max = ULONG_MAX; in load_other_segments() 280 kbuf in load_other_segments() [all...] |
H 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() 84 kbuf.memsz = le64_to_cpu(h->image_size); in image_load() 86 kbuf in image_load() [all...] |
/kernel/linux/linux-6.6/mm/damon/ |
H A D | dbgfs.c | 36 char *kbuf; in user_input_str() local 43 kbuf = kmalloc(count + 1, GFP_KERNEL | __GFP_NOWARN); in user_input_str() 44 if (!kbuf) in user_input_str() 47 ret = simple_write_to_buffer(kbuf, count + 1, ppos, buf, count); in user_input_str() 49 kfree(kbuf); in user_input_str() 52 kbuf[ret] = '\0'; in user_input_str() 54 return kbuf; in user_input_str() 61 char kbuf[128]; in dbgfs_attrs_read() local 65 ret = scnprintf(kbuf, ARRAY_SIZE(kbuf), " in dbgfs_attrs_read() 79 char *kbuf; dbgfs_attrs_write() local 174 char *kbuf; dbgfs_schemes_read() local 298 char *kbuf; dbgfs_schemes_write() local 492 char *kbuf; dbgfs_target_ids_write() local 575 char *kbuf; dbgfs_init_regions_read() local 670 char *kbuf; dbgfs_init_regions_write() local 698 char *kbuf; dbgfs_kdamond_pid_read() local 862 char *kbuf; dbgfs_mk_context_write() local 968 char *kbuf; dbgfs_rm_context_write() local 1015 char *kbuf; dbgfs_monitor_on_write() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | kexec_file.c | 424 struct kexec_buf *kbuf) in locate_mem_hole_top_down() 426 struct kimage *image = kbuf->image; in locate_mem_hole_top_down() 429 temp_end = min(end, kbuf->buf_max); in locate_mem_hole_top_down() 430 temp_start = temp_end - kbuf->memsz; in locate_mem_hole_top_down() 434 temp_start = temp_start & (~(kbuf->buf_align - 1)); in locate_mem_hole_top_down() 436 if (temp_start < start || temp_start < kbuf->buf_min) in locate_mem_hole_top_down() 439 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down() 455 kbuf->mem = temp_start; in locate_mem_hole_top_down() 462 struct kexec_buf *kbuf) in locate_mem_hole_bottom_up() 464 struct kimage *image = kbuf in locate_mem_hole_bottom_up() 423 locate_mem_hole_top_down(unsigned long start, unsigned long end, struct kexec_buf *kbuf) locate_mem_hole_top_down() argument 461 locate_mem_hole_bottom_up(unsigned long start, unsigned long end, struct kexec_buf *kbuf) locate_mem_hole_bottom_up() argument 497 struct kexec_buf *kbuf = (struct kexec_buf *)arg; locate_mem_hole_callback() local 523 kexec_walk_memblock(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_memblock() argument 567 kexec_walk_memblock(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_memblock() argument 583 kexec_walk_resources(struct kexec_buf *kbuf, int (*func)(struct resource *, void *)) kexec_walk_resources() argument 603 kexec_locate_mem_hole(struct kexec_buf *kbuf) kexec_locate_mem_hole() argument 627 arch_kexec_locate_mem_hole(struct kexec_buf *kbuf) arch_kexec_locate_mem_hole() argument 642 kexec_add_buffer(struct kexec_buf *kbuf) kexec_add_buffer() argument 813 kexec_purgatory_setup_kbuf(struct purgatory_info *pi, struct kexec_buf *kbuf) kexec_purgatory_setup_kbuf() argument 874 kexec_purgatory_setup_sechdrs(struct purgatory_info *pi, struct kexec_buf *kbuf) kexec_purgatory_setup_sechdrs() argument 1016 kexec_load_purgatory(struct kimage *image, struct kexec_buf *kbuf) kexec_load_purgatory() argument [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | statfs.c | 264 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() argument 268 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs() 269 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs() 273 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs() 274 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs() 276 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs() 277 && (kbuf in put_compat_statfs() 320 put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) put_compat_statfs64() argument [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | statfs.c | 267 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() argument 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() 276 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs() 277 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs() 279 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs() 280 && (kbuf in put_compat_statfs() 323 put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) put_compat_statfs64() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | kexec-bzimage64.c | 401 struct kexec_buf kbuf = { .image = image, .buf_max = ULONG_MAX, in bzImage64_load() local 463 kbuf.bufsz = params_cmdline_sz + ALIGN(efi_map_sz, 16) + in bzImage64_load() 470 kbuf.bufsz += sizeof(struct setup_data) + in bzImage64_load() 473 params = kzalloc(kbuf.bufsz, GFP_KERNEL); in bzImage64_load() 485 kbuf.buffer = params; in bzImage64_load() 486 kbuf.memsz = kbuf.bufsz; in bzImage64_load() 487 kbuf.buf_align = 16; in bzImage64_load() 488 kbuf.buf_min = MIN_BOOTPARAM_ADDR; in bzImage64_load() 489 ret = kexec_add_buffer(&kbuf); in bzImage64_load() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H 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); 139 const void *kbuf, cons [all...] |
H A D | ptrace-tm.c | 119 * @kbuf: Kernel buffer to copy into. 135 const void *kbuf, const void __user *ubuf) in tm_cgpr_set() 150 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 155 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 166 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 172 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 177 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 185 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 257 * @kbuf: Kernel buffer to copy into. 274 const void *kbuf, cons in tm_cfpr_set() 133 tm_cgpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cgpr_set() argument 272 tm_cfpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cfpr_set() argument 392 tm_cvmx_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cvmx_set() argument 511 tm_cvsx_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cvsx_set() argument 615 tm_spr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_spr_set() argument 675 tm_tar_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_tar_set() argument 716 tm_ppr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_ppr_set() argument 756 tm_dscr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_dscr_set() argument 781 tm_cgpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cgpr32_set() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | kexec-bzimage64.c | 340 struct kexec_buf kbuf = { .image = image, .buf_max = ULONG_MAX, in bzImage64_load() local 402 kbuf.bufsz = params_cmdline_sz + ALIGN(efi_map_sz, 16) + in bzImage64_load() 406 params = kzalloc(kbuf.bufsz, GFP_KERNEL); in bzImage64_load() 418 kbuf.buffer = params; in bzImage64_load() 419 kbuf.memsz = kbuf.bufsz; in bzImage64_load() 420 kbuf.buf_align = 16; in bzImage64_load() 421 kbuf.buf_min = MIN_BOOTPARAM_ADDR; in bzImage64_load() 422 ret = kexec_add_buffer(&kbuf); in bzImage64_load() 425 bootparam_load_addr = kbuf in bzImage64_load() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-tm.c | 120 * @kbuf: Kernel buffer to copy into. 136 const void *kbuf, const void __user *ubuf) in tm_cgpr_set() 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 156 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() 173 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 178 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set() 186 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set() 258 * @kbuf: Kernel buffer to copy into. 275 const void *kbuf, cons in tm_cfpr_set() 134 tm_cgpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cgpr_set() argument 273 tm_cfpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cfpr_set() argument 393 tm_cvmx_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cvmx_set() argument 512 tm_cvsx_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cvsx_set() argument 616 tm_spr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_spr_set() argument 676 tm_tar_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_tar_set() argument 717 tm_ppr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_ppr_set() argument 757 tm_dscr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_dscr_set() argument 782 tm_cgpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tm_cgpr32_set() argument [all...] |
H A D | ptrace-decl.h | 75 const void *kbuf, const void __user *ubuf); 83 const void *kbuf, const void __user *ubuf); 91 const void *kbuf, const void __user *ubuf); 99 const void *kbuf, const void __user *ubuf); 110 const void *kbuf, const void __user *ubuf, 125 const void *kbuf, const void __user *ubuf); 130 const void *kbuf, const void __user *ubuf); 135 const void *kbuf, const void __user *ubuf); 140 const void *kbuf, const void __user *ubuf); 145 const void *kbuf, cons [all...] |
H A D | ptrace-view.c | 239 unsigned int pos, unsigned int count, const void *kbuf, in gpr_set() 248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 253 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 264 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set() 270 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 275 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set() 283 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set() 300 unsigned int pos, unsigned int count, const void *kbuf, in ppr_set() 306 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ppr_set() 316 unsigned int pos, unsigned int count, const void *kbuf, in dscr_set() 238 gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) gpr_set() argument 299 ppr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) ppr_set() argument 315 dscr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) dscr_set() argument 329 tar_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) tar_set() argument 364 ebb_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) ebb_set() argument 418 pmu_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) pmu_set() argument 504 hashkeyr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) hashkeyr_set() argument 538 pkey_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) pkey_set() argument 719 gpr32_set_common_kernel(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, unsigned long *regs) gpr32_set_common_kernel() argument 763 const void *kbuf = NULL; gpr32_set_common_user() local 811 gpr32_set_common(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, unsigned long *regs) gpr32_set_common() argument 834 gpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) gpr32_set() argument [all...] |