Merge "debug: After reboot,the platform print a lot of logs Frequency [1/1]" into amlogic-4.9-dev

This commit is contained in:
Tao Zeng
2018-10-23 02:47:34 -07:00
committed by Gerrit Code Review

View File

@@ -238,8 +238,12 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
struct siginfo si;
#ifdef CONFIG_DEBUG_USER
if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) ||
((user_debug & UDBG_BUS) && (sig == SIGBUS))) {
if (
#ifdef CONFIG_AMLOGIC_USER_FAULT
unhandled_signal(tsk, sig) &&
#endif
(((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) ||
((user_debug & UDBG_BUS) && (sig == SIGBUS)))) {
#ifdef CONFIG_AMLOGIC_USER_FAULT
pr_info("%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n",
tsk->comm, sig, addr, fsr);