Author: mhorne
Date: Sun Jun  9 15:45:48 2019
New Revision: 348837
URL: https://svnweb.freebsd.org/changeset/base/348837

Log:
  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

Modified:
  head/sys/riscv/riscv/machdep.c

Modified: head/sys/riscv/riscv/machdep.c
==============================================================================
--- head/sys/riscv/riscv/machdep.c      Sun Jun  9 15:43:38 2019        
(r348836)
+++ head/sys/riscv/riscv/machdep.c      Sun Jun  9 15:45:48 2019        
(r348837)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to