git: 9227ecea6f4d - main - amd64: print limited EFIRT fault messages on first fault, not second
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Apr 2025 23:55:50 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=9227ecea6f4d4fc8a0ac9830a63eac6d79b5ce57
commit 9227ecea6f4d4fc8a0ac9830a63eac6d79b5ce57
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-04-09 23:54:23 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-04-09 23:54:23 +0000
amd64: print limited EFIRT fault messages on first fault, not second
Noted by: olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/amd64/amd64/trap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index a400b8a2c022..09ac0a67dbef 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -436,7 +436,7 @@ trap(struct trapframe *frame)
curpcb->pcb_onfault != NULL && type != T_PAGEFLT) {
u_long cnt = atomic_fetchadd_long(&cnt_efirt_faults, 1);
- if ((print_efirt_faults == 1 && cnt == 1) ||
+ if ((print_efirt_faults == 1 && cnt == 0) ||
print_efirt_faults == 2) {
trap_diag(frame, 0);
printf("EFI RT fault %s\n",
@@ -871,7 +871,7 @@ after_vmfault:
if ((td->td_pflags & TDP_EFIRT) != 0) {
u_long cnt = atomic_fetchadd_long(&cnt_efirt_faults, 1);
- if ((print_efirt_faults == 1 && cnt == 1) ||
+ if ((print_efirt_faults == 1 && cnt == 0) ||
print_efirt_faults == 2) {
trap_diag(frame, eva);
printf("EFI RT page fault\n");