aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/filemon
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-01-27 21:17:43 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-01-27 21:17:43 +0000
commit2b198fe92f4aebe14640c7c1256bb222d5fdbb2d (patch)
tree6a6818f66a7c56f75c405b466ba2d28351b79bff /sys/dev/filemon
parent64c368a48832917430d2b38c051c99e2e83f102c (diff)
Notes
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r--sys/dev/filemon/filemon.c16
-rw-r--r--sys/dev/filemon/filemon_wrapper.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c
index 90cf586e4515..909e0cfc2c0a 100644
--- a/sys/dev/filemon/filemon.c
+++ b/sys/dev/filemon/filemon.c
@@ -105,6 +105,22 @@ static struct cdev *filemon_dev;
#include "filemon_wrapper.c"
static void
+filemon_comment(struct filemon *filemon)
+{
+ int len;
+ struct timeval now;
+
+ getmicrotime(&now);
+
+ len = snprintf(filemon->msgbufr, sizeof(filemon->msgbufr),
+ "# filemon version %d\n# Target pid %d\n# Start %ju.%06ju\nV %d\n",
+ FILEMON_VERSION, curproc->p_pid, (uintmax_t)now.tv_sec,
+ (uintmax_t)now.tv_usec, FILEMON_VERSION);
+
+ filemon_output(filemon, filemon->msgbufr, len);
+}
+
+static void
filemon_dtr(void *data)
{
struct filemon *filemon = data;
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c
index 7ba843dcf1ea..9beb573966bc 100644
--- a/sys/dev/filemon/filemon_wrapper.c
+++ b/sys/dev/filemon/filemon_wrapper.c
@@ -109,22 +109,6 @@ filemon_pid_check(struct proc *p)
return (NULL);
}
-static void
-filemon_comment(struct filemon *filemon)
-{
- int len;
- struct timeval now;
-
- getmicrotime(&now);
-
- len = snprintf(filemon->msgbufr, sizeof(filemon->msgbufr),
- "# filemon version %d\n# Target pid %d\n# Start %ju.%06ju\nV %d\n",
- FILEMON_VERSION, curproc->p_pid, (uintmax_t)now.tv_sec,
- (uintmax_t)now.tv_usec, FILEMON_VERSION);
-
- filemon_output(filemon, filemon->msgbufr, len);
-}
-
static int
filemon_wrapper_chdir(struct thread *td, struct chdir_args *uap)
{