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
This commit is contained in:
Mitchell Horne 2019-06-09 15:45:48 +00:00
parent 6ae48dd870
commit 93ca8057c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348837

View File

@ -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