git: ccadcb8f3343 - main - arm64: Instrument initarm with TSLOG
Colin Percival
cperciva at FreeBSD.org
Thu Jun 24 05:27:27 UTC 2021
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=ccadcb8f3343562f22a426e845dba640319d4355
commit ccadcb8f3343562f22a426e845dba640319d4355
Author: Colin Percival <cperciva at FreeBSD.org>
AuthorDate: 2021-06-24 05:17:55 +0000
Commit: Colin Percival <cperciva at 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
More information about the dev-commits-src-all
mailing list