aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2017-12-31 09:23:35 +0000
committerColin Percival <cperciva@FreeBSD.org>2017-12-31 09:23:35 +0000
commit82614df42c3f81147eae28c8ca58961679f604c5 (patch)
treea93e5a8d43aed9aeecbdde35094078f45ab3e561 /sys/sys
parenta21a2da5995538bf8d02f31aa77ac1ccc00f0b24 (diff)
downloadsrc-82614df42c3f81147eae28c8ca58961679f604c5.tar.gz
src-82614df42c3f81147eae28c8ca58961679f604c5.zip
Use the TSLOG framework to record entry/exit timestamps for VFS_MOUNT calls.
Notes
Notes: svn path=/head/; revision=327429
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/mount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 362c54e92306..9d499004434f 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -40,6 +40,7 @@
#ifdef _KERNEL
#include <sys/lock.h>
#include <sys/lockmgr.h>
+#include <sys/tslog.h>
#include <sys/_mutex.h>
#include <sys/_sx.h>
#endif
@@ -708,9 +709,11 @@ vfs_statfs_t __vfs_statfs;
#define VFS_MOUNT(MP) ({ \
int _rc; \
\
+ TSRAW(curthread, TS_ENTER, "VFS_MOUNT", (MP)->mnt_vfc->vfc_name);\
VFS_PROLOGUE(MP); \
_rc = (*(MP)->mnt_op->vfs_mount)(MP); \
VFS_EPILOGUE(MP); \
+ TSRAW(curthread, TS_EXIT, "VFS_MOUNT", (MP)->mnt_vfc->vfc_name);\
_rc; })
#define VFS_UNMOUNT(MP, FORCE) ({ \