Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2021 05:27:26 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ccadcb8f3343 - main - arm64: Instrument initarm with TSLOG
Message-ID:  <202106240527.15O5RQtO000832@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=ccadcb8f3343562f22a426e845dba640319d4355

commit ccadcb8f3343562f22a426e845dba640319d4355
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2021-06-24 05:17:55 +0000
Commit:     Colin Percival <cperciva@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106240527.15O5RQtO000832>