aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2021-06-24 05:17:55 +0000
committerColin Percival <cperciva@FreeBSD.org>2021-06-24 05:17:55 +0000
commitccadcb8f3343562f22a426e845dba640319d4355 (patch)
tree14648d3a0c7b8ee3fd25b51f9a9ddd96e55ea6b0
parent0acc529dc35f88836dbcbe75940954c75595b058 (diff)
downloadsrc-ccadcb8f3343562f22a426e845dba640319d4355.tar.gz
src-ccadcb8f3343562f22a426e845dba640319d4355.zip
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.)
-rw-r--r--sys/arm64/arm64/machdep.c4
1 files changed, 4 insertions, 0 deletions
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