Searched refs:filemon (Results 1 - 17 of 17) sorted by relevance

/freebsd-10.0-release/sys/dev/filemon/
H A Dfilemon_wrapper.c59 filemon_output(struct filemon *filemon, char *msg, size_t len) argument
64 if (filemon->fp == NULL)
79 fo_write(filemon->fp, &auio, curthread->td_ucred, 0, curthread);
82 static struct filemon *
85 struct filemon *filemon; local
88 TAILQ_FOREACH(filemon, &filemons_inuse, link) {
89 if (p->p_pid == filemon->pid)
90 return (filemon);
98 filemon_comment(struct filemon *filemon) argument
132 struct filemon *filemon; local
169 struct filemon *filemon; local
207 struct filemon *filemon; local
242 struct filemon *filemon; local
275 struct filemon *filemon; local
324 struct filemon *filemon; local
362 struct filemon *filemon; local
400 struct filemon *filemon; local
439 struct filemon *filemon; local
478 struct filemon *filemon; local
516 struct filemon *filemon; local
551 struct filemon *filemon; local
596 struct filemon *filemon; local
631 struct filemon *filemon; local
[all...]
H A Dfilemon_lock.c31 filemon_filemon_lock(struct filemon *filemon) argument
33 mtx_lock(&filemon->mtx);
35 while (filemon->locker != NULL && filemon->locker != curthread)
36 cv_wait(&filemon->cv, &filemon->mtx);
38 filemon->locker = curthread;
40 mtx_unlock(&filemon->mtx);
44 filemon_filemon_unlock(struct filemon *filemo argument
[all...]
H A Dfilemon.c57 #include "filemon.h"
80 .d_name = "filemon",
84 MALLOC_DEFINE(M_FILEMON, "filemon", "File access monitor");
86 struct filemon { struct
87 TAILQ_ENTRY(filemon) link; /* Link into the in-use list. */
88 struct mtx mtx; /* Lock mutex for this filemon. */
90 filemon. */
93 filemon. */
100 static TAILQ_HEAD(, filemon) filemons_inuse = TAILQ_HEAD_INITIALIZER(filemons_inuse);
101 static TAILQ_HEAD(, filemon) filemons_fre
116 struct filemon *filemon = data; local
146 struct filemon *filemon; local
189 struct filemon *filemon; local
250 struct filemon *filemon; local
[all...]
/freebsd-10.0-release/sys/modules/filemon/
H A DMakefile3 .PATH: ${.CURDIR}/../../dev/filemon
5 KMOD= filemon
/freebsd-10.0-release/tools/regression/filemon/
H A DMakefile38 kldstat | grep filemon
45 @echo "filemon(4) tests passed."
62 tail -1 $$F | grep -q '# Bye bye' || echo "$$F missing filemon bye-bye" ; \
67 @echo "Without filemon(4) active:"
69 @echo "With filemon(4) active:"
71 ls -l typescript-timed-forkb.filemon
75 @tail -1 typescript.test32.filemon | grep -q '# Bye bye' || (echo '32-bit comapt filemon Missing "bye-bye"' ; exit 1)
76 @egrep -q '^X [0-9]+ 0$$' typescript.test32.filemon || (echo "32-bit binary exit ERROR" ; exit 1)
77 @printf "filemon(
[all...]
H A Dfilemontest.c33 #include <dev/filemon/filemon.h>
42 * This simple test of filemon expects a test script called
56 if ((fm_fd = open("/dev/filemon", O_RDWR)) == -1)
57 err(1, "open(\"/dev/filemon\", O_RDWR)");
62 err(1, "Cannot set filemon log file descriptor");
72 err(1, "Cannot set filemon PID to %d", child);
/freebsd-10.0-release/contrib/bmake/mk/
H A Dmeta.sys.mk18 # for maximum benefit, requires filemon(4) driver.
34 .if ${UPDATE_DEPENDFILE:Uyes:tl} == "no" && !exists(/dev/filemon)
133 # then filemon had better be present
134 .if ${UPDATE_DEPENDFILE:Uyes:tl} != "no" && !exists(/dev/filemon)
135 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded.
H A Dmeta.autodep.mk261 CLEANFILES += *.meta filemon.* *.db
/freebsd-10.0-release/contrib/bmake/
H A Dmake-bootstrap.sh.in77 */filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";;
H A DMakefile80 # meta mode can be useful even without filemon
81 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
82 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
H A Dmeta.c51 # include <filemon.h>
105 * We can still use meta mode without filemon, but
110 # define _PATH_FILEMON "/dev/filemon"
114 * Open the filemon device.
142 pbm->mon_fd = mkTempFile("filemon.XXXXXX", NULL);
144 err(1, "Could not set filemon file descriptor!");
172 fprintf(mfp, "-- filemon acquired metadata --\n");
554 /* this allows makefiles to test if we have filemon support */
643 /* compat mode we open the filemon dev once per command */
675 err(1, "Could not set filemon pi
[all...]
H A Dconfigure1301 --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode
2292 # Check whether --with-filemon was given.
2295 /no|*/filemon.h) filemon_h="${withval}";;
2296 */filemon*) filemon_h="${withval}/filemon.h";;
2297 *) as_fn_error "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2302 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "
[all...]
/freebsd-10.0-release/usr.bin/bmake/
H A DMakefile96 # meta mode can be useful even without filemon
97 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
98 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd-10.0-release/usr.bin/script/
H A Dscript.c48 #include <dev/filemon/filemon.h>
158 asprintf(&fmfname, "%s.filemon", fname);
160 err(1, "%s.filemon", fname);
161 if ((fm_fd = open("/dev/filemon", O_RDWR)) == -1)
162 err(1, "open(\"/dev/filemon\", O_RDWR)");
167 err(1, "Cannot set filemon log file descriptor");
229 err(1, "Cannot set filemon PID");
/freebsd-10.0-release/include/
H A DMakefile45 dev/acpica dev/agp dev/an dev/bktr dev/ciss dev/filemon dev/firewire \
/freebsd-10.0-release/share/man/man4/
H A DMakefile140 filemon.4 \
/freebsd-10.0-release/sys/modules/
H A DMakefile375 _filemon= filemon

Completed in 109 milliseconds