Home
last modified time | relevance | path

Searched refs:oldmm (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/include/linux/
Dkhugepaged.h26 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
28 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
51 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
Dksm.h25 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
27 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
69 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
Duprobes.h131 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm);
186 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
/linux-4.4.14/kernel/
Dfork.c397 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mmap() argument
405 down_write(&oldmm->mmap_sem); in dup_mmap()
406 flush_cache_dup_mm(oldmm); in dup_mmap()
407 uprobe_dup_mmap(oldmm, mm); in dup_mmap()
414 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap()
416 mm->total_vm = oldmm->total_vm; in dup_mmap()
417 mm->shared_vm = oldmm->shared_vm; in dup_mmap()
418 mm->exec_vm = oldmm->exec_vm; in dup_mmap()
419 mm->stack_vm = oldmm->stack_vm; in dup_mmap()
424 retval = ksm_fork(mm, oldmm); in dup_mmap()
[all …]
/linux-4.4.14/drivers/oprofile/
Dbuffer_sync.c494 struct mm_struct *oldmm; in sync_buffer() local
535 oldmm = mm; in sync_buffer()
536 release_mm(oldmm); in sync_buffer()
538 if (mm != oldmm) in sync_buffer()
/linux-4.4.14/arch/x86/include/asm/
Dmmu_context.h224 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
227 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap()
Dparavirt.h309 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
312 PVOP_VCALL2(pv_mmu_ops.dup_mmap, oldmm, mm); in paravirt_arch_dup_mmap()
988 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, in paravirt_arch_dup_mmap() argument
Dparavirt_types.h244 void (*dup_mmap)(struct mm_struct *oldmm,
/linux-4.4.14/include/asm-generic/
Dmm_hooks.h9 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-4.4.14/arch/um/include/asm/
Dmmu_context.h16 static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
/linux-4.4.14/arch/unicore32/include/asm/
Dmmu_context.h84 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-4.4.14/arch/powerpc/include/asm/
Dmmu_context.h129 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-4.4.14/arch/s390/include/asm/
Dmmu_context.h135 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-4.4.14/kernel/sched/
Dcore.c2669 struct mm_struct *mm, *oldmm; in context_switch() local
2674 oldmm = prev->active_mm; in context_switch()
2683 next->active_mm = oldmm; in context_switch()
2684 atomic_inc(&oldmm->mm_count); in context_switch()
2685 enter_lazy_tlb(oldmm, next); in context_switch()
2687 switch_mm(oldmm, mm, next); in context_switch()
2691 rq->prev_mm = oldmm; in context_switch()
/linux-4.4.14/kernel/events/
Duprobes.c1249 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) in uprobe_dup_mmap() argument
1253 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { in uprobe_dup_mmap()
/linux-4.4.14/arch/x86/xen/
Dmmu.c993 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument