Home
last modified time | relevance | path

Searched refs:vma (Results 1 – 9 of 9) sorted by relevance

/kernel/events/
Duprobes.c95 static bool valid_vma(struct vm_area_struct *vma, bool is_register) in valid_vma() argument
102 return vma->vm_file && (vma->vm_flags & flags) == VM_MAYEXEC; in valid_vma()
105 static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset) in offset_to_vaddr() argument
107 return vma->vm_start + offset - ((loff_t)vma->vm_pgoff << PAGE_SHIFT); in offset_to_vaddr()
110 static loff_t vaddr_to_offset(struct vm_area_struct *vma, unsigned long vaddr) in vaddr_to_offset() argument
112 return ((loff_t)vma->vm_pgoff << PAGE_SHIFT) + (vaddr - vma->vm_start); in vaddr_to_offset()
126 static int __replace_page(struct vm_area_struct *vma, unsigned long addr, in __replace_page() argument
129 struct mm_struct *mm = vma->vm_mm; in __replace_page()
147 page_add_new_anon_rmap(kpage, vma, addr); in __replace_page()
154 flush_cache_page(vma, addr, pte_pfn(*ptep)); in __replace_page()
[all …]
Dcore.c3625 static int perf_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in perf_mmap_fault() argument
3627 struct perf_event *event = vma->vm_file->private_data; in perf_mmap_fault()
3650 vmf->page->mapping = vma->vm_file->f_mapping; in perf_mmap_fault()
3733 static void perf_mmap_open(struct vm_area_struct *vma) in perf_mmap_open() argument
3735 struct perf_event *event = vma->vm_file->private_data; in perf_mmap_open()
3749 static void perf_mmap_close(struct vm_area_struct *vma) in perf_mmap_close() argument
3751 struct perf_event *event = vma->vm_file->private_data; in perf_mmap_close()
3828 vma->vm_mm->pinned_vm -= mmap_locked; in perf_mmap_close()
3841 static int perf_mmap(struct file *file, struct vm_area_struct *vma) in perf_mmap() argument
3861 if (!(vma->vm_flags & VM_SHARED)) in perf_mmap()
[all …]
/kernel/
Dsys.c1940 struct vm_area_struct *vma; in prctl_set_mm_exe_file() local
1942 for (vma = mm->mmap; vma; vma = vma->vm_next) in prctl_set_mm_exe_file()
1943 if (vma->vm_file && in prctl_set_mm_exe_file()
1944 path_equal(&vma->vm_file->f_path, in prctl_set_mm_exe_file()
1974 struct vm_area_struct *vma; in prctl_set_mm() local
1992 vma = find_vma(mm, addr); in prctl_set_mm()
2044 if (!vma) { in prctl_set_mm()
2113 static int prctl_update_vma_anon_name(struct vm_area_struct *vma, in prctl_update_vma_anon_name() argument
2118 struct mm_struct * mm = vma->vm_mm; in prctl_update_vma_anon_name()
2122 if (name_addr == vma_get_anon_name(vma)) { in prctl_update_vma_anon_name()
[all …]
Drelay.c33 static void relay_file_mmap_close(struct vm_area_struct *vma) in relay_file_mmap_close() argument
35 struct rchan_buf *buf = vma->vm_private_data; in relay_file_mmap_close()
36 buf->chan->cb->buf_unmapped(buf, vma->vm_file); in relay_file_mmap_close()
42 static int relay_buf_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in relay_buf_fault() argument
45 struct rchan_buf *buf = vma->vm_private_data; in relay_buf_fault()
99 static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) in relay_mmap_buf() argument
101 unsigned long length = vma->vm_end - vma->vm_start; in relay_mmap_buf()
102 struct file *filp = vma->vm_file; in relay_mmap_buf()
110 vma->vm_ops = &relay_file_mmap_ops; in relay_mmap_buf()
111 vma->vm_flags |= VM_DONTEXPAND; in relay_mmap_buf()
[all …]
Dacct.c580 struct vm_area_struct *vma; in acct_collect() local
582 vma = current->mm->mmap; in acct_collect()
583 while (vma) { in acct_collect()
584 vsize += vma->vm_end - vma->vm_start; in acct_collect()
585 vma = vma->vm_next; in acct_collect()
Dsignal.c3622 __attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma) in arch_vma_name() argument
/kernel/time/
Dposix-clock.c101 static int posix_clock_mmap(struct file *fp, struct vm_area_struct *vma) in posix_clock_mmap() argument
110 err = clk->ops.mmap(clk, vma); in posix_clock_mmap()
/kernel/sched/
Dfair.c847 struct vm_area_struct *vma; in task_numa_work() local
925 vma = find_vma(mm, start); in task_numa_work()
926 if (!vma) { in task_numa_work()
929 vma = mm->mmap; in task_numa_work()
931 for (; vma; vma = vma->vm_next) { in task_numa_work()
932 if (!vma_migratable(vma)) in task_numa_work()
936 if (vma->vm_end - vma->vm_start < HPAGE_SIZE) in task_numa_work()
940 start = max(start, vma->vm_start); in task_numa_work()
942 end = min(end, vma->vm_end); in task_numa_work()
943 pages -= change_prot_numa(vma, start, end); in task_numa_work()
[all …]
/kernel/trace/
Dtrace_output.c508 const struct vm_area_struct *vma; local
511 vma = find_vma(mm, ip);
512 if (vma) {
513 file = vma->vm_file;
514 vmstart = vma->vm_start;