File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
422
422
goto bad_area ;
423
423
}
424
424
425
- fault = handle_mm_fault (vma , address , flags , NULL );
425
+ fault = handle_mm_fault (vma , address , flags , regs );
426
426
427
427
if (fault_signal_pending (fault , regs ))
428
428
goto exit_exception ;
@@ -438,15 +438,6 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
438
438
}
439
439
440
440
if (flags & FAULT_FLAG_ALLOW_RETRY ) {
441
- if (fault & VM_FAULT_MAJOR ) {
442
- current -> maj_flt ++ ;
443
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MAJ ,
444
- 1 , regs , address );
445
- } else {
446
- current -> min_flt ++ ;
447
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MIN ,
448
- 1 , regs , address );
449
- }
450
441
if (fault & VM_FAULT_RETRY ) {
451
442
flags |= FAULT_FLAG_TRIED ;
452
443
You can’t perform that action at this time.
0 commit comments