Home
last modified time | relevance | path

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

12

/kernel/events/
Dinternal.h171 memcpy_common(void *dst, const void *src, unsigned long n) in memcpy_common() argument
173 memcpy(dst, src, n); in memcpy_common()
180 memcpy_skip(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
191 arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY()
196 ret = __copy_from_user_inatomic(dst, src, n); in DEFINE_OUTPUT_COPY()
Duprobes.c257 static void copy_to_page(struct page *page, unsigned long vaddr, const void *src, int len) in copy_to_page() argument
260 memcpy(kaddr + (vaddr & ~PAGE_MASK), src, len); in copy_to_page()
1671 void *src, unsigned long len) in arch_uprobe_copy_ixol() argument
1674 copy_to_page(page, vaddr, src, len); in arch_uprobe_copy_ixol()
/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.c243 int src, dest = 1; in pidlist_uniq() local
252 for (src = 1; src < length; src++) { in pidlist_uniq()
254 while (list[src] == list[src-1]) { in pidlist_uniq()
255 src++; in pidlist_uniq()
256 if (src == length) in pidlist_uniq()
260 list[dest] = list[src]; in pidlist_uniq()
/kernel/debug/kdb/
DMakefile23 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
Dkdb_io.c555 int vkdb_printf(enum kdb_msgsrc src, const char *fmt, va_list ap) in vkdb_printf() argument
720 if (printk_get_level(kdb_buffer) || src == KDB_MSGSRC_PRINTK) in vkdb_printf()
/kernel/gcov/
Dgcc_4_7.c235 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
243 for (fi_idx = 0; fi_idx < src->n_functions; fi_idx++) { in gcov_info_add()
245 sci_ptr = src->functions[fi_idx]->ctrs; in gcov_info_add()
248 if (!counter_active(src, ct_idx)) in gcov_info_add()
Dclang.c284 void gcov_info_add(struct gcov_info *dst, struct gcov_info *src) in gcov_info_add() argument
287 struct gcov_fn_info *sfn_ptr = list_first_entry_or_null(&src->functions, in gcov_info_add()
/kernel/power/
Dswap.c370 void *src; in write_page() local
377 src = (void *)__get_free_page(GFP_NOIO | __GFP_NOWARN | in write_page()
379 if (src) { in write_page()
380 copy_page(src, buf); in write_page()
385 src = (void *)__get_free_page(GFP_NOIO | in write_page()
388 if (src) { in write_page()
389 copy_page(src, buf); in write_page()
393 src = buf; in write_page()
397 src = buf; in write_page()
399 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()
2143 struct memory_bitmap *src) in duplicate_memory_bitmap() argument
2147 memory_bm_position_reset(src); in duplicate_memory_bitmap()
2148 pfn = memory_bm_next_pfn(src); in duplicate_memory_bitmap()
2151 pfn = memory_bm_next_pfn(src); in duplicate_memory_bitmap()
/kernel/trace/
DMakefile31 CFLAGS_trace_benchmark.o := -I$(src)
32 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.c137 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument
139 void __user *vaddr = (void __force __user *)src; in probe_mem_read()
145 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument
147 return probe_mem_read(dest, src, size); in probe_mem_read_user()
161 void __user *src = (void __force __user *) addr; in fetch_store_string() local
169 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
Dtrace_kprobe.c1111 probe_mem_read(void *dest, void *src, size_t size) in probe_mem_read() argument
1113 return probe_kernel_read(dest, src, size); in probe_mem_read()
1117 probe_mem_read_user(void *dest, void *src, size_t size) in probe_mem_read_user() argument
1119 const void __user *uaddr = (__force const void __user *)src; in probe_mem_read_user()
/kernel/bpf/
Dhelpers.c299 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked() argument
305 lock = src + map->spin_lock_off; in copy_map_value_locked()
310 copy_map_value(map, dst, src); in copy_map_value_locked()
Dsyscall.c232 struct bpf_map_memory *src) in bpf_map_charge_move() argument
234 *dst = *src; in bpf_map_charge_move()
237 memset(src, 0, sizeof(struct bpf_map_memory)); in bpf_map_charge_move()
473 static int bpf_obj_name_cpy(char *dst, const char *src) in bpf_obj_name_cpy() argument
475 const char *end = src + BPF_OBJ_NAME_LEN; in bpf_obj_name_cpy()
479 while (src < end && *src) { in bpf_obj_name_cpy()
480 if (!isalnum(*src) && in bpf_obj_name_cpy()
481 *src != '_' && *src != '.') in bpf_obj_name_cpy()
483 *dst++ = *src++; in bpf_obj_name_cpy()
487 if (src == end) in bpf_obj_name_cpy()
Dverifier.c540 const struct bpf_func_state *src) \
542 if (!src->FIELD) \
544 if (WARN_ON_ONCE(dst->COUNT < src->COUNT)) { \
549 memcpy(dst->FIELD, src->FIELD, \
550 sizeof(*src->FIELD) * (src->COUNT / SIZE)); \
656 struct bpf_func_state *src) in transfer_reference_state() argument
658 int err = realloc_reference_state(dst, src->acquired_refs, false); in transfer_reference_state()
661 err = copy_reference_state(dst, src); in transfer_reference_state()
701 const struct bpf_func_state *src) in copy_func_state() argument
705 err = realloc_func_state(dst, src->allocated_stack, src->acquired_refs, in copy_func_state()
[all …]
Dbtf.c543 const char *src = &btf->strings[offset]; in __btf_name_valid() local
546 if (!__btf_name_char_ok(*src, true, dot_ok)) in __btf_name_valid()
550 src_limit = src + KSYM_NAME_LEN; in __btf_name_valid()
551 src++; in __btf_name_valid()
552 while (*src && src < src_limit) { in __btf_name_valid()
553 if (!__btf_name_char_ok(*src, false, dot_ok)) in __btf_name_valid()
555 src++; in __btf_name_valid()
558 return !*src; in __btf_name_valid()
Dcgroup.c1204 static int copy_sysctl_value(char *dst, size_t dst_len, char *src, in copy_sysctl_value() argument
1213 if (!src || !src_len) { in copy_sysctl_value()
1218 memcpy(dst, src, min(dst_len, src_len)); in copy_sysctl_value()
/kernel/
Dptrace.c593 int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len) in ptrace_readdata() argument
602 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata()
612 src += retval; in ptrace_readdata()
619 int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len) in ptrace_writedata() argument
628 if (copy_from_user(buf, src, this_len)) in ptrace_writedata()
638 src += retval; in ptrace_writedata()
Dmodule.c2658 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() argument
2663 if (src->st_shndx == SHN_UNDEF in is_core_symbol()
2664 || src->st_shndx >= shnum in is_core_symbol()
2665 || !src->st_name) in is_core_symbol()
2669 if (src->st_shndx == pcpundx) in is_core_symbol()
2673 sec = sechdrs + src->st_shndx; in is_core_symbol()
2695 const Elf_Sym *src; in layout_symtab() local
2704 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
2705 nsrc = symsect->sh_size / sizeof(*src); in layout_symtab()
2710 is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
[all …]
Dcpu.c2319 void init_cpu_present(const struct cpumask *src) in init_cpu_present() argument
2321 cpumask_copy(&__cpu_present_mask, src); in init_cpu_present()
2324 void init_cpu_possible(const struct cpumask *src) in init_cpu_possible() argument
2326 cpumask_copy(&__cpu_possible_mask, src); in init_cpu_possible()
2329 void init_cpu_online(const struct cpumask *src) in init_cpu_online() argument
2331 cpumask_copy(&__cpu_online_mask, src); in init_cpu_online()
Dkexec_file.c917 void *src, *dst; in kexec_purgatory_setup_sechdrs() local
939 src = (void *)pi->ehdr + sechdrs[i].sh_offset; in kexec_purgatory_setup_sechdrs()
941 memcpy(dst, src, sechdrs[i].sh_size); in kexec_purgatory_setup_sechdrs()
/kernel/time/
Dclocksource.c1139 struct clocksource *src; in available_clocksource_show() local
1143 list_for_each_entry(src, &clocksource_list, list) { in available_clocksource_show()
1149 (src->flags & CLOCK_SOURCE_VALID_FOR_HRES)) in available_clocksource_show()
1152 "%s ", src->name); in available_clocksource_show()
/kernel/locking/
Dlockdep.c214 static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) in lock_time_add() argument
216 if (!src->nr) in lock_time_add()
219 if (src->max > dst->max) in lock_time_add()
220 dst->max = src->max; in lock_time_add()
222 if (src->min < dst->min || !dst->nr) in lock_time_add()
223 dst->min = src->min; in lock_time_add()
225 dst->total += src->total; in lock_time_add()
226 dst->nr += src->nr; in lock_time_add()
1562 print_circular_lock_scenario(struct held_lock *src, in print_circular_lock_scenario() argument
1566 struct lock_class *source = hlock_class(src); in print_circular_lock_scenario()
[all …]

12