The branch main has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ccadcb8f3343562f22a426e845dba640319d4355
commit ccadcb8f3343562f22a426e845dba640319d4355
Author:     Colin Percival <cperc...@freebsd.org>
AuthorDate: 2021-06-24 05:17:55 +0000
Commit:     Colin Percival <cperc...@freebsd.org>
CommitDate: 2021-06-24 05:17:55 +0000

    arm64: Instrument initarm with TSLOG
    
    The "function entry" needs to be recorded with TSRAW() rather than
    TSENTER() since curthread is not yet defined.  (The same approach
    is taken in amd64's hammer_time.)
---
 sys/arm64/arm64/machdep.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index 439656f57f6d..25f0a108311e 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -1253,6 +1253,8 @@ initarm(struct arm64_bootparams *abp)
        caddr_t kmdp;
        bool valid;
 
+       TSRAW(&thread0, TS_ENTER, __func__, NULL);
+
        boot_el = abp->boot_el;
 
        /* Parse loader or FDT boot parametes. Determine last used address. */
@@ -1383,6 +1385,8 @@ initarm(struct arm64_bootparams *abp)
        }
 
        early_boot = 0;
+
+       TSEXIT();
 }
 
 void
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to