svn commit: r364086 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Mon Aug 10 18:11:01 UTC 2020
Author: mjg
Date: Mon Aug 10 18:11:00 2020
New Revision: 364086
URL: https://svnweb.freebsd.org/changeset/base/364086
Log:
vfs: drop the hello world stat probes from the vfs provider
Interested parties can get the same information by hoooking on vop_stat.
Modified:
head/sys/kern/vfs_lookup.c
head/sys/kern/vfs_syscalls.c
Modified: head/sys/kern/vfs_lookup.c
==============================================================================
--- head/sys/kern/vfs_lookup.c Mon Aug 10 17:53:09 2020 (r364085)
+++ head/sys/kern/vfs_lookup.c Mon Aug 10 18:11:00 2020 (r364086)
@@ -70,7 +70,7 @@ __FBSDID("$FreeBSD$");
#define NAMEI_DIAGNOSTIC 1
#undef NAMEI_DIAGNOSTIC
-SDT_PROVIDER_DECLARE(vfs);
+SDT_PROVIDER_DEFINE(vfs);
SDT_PROBE_DEFINE4(vfs, namei, lookup, entry, "struct vnode *", "char *",
"unsigned long", "bool");
SDT_PROBE_DEFINE3(vfs, namei, lookup, return, "int", "struct vnode *", "bool");
Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c Mon Aug 10 17:53:09 2020 (r364085)
+++ head/sys/kern/vfs_syscalls.c Mon Aug 10 18:11:00 2020 (r364086)
@@ -91,10 +91,6 @@ __FBSDID("$FreeBSD$");
MALLOC_DEFINE(M_FADVISE, "fadvise", "posix_fadvise(2) information");
-SDT_PROVIDER_DEFINE(vfs);
-SDT_PROBE_DEFINE2(vfs, , stat, mode, "char *", "int");
-SDT_PROBE_DEFINE2(vfs, , stat, reg, "char *", "int");
-
static int kern_chflagsat(struct thread *td, int fd, const char *path,
enum uio_seg pathseg, u_long flags, int atflag);
static int setfflags(struct thread *td, struct vnode *, u_long);
@@ -2383,9 +2379,6 @@ kern_statat(struct thread *td, int flag, int fd, const
return (error);
error = VOP_STAT(nd.ni_vp, sbp, td->td_ucred, NOCRED, td);
if (error == 0) {
- SDT_PROBE2(vfs, , stat, mode, path, sbp->st_mode);
- if (S_ISREG(sbp->st_mode))
- SDT_PROBE2(vfs, , stat, reg, path, pathseg);
if (__predict_false(hook != NULL))
hook(nd.ni_vp, sbp);
}
More information about the svn-src-all
mailing list