aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2019-06-09 15:45:48 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2019-06-09 15:45:48 +0000
commit93ca8057c54f5408381bf851437c21158ee70efb (patch)
tree5c0a25a05716802110891ddf7488be446dcd17d8 /sys/riscv
parent6ae48dd8704f6f6b754d5edcc94045bc5c2b4615 (diff)
downloadsrc-93ca8057c54f5408381bf851437c21158ee70efb.tar.gz
src-93ca8057c54f5408381bf851437c21158ee70efb.zip
Add TSLOG events to initriscv()
Add the enter and exit events, similar to what's found in hammer_time() on amd64. We must use TSRAW as the pcpu isn't yet initialized. Reviewed by: markj Approved by: markj (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20497
Notes
Notes: svn path=/head/; revision=348837
Diffstat (limited to 'sys/riscv')
-rw-r--r--sys/riscv/riscv/machdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c
index 7a1850c7e307..1706464028c2 100644
--- a/sys/riscv/riscv/machdep.c
+++ b/sys/riscv/riscv/machdep.c
@@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
#include <sys/syscallsubr.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
+#include <sys/tslog.h>
#include <sys/ucontext.h>
#include <vm/vm.h>
@@ -816,6 +817,8 @@ initriscv(struct riscv_bootparams *rvbp)
caddr_t kmdp;
int i;
+ TSRAW(&thread0, TS_ENTER, __func__, NULL);
+
/* Set the pcpu data, this is needed by pmap_bootstrap */
pcpup = &__pcpu[0];
pcpu_init(pcpup, 0, sizeof(struct pcpu));
@@ -888,6 +891,8 @@ initriscv(struct riscv_bootparams *rvbp)
kdb_init();
early_boot = 0;
+
+ TSEXIT();
}
#undef bzero