--- zzzz-none-000/linux-4.4.271/arch/mips/mm/fault.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/arch/mips/mm/fault.c 2023-01-11 09:25:41.000000000 +0000 @@ -29,6 +29,10 @@ #include /* For VMALLOC_END */ #include +#if defined(CONFIG_AVM_SIMPLE_PROFILING) +#include +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ + int show_unhandled_signals = 1; /* @@ -153,7 +157,13 @@ * make sure we exit gracefully rather than endlessly redo * the fault. */ +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_hw_irq_begin, (unsigned int)regs->cp0_epc, AVM_PROFILE_PAGE_FAULT_ID); +#endif/*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ fault = handle_mm_fault(mm, vma, address, flags); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_hw_irq_end, regs->cp0_epc, AVM_PROFILE_PAGE_FAULT_ID); +#endif/*--- #endif ---*//*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) return;