/kernel/ |
H A D | tsacct.c | 24 #include <linux/mm.h> 94 struct mm_struct *mm; local 99 mm = get_task_mm(p); 100 if (mm) { 102 stats->hiwater_rss = get_mm_hiwater_rss(mm) * PAGE_SIZE / KB; 103 stats->hiwater_vm = get_mm_hiwater_vm(mm) * PAGE_SIZE / KB; 104 mmput(mm); 126 if (likely(tsk->mm)) { 142 tsk->acct_rss_mem1 += delta * get_mm_rss(tsk->mm); 143 tsk->acct_vm_mem1 += delta * tsk->mm [all...] |
H A D | exit.c | 7 #include <linux/mm.h> 321 * A task is exiting. If it owned this mm, find a new owner for the mm. 323 void mm_update_next_owner(struct mm_struct *mm) argument 332 if (mm->owner != p) 336 * candidates. Do not leave the mm pointing to a possibly 339 if (atomic_read(&mm->mm_users) <= 1) { 340 mm->owner = NULL; 349 if (c->mm == mm) 413 struct mm_struct *mm = tsk->mm; local [all...] |
H A D | ptrace.c | 14 #include <linux/mm.h> 251 if (task->mm) 252 dumpable = get_dumpable(task->mm); 942 struct mm_struct *mm = get_task_mm(child); local 946 if (!mm) 951 tmp = mm->context.exec_fdpic_loadmap; 954 tmp = mm->context.interp_fdpic_loadmap; 959 mmput(mm);
|
H A D | fork.c | 11 * management can be a bitch. See 'mm/memory.c': 'copy_page_range()' 31 #include <linux/mm.h> 201 /* SLAB cache for mm_struct structures (tsk->mm) */ 383 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) argument 393 uprobe_dup_mmap(oldmm, mm); 397 down_write_nested(&mm->mmap_sem, SINGLE_DEPTH_NESTING); 399 mm->total_vm = oldmm->total_vm; 400 mm->shared_vm = oldmm->shared_vm; 401 mm->exec_vm = oldmm->exec_vm; 402 mm 515 mm_alloc_pgd(struct mm_struct *mm) argument 523 mm_free_pgd(struct mm_struct *mm) argument 552 mm_init_aio(struct mm_struct *mm) argument 560 mm_init_owner(struct mm_struct *mm, struct task_struct *p) argument 567 mm_init(struct mm_struct *mm, struct task_struct *p) argument 615 check_mm(struct mm_struct *mm) argument 636 struct mm_struct *mm; local 651 __mmdrop(struct mm_struct *mm) argument 665 mmput(struct mm_struct *mm) argument 688 set_mm_exe_file(struct mm_struct *mm, struct file *new_exe_file) argument 697 get_mm_exe_file(struct mm_struct *mm) argument 728 struct mm_struct *mm; local 745 struct mm_struct *mm; local 809 mm_release(struct task_struct *tsk, struct mm_struct *mm) argument 867 struct mm_struct *mm, *oldmm = current->mm; local 904 struct mm_struct *mm, *oldmm; local [all...] |
H A D | futex.c | 263 atomic_inc(&key->private.mm->mm_count); 348 * mm, therefore the only purpose of calling get_futex_key_refs 374 mmdrop(key->private.mm); 392 * offset_within_page). For private mappings, it's (uaddr, current->mm). 401 struct mm_struct *mm = current->mm; local 418 * As the mm cannot disappear under us and the 'key' only needs 424 key->private.mm = mm; 524 key->both.offset |= FUT_OFF_MMSHARED; /* ref taken on mm */ 560 struct mm_struct *mm = current->mm; local [all...] |
H A D | audit.c | 49 #include <linux/mm.h> 1854 struct mm_struct *mm = tsk->mm; local 1890 if (mm) { 1891 down_read(&mm->mmap_sem); 1892 if (mm->exe_file) 1893 audit_log_d_path(ab, " exe=", &mm->exe_file->f_path); 1894 up_read(&mm->mmap_sem);
|
H A D | auditsc.c | 52 #include <linux/mm.h> 1042 * We just created this mm, if we can't find the strings 1062 * copied them here, and the mm hasn't been exposed to user- 1166 p = (const char __user *)current->mm->arg_start; 2426 struct mm_struct *mm = current->mm; local 2441 if (mm) { 2442 down_read(&mm->mmap_sem); 2443 if (mm->exe_file) 2444 audit_log_d_path(ab, " exe=", &mm [all...] |
H A D | cpuset.c | 38 #include <linux/mm.h> 969 static void cpuset_migrate_mm(struct mm_struct *mm, const nodemask_t *from, argument 976 do_migrate_pages(mm, from, to, MPOL_MF_MOVE_ALL); 1062 * It's ok if we rebind the same mm twice; mpol_rebind_mm() 1063 * is idempotent. Also migrate pages in each mm to new nodes. 1067 struct mm_struct *mm; local 1072 mm = get_task_mm(task); 1073 if (!mm) 1078 mpol_rebind_mm(mm, &cs->mems_allowed); 1080 cpuset_migrate_mm(mm, 1480 struct mm_struct *mm; local [all...] |
H A D | sys.c | 8 #include <linux/mm.h> 44 #include <linux/mm.h> 1594 struct mm_struct *mm = get_task_mm(p); local 1596 if (mm) { 1597 setmax_mm_hiwater_rss(&maxrss, mm); 1598 mmput(mm); 1640 static int prctl_set_mm_exe_file_locked(struct mm_struct *mm, unsigned int fd) argument 1646 VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_sem), mm); 1655 * Because the original mm 1707 struct mm_struct *mm = current->mm; local 1799 struct mm_struct *mm = current->mm; local 1883 struct mm_struct *mm = current->mm; local 2037 struct mm_struct * mm = vma->vm_mm; local 2136 struct mm_struct *mm = current->mm; local [all...] |
/kernel/trace/ |
H A D | trace_output.c | 301 int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, argument 311 if (mm) { 314 down_read(&mm->mmap_sem); 315 vma = find_vma(mm, ip); 326 up_read(&mm->mmap_sem); 337 struct mm_struct *mm = NULL; local 350 mm = get_task_mm(task); 371 ret = seq_print_user_ip(s, mm, ip, sym_flags); 375 if (mm) 376 mmput(mm); [all...] |
H A D | trace_uprobe.c | 884 struct mm_struct *mm); 1004 __uprobe_perf_filter(struct trace_uprobe_filter *filter, struct mm_struct *mm) argument 1012 if (event->hw.tp_target->mm == mm) 1022 return __uprobe_perf_filter(&tu->filter, event->hw.tp_target->mm); 1056 * uprobe_apply(). current->mm must be probed and we can rely 1082 enum uprobe_filter_ctx ctx, struct mm_struct *mm) 1089 ret = __uprobe_perf_filter(&tu->filter, mm); 1148 if (!uprobe_perf_filter(&tu->consumer, 0, current->mm)) 1081 uprobe_perf_filter(struct uprobe_consumer *uc, enum uprobe_filter_ctx ctx, struct mm_struct *mm) argument
|
/kernel/events/ |
H A D | uprobes.c | 36 #include "../../mm/internal.h" /* munlock_vma_page */ 151 * based on replace_page in mm/ksm.c 163 struct mm_struct *mm = vma->vm_mm; local 179 mmu_notifier_invalidate_range_start(mm, mmun_start, mmun_end); 181 ptep = page_check_address(page, mm, addr, &ptl, 0); 191 dec_mm_counter(mm, MM_FILEPAGES); 192 inc_mm_counter(mm, MM_ANONPAGES); 197 set_pte_at_notify(mm, addr, ptep, mk_pte(kpage, vma->vm_page_prot)); 211 mmu_notifier_invalidate_range_end(mm, mmun_start, mmun_end); 293 * @mm 300 uprobe_write_opcode(struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_t opcode) argument 349 set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) argument 364 set_orig_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) argument 585 prepare_uprobe(struct uprobe *uprobe, struct file *file, struct mm_struct *mm, unsigned long vaddr) argument 623 consumer_filter(struct uprobe_consumer *uc, enum uprobe_filter_ctx ctx, struct mm_struct *mm) argument 629 filter_chain(struct uprobe *uprobe, enum uprobe_filter_ctx ctx, struct mm_struct *mm) argument 647 install_breakpoint(struct uprobe *uprobe, struct mm_struct *mm, struct vm_area_struct *vma, unsigned long vaddr) argument 675 remove_breakpoint(struct uprobe *uprobe, struct mm_struct *mm, unsigned long vaddr) argument 705 struct mm_struct *mm; member in struct:map_info 802 struct mm_struct *mm = info->mm; local 966 unapply_uprobe(struct uprobe *uprobe, struct mm_struct *mm) argument 1133 xol_add_vma(struct mm_struct *mm, struct xol_area *area) argument 1166 struct mm_struct *mm = current->mm; local 1209 struct mm_struct *mm = current->mm; local 1223 uprobe_clear_state(struct mm_struct *mm) argument 1472 struct mm_struct *mm = current->mm; local 1649 mmf_recalc_uprobes(struct mm_struct *mm) argument 1669 is_trap_at_addr(struct mm_struct *mm, unsigned long vaddr) argument 1696 struct mm_struct *mm = current->mm; local [all...] |
/kernel/sched/ |
H A D | core.c | 29 #include <linux/mm.h> 1392 * kernel threads (both mm NULL), since they never 1395 if (p->mm && printk_ratelimit()) { 1842 if (p->mm && atomic_read(&p->mm->mm_users) == 1) { 1843 p->mm->numa_next_scan = jiffies + msecs_to_jiffies(sysctl_numa_balancing_scan_delay); 1844 p->mm->numa_scan_seq = 0; 1853 p->numa_scan_seq = p->mm ? p->mm->numa_scan_seq : 0; 2231 * Note that we may have delayed dropping an mm i 2239 struct mm_struct *mm = rq->prev_mm; variable in typeref:struct:mm_struct 2264 mmdrop(mm); variable 2334 struct mm_struct *mm, *oldmm; local 4882 struct mm_struct *mm = current->active_mm; local [all...] |
H A D | fair.c | 823 rss = get_mm_rss(p->mm); 1516 p->mm->numa_next_scan = jiffies + 1592 seq = ACCESS_ONCE(p->mm->numa_scan_seq); 1754 if (tsk->mm == current->mm) 1840 /* for example, ksmd faulting in a user's mm */ 1841 if (!p->mm) 1909 ACCESS_ONCE(p->mm->numa_scan_seq)++; 1910 p->mm->numa_scan_offset = 0; 1921 struct mm_struct *mm local [all...] |