fault.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) fault.c (33692f27597fcab536d7cbbcc8f52905133e4aa7)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995 - 2000 by Ralf Baechle
7 */
8#include <linux/context_tracking.h>

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

153
154 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current))
155 return;
156
157 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address);
158 if (unlikely(fault & VM_FAULT_ERROR)) {
159 if (fault & VM_FAULT_OOM)
160 goto out_of_memory;
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995 - 2000 by Ralf Baechle
7 */
8#include <linux/context_tracking.h>

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

153
154 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current))
155 return;
156
157 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address);
158 if (unlikely(fault & VM_FAULT_ERROR)) {
159 if (fault & VM_FAULT_OOM)
160 goto out_of_memory;
161 else if (fault & VM_FAULT_SIGSEGV)
162 goto bad_area;
161 else if (fault & VM_FAULT_SIGBUS)
162 goto do_sigbus;
163 BUG();
164 }
165 if (flags & FAULT_FLAG_ALLOW_RETRY) {
166 if (fault & VM_FAULT_MAJOR) {
167 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MAJ, 1,
168 regs, address);

--- 161 unchanged lines hidden ---
163 else if (fault & VM_FAULT_SIGBUS)
164 goto do_sigbus;
165 BUG();
166 }
167 if (flags & FAULT_FLAG_ALLOW_RETRY) {
168 if (fault & VM_FAULT_MAJOR) {
169 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MAJ, 1,
170 regs, address);

--- 161 unchanged lines hidden ---