core.c (c48b07226bd41f4053aa2024c5e347183c04deb5) core.c (03911132aafd6727e59408e497c049402a5a11fa)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Performance events core code:
4 *
5 * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de>
6 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar
7 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra
8 * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>

--- 14 unchanged lines hidden (view full) ---

23#include <linux/percpu.h>
24#include <linux/ptrace.h>
25#include <linux/reboot.h>
26#include <linux/vmstat.h>
27#include <linux/device.h>
28#include <linux/export.h>
29#include <linux/vmalloc.h>
30#include <linux/hardirq.h>
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Performance events core code:
4 *
5 * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de>
6 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar
7 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra
8 * Copyright © 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>

--- 14 unchanged lines hidden (view full) ---

23#include <linux/percpu.h>
24#include <linux/ptrace.h>
25#include <linux/reboot.h>
26#include <linux/vmstat.h>
27#include <linux/device.h>
28#include <linux/export.h>
29#include <linux/vmalloc.h>
30#include <linux/hardirq.h>
31#include <linux/hugetlb.h>
31#include <linux/rculist.h>
32#include <linux/uaccess.h>
33#include <linux/syscalls.h>
34#include <linux/anon_inodes.h>
35#include <linux/kernel_stat.h>
36#include <linux/cgroup.h>
37#include <linux/perf_event.h>
38#include <linux/trace_events.h>

--- 7929 unchanged lines hidden (view full) ---

7968 flags = MAP_PRIVATE;
7969
7970 if (vma->vm_flags & VM_DENYWRITE)
7971 flags |= MAP_DENYWRITE;
7972 if (vma->vm_flags & VM_MAYEXEC)
7973 flags |= MAP_EXECUTABLE;
7974 if (vma->vm_flags & VM_LOCKED)
7975 flags |= MAP_LOCKED;
32#include <linux/rculist.h>
33#include <linux/uaccess.h>
34#include <linux/syscalls.h>
35#include <linux/anon_inodes.h>
36#include <linux/kernel_stat.h>
37#include <linux/cgroup.h>
38#include <linux/perf_event.h>
39#include <linux/trace_events.h>

--- 7929 unchanged lines hidden (view full) ---

7969 flags = MAP_PRIVATE;
7970
7971 if (vma->vm_flags & VM_DENYWRITE)
7972 flags |= MAP_DENYWRITE;
7973 if (vma->vm_flags & VM_MAYEXEC)
7974 flags |= MAP_EXECUTABLE;
7975 if (vma->vm_flags & VM_LOCKED)
7976 flags |= MAP_LOCKED;
7976 if (vma->vm_flags & VM_HUGETLB)
7977 if (is_vm_hugetlb_page(vma))
7977 flags |= MAP_HUGETLB;
7978
7979 if (file) {
7980 struct inode *inode;
7981 dev_t dev;
7982
7983 buf = kmalloc(PATH_MAX, GFP_KERNEL);
7984 if (!buf) {

--- 4936 unchanged lines hidden ---
7978 flags |= MAP_HUGETLB;
7979
7980 if (file) {
7981 struct inode *inode;
7982 dev_t dev;
7983
7984 buf = kmalloc(PATH_MAX, GFP_KERNEL);
7985 if (!buf) {

--- 4936 unchanged lines hidden ---