Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 31) sorted by relevance

12

/kernel/events/
Dinternal.h177 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/kcsan/
Dcore.c1072 void *__tsan_memmove(void *dst, const void *src, size_t len);
1073 noinline void *__tsan_memmove(void *dst, const void *src, size_t len) in __tsan_memmove() argument
1078 check_access(src, check_len, 0); in __tsan_memmove()
1079 return memmove(dst, src, len); in __tsan_memmove()
1082 void *__tsan_memmove(void *dst, const void *src, size_t len) __alias(memmove);
1087 void *__tsan_memcpy(void *dst, const void *src, size_t len);
1088 noinline void *__tsan_memcpy(void *dst, const void *src, size_t len) in __tsan_memcpy() argument
1093 check_access(src, check_len, 0); in __tsan_memcpy()
1094 return memcpy(dst, src, len); in __tsan_memcpy()
1097 void *__tsan_memcpy(void *dst, const void *src, size_t len) __alias(memcpy);
/kernel/cgroup/
Dfreezer.c223 struct cgroup *src, struct cgroup *dst) in cgroup_freezer_migrate_task() argument
237 if (!test_bit(CGRP_FREEZE, &src->flags) && in cgroup_freezer_migrate_task()
249 cgroup_dec_frozen_cnt(src); in cgroup_freezer_migrate_task()
252 cgroup_update_frozen(src); in cgroup_freezer_migrate_task()
Dcgroup-v1.c241 int src, dest = 1; in pidlist_uniq() local
250 for (src = 1; src < length; src++) { in pidlist_uniq()
252 while (list[src] == list[src-1]) { in pidlist_uniq()
253 src++; in pidlist_uniq()
254 if (src == length) in pidlist_uniq()
258 list[dest] = list[src]; in pidlist_uniq()
/kernel/debug/kdb/
DMakefile23 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
Dkdb_io.c583 int vkdb_printf(enum kdb_msgsrc src, const char *fmt, va_list ap) in vkdb_printf() argument
739 if (printk_get_level(kdb_buffer) || src == KDB_MSGSRC_PRINTK) in vkdb_printf()
/kernel/trace/
DMakefile34 CFLAGS_bpf_trace.o := -I$(src)
36 CFLAGS_trace_benchmark.o := -I$(src)
37 CFLAGS_trace_events_filter.o := -I$(src)
Dtrace_probe_tmpl.h66 probe_mem_read(void *dest, void *src, size_t size);
68 probe_mem_read_user(void *dest, void *src, size_t size);
Dtrace_uprobe.c131 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument
133 void __user *vaddr = (void __force __user *)src; in probe_mem_read()
139 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument
141 return probe_mem_read(dest, src, size); in probe_mem_read_user()
155 void __user *src = (void __force __user *) addr; in fetch_store_string() local
163 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
Dtrace_kprobe.c1316 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument
1318 const void __user *uaddr = (__force const void __user *)src; in probe_mem_read_user()
1324 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument
1327 if ((unsigned long)src < TASK_SIZE) in probe_mem_read()
1328 return probe_mem_read_user(dest, src, size); in probe_mem_read()
1330 return copy_from_kernel_nofault(dest, src, size); in probe_mem_read()
/kernel/gcov/
Dgcc_4_7.c249 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
257 for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) { in gcov_info_add()
259 sci_ptr = src->functions[fi_idx]->ctrs; in gcov_info_add()
262 if (!counter_active(src, ct_idx)) in gcov_info_add()
Dclang.c319 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
322 struct gcov_fn_info *sfn_ptr = list_first_entry_or_null(&src->functions, in gcov_info_add()
/kernel/power/
Dswap.c378 void *src; in write_page() local
385 src = (void *)__get_free_page(GFP_NOIO | __GFP_NOWARN | in write_page()
387 if (src) { in write_page()
388 copy_page(src, buf); in write_page()
393 src = (void *)__get_free_page(GFP_NOIO | in write_page()
396 if (src) { in write_page()
397 copy_page(src, buf); in write_page()
401 src = buf; in write_page()
405 src = buf; in write_page()
407 return hib_submit_io(REQ_OP_WRITE, REQ_SYNC, offset, src, hb); in write_page()
Dsnapshot.c1338 static inline void do_copy_page(long *dst, long *src) in do_copy_page() argument
1343 *dst++ = *src++; in do_copy_page()
1375 void *src, *dst; in copy_data_page() local
1380 src = kmap_atomic(s_page); in copy_data_page()
1382 do_copy_page(dst, src); in copy_data_page()
1384 kunmap_atomic(src); in copy_data_page()
2142 struct memory_bitmap *src) in duplicate_memory_bitmap() argument
2146 memory_bm_position_reset(src); in duplicate_memory_bitmap()
2147 pfn = memory_bm_next_pfn(src); in duplicate_memory_bitmap()
2150 pfn = memory_bm_next_pfn(src); in duplicate_memory_bitmap()
/kernel/sched/
Dcputime.c1009 const struct kernel_cpustat *src, in kcpustat_cpu_fetch_vtime() argument
1026 *dst = *src; in kcpustat_cpu_fetch_vtime()
1063 const struct kernel_cpustat *src = &kcpustat_cpu(cpu); in kcpustat_cpu_fetch() local
1068 *dst = *src; in kcpustat_cpu_fetch()
1081 *dst = *src; in kcpustat_cpu_fetch()
1085 err = kcpustat_cpu_fetch_vtime(dst, src, curr, cpu); in kcpustat_cpu_fetch()
/kernel/
Dptrace.c631 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument
640 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata()
650 src += retval; in ptrace_readdata()
657 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument
666 if (copy_from_user(buf, src, this_len)) in ptrace_writedata()
676 src += retval; in ptrace_writedata()
Dmodule.c2741 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() argument
2746 if (src->st_shndx == SHN_UNDEF in is_core_symbol()
2747 || src->st_shndx >= shnum in is_core_symbol()
2748 || !src->st_name) in is_core_symbol()
2752 if (src->st_shndx == pcpundx) in is_core_symbol()
2756 sec = sechdrs + src->st_shndx; in is_core_symbol()
2778 const Elf_Sym *src; in layout_symtab() local
2787 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
2788 nsrc = symsect->sh_size / sizeof(*src); in layout_symtab()
2793 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
[all …]
Dcpu.c2827 void init_cpu_present(const struct cpumask *src) in init_cpu_present() argument
2829 cpumask_copy(&__cpu_present_mask, src); in init_cpu_present()
2832 void init_cpu_possible(const struct cpumask *src) in init_cpu_possible() argument
2834 cpumask_copy(&__cpu_possible_mask, src); in init_cpu_possible()
2837 void init_cpu_online(const struct cpumask *src) in init_cpu_online() argument
2839 cpumask_copy(&__cpu_online_mask, src); in init_cpu_online()
Dsmp.c510 csd->src = smp_processor_id(); in smp_call_function_single()
679 csd->src = smp_processor_id(); in smp_call_function_many_cond()
/kernel/locking/
Dlockdep.c247 static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) in lock_time_add() argument
249 if (!src->nr) in lock_time_add()
252 if (src->max > dst->max) in lock_time_add()
253 dst->max = src->max; in lock_time_add()
255 if (src->min < dst->min || !dst->nr) in lock_time_add()
256 dst->min = src->min; in lock_time_add()
258 dst->total += src->total; in lock_time_add()
259 dst->nr += src->nr; in lock_time_add()
1823 print_circular_lock_scenario(struct held_lock *src, in print_circular_lock_scenario() argument
1827 struct lock_class *source = hlock_class(src); in print_circular_lock_scenario()
[all …]
/kernel/bpf/
Dhelpers.c315 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked() argument
321 lock = src + map->spin_lock_off; in copy_map_value_locked()
326 copy_map_value(map, dst, src); in copy_map_value_locked()
Dverifier.c706 const struct bpf_func_state *src) \
708 if (!src->FIELD) \
710 if (WARN_ON_ONCE(dst->COUNT < src->COUNT)) { \
715 memcpy(dst->FIELD, src->FIELD, \
716 sizeof(*src->FIELD) * (src->COUNT / SIZE)); \
822 struct bpf_func_state *src) in transfer_reference_state() argument
824 int err = realloc_reference_state(dst, src->acquired_refs, false); in transfer_reference_state()
827 err = copy_reference_state(dst, src); in transfer_reference_state()
867 const struct bpf_func_state *src) in copy_func_state() argument
871 err = realloc_func_state(dst, src->allocated_stack, src->acquired_refs, in copy_func_state()
[all …]
Dsyscall.c408 struct bpf_map_memory *src) in bpf_map_charge_move() argument
410 *dst = *src; in bpf_map_charge_move()
413 memset(src, 0, sizeof(struct bpf_map_memory)); in bpf_map_charge_move()
730 int bpf_obj_name_cpy(char *dst, const char *src, unsigned int size) in bpf_obj_name_cpy() argument
732 const char *end = src + size; in bpf_obj_name_cpy()
733 const char *orig_src = src; in bpf_obj_name_cpy()
737 while (src < end && *src) { in bpf_obj_name_cpy()
738 if (!isalnum(*src) && in bpf_obj_name_cpy()
739 *src != '_' && *src != '.') in bpf_obj_name_cpy()
741 *dst++ = *src++; in bpf_obj_name_cpy()
[all …]
Dcgroup.c74 struct bpf_cgroup_storage *src[]) in bpf_cgroup_storages_assign() argument
79 dst[stype] = src[stype]; in bpf_cgroup_storages_assign()
1613 static int copy_sysctl_value(char *dst, size_t dst_len, char *src, in copy_sysctl_value() argument
1622 if (!src || !src_len) { in copy_sysctl_value()
1627 memcpy(dst, src, min(dst_len, src_len)); in copy_sysctl_value()
/kernel/time/
Dclocksource.c1254 struct clocksource *src; in available_clocksource_show() local
1258 list_for_each_entry(src, &clocksource_list, list) { in available_clocksource_show()
1264 (src->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in available_clocksource_show()
1267 "%s ", src->name); in available_clocksource_show()

12