/kernel/module/ |
D | kallsyms.c | 77 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() argument 82 if (src->st_shndx == SHN_UNDEF || in is_core_symbol() 83 src->st_shndx >= shnum || in is_core_symbol() 84 !src->st_name) in is_core_symbol() 88 if (src->st_shndx == pcpundx) in is_core_symbol() 92 sec = sechdrs + src->st_shndx; in is_core_symbol() 114 const Elf_Sym *src; in layout_symtab() local 123 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab() 124 nsrc = symsect->sh_size / sizeof(*src); in layout_symtab() 129 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab() [all …]
|
/kernel/events/ |
D | internal.h | 177 memcpy_common(void *dst, const void *src, unsigned long n) in memcpy_common() argument 179 memcpy(dst, src, n); in memcpy_common() 186 memcpy_skip(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY() 197 arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY() 202 ret = __copy_from_user_inatomic(dst, src, n); in DEFINE_OUTPUT_COPY()
|
/kernel/ |
D | smp.c | 38 u64 src:16; member 195 (union cfd_seq_cnt){ .u.src = s, .u.dst = d, .u.type = t, .u.cnt = c } 197 static u64 cfd_seq_inc(unsigned int src, unsigned int dst, unsigned int type) in cfd_seq_inc() argument 201 new = CFD_SEQ(src, dst, type, 0); in cfd_seq_inc() 211 #define cfd_seq_store(var, src, dst, type) \ argument 214 var = cfd_seq_inc(src, dst, type); \ 249 static void cfd_seq_data_add(u64 val, unsigned int src, unsigned int dst, in cfd_seq_data_add() argument 257 new[1] = CFD_SEQ(src, dst, type, new[0].u.cnt + 1); in cfd_seq_data_add() 292 unsigned int srccpu = csd->node.src; in csd_lock_print_extended() 317 data[i].u.cnt & ~0x80000000U, data[i].u.src, in csd_lock_print_extended() [all …]
|
D | ptrace.c | 626 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument 635 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata() 645 src += retval; in ptrace_readdata() 652 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument 661 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 671 src += retval; in ptrace_writedata()
|
D | cpu.c | 2709 void init_cpu_present(const struct cpumask *src) in init_cpu_present() argument 2711 cpumask_copy(&__cpu_present_mask, src); in init_cpu_present() 2714 void init_cpu_possible(const struct cpumask *src) in init_cpu_possible() argument 2716 cpumask_copy(&__cpu_possible_mask, src); in init_cpu_possible() 2719 void init_cpu_online(const struct cpumask *src) in init_cpu_online() argument 2721 cpumask_copy(&__cpu_online_mask, src); in init_cpu_online()
|
/kernel/cgroup/ |
D | freezer.c | 228 struct cgroup *src, struct cgroup *dst) in cgroup_freezer_migrate_task() argument 242 if (!test_bit(CGRP_FREEZE, &src->flags) && in cgroup_freezer_migrate_task() 254 cgroup_dec_frozen_cnt(src); in cgroup_freezer_migrate_task() 257 cgroup_update_frozen(src); in cgroup_freezer_migrate_task()
|
D | cgroup-v1.c | 240 int src, dest = 1; in pidlist_uniq() local 249 for (src = 1; src < length; src++) { in pidlist_uniq() 251 while (list[src] == list[src-1]) { in pidlist_uniq() 252 src++; in pidlist_uniq() 253 if (src == length) in pidlist_uniq() 257 list[dest] = list[src]; in pidlist_uniq()
|
/kernel/kcsan/ |
D | core.c | 1344 void *__tsan_memmove(void *dst, const void *src, size_t len); 1345 noinline void *__tsan_memmove(void *dst, const void *src, size_t len) in __tsan_memmove() argument 1350 check_access(src, check_len, 0, _RET_IP_); in __tsan_memmove() 1351 return memmove(dst, src, len); in __tsan_memmove() 1354 void *__tsan_memmove(void *dst, const void *src, size_t len) __alias(memmove); 1359 void *__tsan_memcpy(void *dst, const void *src, size_t len); 1360 noinline void *__tsan_memcpy(void *dst, const void *src, size_t len) in __tsan_memcpy() argument 1365 check_access(src, check_len, 0, _RET_IP_); in __tsan_memcpy() 1366 return memcpy(dst, src, len); in __tsan_memcpy() 1369 void *__tsan_memcpy(void *dst, const void *src, size_t len) __alias(memcpy);
|
/kernel/debug/kdb/ |
D | Makefile | 23 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
|
D | kdb_io.c | 582 int vkdb_printf(enum kdb_msgsrc src, const char *fmt, va_list ap) in vkdb_printf() argument 738 if (printk_get_level(kdb_buffer) || src == KDB_MSGSRC_PRINTK) in vkdb_printf()
|
/kernel/gcov/ |
D | gcc_4_7.c | 246 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument 254 for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) { in gcov_info_add() 256 sci_ptr = src->functions[fi_idx]->ctrs; in gcov_info_add() 259 if (!counter_active(src, ct_idx)) in gcov_info_add()
|
D | clang.c | 272 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument 275 struct gcov_fn_info *sfn_ptr = list_first_entry_or_null(&src->functions, in gcov_info_add()
|
/kernel/trace/ |
D | Makefile | 38 CFLAGS_bpf_trace.o := -I$(src) 40 CFLAGS_trace_benchmark.o := -I$(src) 41 CFLAGS_trace_events_filter.o := -I$(src)
|
D | trace_eprobe.c | 492 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument 494 const void __user *uaddr = (__force const void __user *)src; in probe_mem_read_user() 500 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument 503 if ((unsigned long)src < TASK_SIZE) in probe_mem_read() 504 return probe_mem_read_user(dest, src, size); in probe_mem_read() 506 return copy_from_kernel_nofault(dest, src, size); in probe_mem_read()
|
D | trace_probe_tmpl.h | 66 probe_mem_read(void *dest, void *src, size_t size); 68 probe_mem_read_user(void *dest, void *src, size_t size);
|
D | trace_uprobe.c | 129 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument 131 void __user *vaddr = (void __force __user *)src; in probe_mem_read() 137 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument 139 return probe_mem_read(dest, src, size); in probe_mem_read_user() 153 void __user *src = (void __force __user *) addr; in fetch_store_string() local 161 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
|
D | trace_kprobe.c | 1319 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument 1321 const void __user *uaddr = (__force const void __user *)src; in probe_mem_read_user() 1327 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument 1330 if ((unsigned long)src < TASK_SIZE) in probe_mem_read() 1331 return probe_mem_read_user(dest, src, size); in probe_mem_read() 1333 return copy_from_kernel_nofault(dest, src, size); in probe_mem_read()
|
/kernel/power/ |
D | swap.c | 382 void *src; in write_page() local 389 src = (void *)__get_free_page(GFP_NOIO | __GFP_NOWARN | in write_page() 391 if (src) { in write_page() 392 copy_page(src, buf); in write_page() 397 src = (void *)__get_free_page(GFP_NOIO | in write_page() 400 if (src) { in write_page() 401 copy_page(src, buf); in write_page() 405 src = buf; in write_page() 409 src = buf; in write_page() 411 return hib_submit_io(REQ_OP_WRITE | REQ_SYNC, offset, src, hb); in write_page()
|
D | snapshot.c | 1387 static inline bool do_copy_page(long *dst, long *src) in do_copy_page() argument 1393 z |= *src; in do_copy_page() 1394 *dst++ = *src++; in do_copy_page() 1432 void *src, *dst; in copy_data_page() local 1438 src = kmap_atomic(s_page); in copy_data_page() 1440 zeros_only = do_copy_page(dst, src); in copy_data_page() 1442 kunmap_atomic(src); in copy_data_page() 2241 struct memory_bitmap *src) in duplicate_memory_bitmap() argument 2245 memory_bm_position_reset(src); in duplicate_memory_bitmap() 2246 pfn = memory_bm_next_pfn(src); in duplicate_memory_bitmap() [all …]
|
/kernel/bpf/ |
D | helpers.c | 366 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked() argument 372 lock = src + map->spin_lock_off; in copy_map_value_locked() 377 copy_map_value(map, dst, src); in copy_map_value_locked() 1504 BPF_CALL_5(bpf_dynptr_read, void *, dst, u32, len, struct bpf_dynptr_kern *, src, in BPF_CALL_5() argument 1509 if (!src->data || flags) in BPF_CALL_5() 1512 err = bpf_dynptr_check_off_len(src, offset, len); in BPF_CALL_5() 1516 memcpy(dst, src->data + src->offset + offset, len); in BPF_CALL_5() 1532 BPF_CALL_5(bpf_dynptr_write, struct bpf_dynptr_kern *, dst, u32, offset, void *, src, in BPF_CALL_5() argument 1544 memcpy(dst->data + dst->offset + offset, src, len); in BPF_CALL_5()
|
D | verifier.c | 1011 static void *copy_array(void *dst, const void *src, size_t n, size_t size, gfp_t flags) in copy_array() argument 1017 if (ZERO_OR_NULL_PTR(src)) in copy_array() 1030 memcpy(dst, src, bytes); in copy_array() 1063 static int copy_reference_state(struct bpf_func_state *dst, const struct bpf_func_state *src) in copy_reference_state() argument 1065 dst->refs = copy_array(dst->refs, src->refs, src->acquired_refs, in copy_reference_state() 1070 dst->acquired_refs = src->acquired_refs; in copy_reference_state() 1074 static int copy_stack_state(struct bpf_func_state *dst, const struct bpf_func_state *src) in copy_stack_state() argument 1076 size_t n = src->allocated_stack / BPF_REG_SIZE; in copy_stack_state() 1078 dst->stack = copy_array(dst->stack, src->stack, n, sizeof(struct bpf_stack_state), in copy_stack_state() 1083 dst->allocated_stack = src->allocated_stack; in copy_stack_state() [all …]
|
/kernel/printk/ |
D | index.c | 70 #define seq_escape_printf_format(s, src) \ argument 71 seq_escape_str(s, src, ESCAPE_ANY | ESCAPE_NAP | ESCAPE_APPEND, "\"\\")
|
/kernel/sched/ |
D | cputime.c | 1036 const struct kernel_cpustat *src, in kcpustat_cpu_fetch_vtime() argument 1053 *dst = *src; in kcpustat_cpu_fetch_vtime() 1090 const struct kernel_cpustat *src = &kcpustat_cpu(cpu); in kcpustat_cpu_fetch() local 1095 *dst = *src; in kcpustat_cpu_fetch() 1108 *dst = *src; in kcpustat_cpu_fetch() 1112 err = kcpustat_cpu_fetch_vtime(dst, src, curr, cpu); in kcpustat_cpu_fetch()
|
/kernel/locking/ |
D | lockdep.c | 279 static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) in lock_time_add() argument 281 if (!src->nr) in lock_time_add() 284 if (src->max > dst->max) in lock_time_add() 285 dst->max = src->max; in lock_time_add() 287 if (src->min < dst->min || !dst->nr) in lock_time_add() 288 dst->min = src->min; in lock_time_add() 290 dst->total += src->total; in lock_time_add() 291 dst->nr += src->nr; in lock_time_add() 1869 print_circular_lock_scenario(struct held_lock *src, in print_circular_lock_scenario() argument 1873 struct lock_class *source = hlock_class(src); in print_circular_lock_scenario() [all …]
|
/kernel/time/ |
D | clocksource.c | 1428 struct clocksource *src; in available_clocksource_show() local 1432 list_for_each_entry(src, &clocksource_list, list) { in available_clocksource_show() 1438 (src->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in available_clocksource_show() 1441 "%s ", src->name); in available_clocksource_show()
|