Home
last modified time | relevance | path

Searched refs:filemon (Results 1 – 25 of 40) sorted by relevance

12

/freebsd-head/sys/dev/filemon/
HDfilemon.c82 struct filemon { struct
95 static void filemon_output(struct filemon *filemon, char *msg, size_t len); argument
97 static __inline struct filemon *
98 filemon_acquire(struct filemon *filemon) in filemon_acquire() argument
101 if (filemon != NULL) in filemon_acquire()
102 refcount_acquire(&filemon->refcnt); in filemon_acquire()
103 return (filemon); in filemon_acquire()
110 filemon_release(struct filemon *filemon) in filemon_release() argument
113 if (refcount_release(&filemon->refcnt) == 0) in filemon_release()
120 sx_assert(&filemon->lock, SA_UNLOCKED); in filemon_release()
[all …]
HDfilemon_wrapper.c42 static void filemon_output_event(struct filemon *filemon, const char *fmt, ...)
50 filemon_output(struct filemon *filemon, char *msg, size_t len) in filemon_output() argument
56 if (filemon->fp == NULL) in filemon_output()
69 if (filemon->fp->f_type == DTYPE_VNODE) in filemon_output()
72 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread); in filemon_output()
73 if (error != 0 && filemon->error == 0) in filemon_output()
74 filemon->error = error; in filemon_output()
78 filemon_output_event(struct filemon *filemon, const char *fmt, ...) in filemon_output_event() argument
84 len = vsnprintf(filemon->msgbufr, sizeof(filemon->msgbufr), fmt, ap); in filemon_output_event()
87 if (len >= sizeof(filemon->msgbufr)) in filemon_output_event()
[all …]
/freebsd-head/contrib/bmake/filemon/
HDfilemon_ktrace.c61 struct filemon;
65 typedef struct filemon_state *filemon_syscall_t(struct filemon *,
92 struct filemon { struct
126 void (*show)(struct filemon *, const struct filemon_state *, argument
195 struct filemon *
198 struct filemon *F; in filemon_open()
246 filemon_closefd(struct filemon *F) in filemon_closefd()
282 filemon_setfd(struct filemon *F, int fd) in filemon_setfd()
316 filemon_setpid_parent(struct filemon *F, pid_t pid) in filemon_setpid_parent()
329 filemon_setpid_child(const struct filemon *F, pid_t pid) in filemon_setpid_child()
[all …]
HDfilemon.h37 struct filemon;
42 struct filemon *
44 int filemon_close(struct filemon *);
46 int filemon_setfd(struct filemon *, int);
47 void filemon_setpid_parent(struct filemon *, pid_t);
48 int filemon_setpid_child(const struct filemon *, pid_t);
50 int filemon_readfd(const struct filemon *);
51 int filemon_process(struct filemon *);
HDfilemon_dev.c53 struct filemon { struct
64 struct filemon * argument
67 struct filemon *F; in filemon_open()
93 filemon_setfd(struct filemon *F, int fd) in filemon_setfd()
108 filemon_setpid_parent(struct filemon *F MAKE_ATTR_UNUSED, pid_t pid MAKE_ATTR_UNUSED) in filemon_setpid_parent()
114 filemon_setpid_child(const struct filemon *F, pid_t pid) in filemon_setpid_child()
122 filemon_close(struct filemon *F) in filemon_close()
144 filemon_readfd(const struct filemon *F MAKE_ATTR_UNUSED) in filemon_readfd()
151 filemon_process(struct filemon *F MAKE_ATTR_UNUSED) in filemon_process()
/freebsd-head/tools/build/options/
HDWITH_META_MODE5 .Xr filemon 4 .
11 .Xr filemon 4
27 The target's meta file is missing filemon data when filemon is loaded
31 .Xr filemon 4 ]
35 .Xr filemon 4 ]
/freebsd-head/share/mk/
HDbsd.init.mk84 .if !exists(/dev/filemon) && \
88 .warning The filemon module (/dev/filemon) is not loaded.
89 .warning META_MODE is less useful for incremental builds without filemon.
HDmeta.sys.mk50 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon}
157 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
HDlocal.meta.sys.env.mk14 META_MODE+= missing-filemon=yes
HDsys.mk59 .if !exists(/dev/filemon) || defined(NO_FILEMON)
/freebsd-head/contrib/bmake/
HDmeta.c138 pbm->filemon = NULL; in meta_open_filemon()
142 pbm->filemon = filemon_open(); in meta_open_filemon()
143 if (pbm->filemon == NULL) { in meta_open_filemon()
163 if (filemon_setfd(pbm->filemon, dupfd) == -1) { in meta_open_filemon()
672 pbm->filemon = NULL; in meta_job_start()
690 if (useFilemon && pbm->filemon != NULL) { in meta_job_child()
694 if (filemon_setpid_child(pbm->filemon, pid) == -1) { in meta_job_child()
709 if (useFilemon && pbm->filemon != NULL) { in meta_job_parent()
710 filemon_setpid_parent(pbm->filemon, pid); in meta_job_parent()
722 if (useFilemon && pbm->filemon != NULL) { in meta_job_fd()
[all …]
HDmeta.h36 struct filemon *filemon; member
HDconfigure.in95 AC_ARG_WITH(filemon, optwith
96 [ --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to fil…
100 */filemon.h) filemon_h="${withval}";;
101 */filemon*) filemon_h="${withval}/filemon.h";;
102 *) AC_MSG_ERROR(bad value ${withval} given for filemon) ;;
112 … for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
116 filemon_h="$d$x/filemon.h"
HDmake-bootstrap.sh.in84 dev,*/filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";;
87 do_compile filemon_@use_filemon@.o filemon/filemon_@use_filemon@.c ${FDEFS}
HDboot-strap98 # Even without filemon(9) meta mode is very useful
102 # --without-filemon
103 # disable use of filemon(9) which is currently only
106 # --with-filemon=ktrace
108 # version of filemon.
110 # --with-filemon="path/to/filemon.h"
111 # enables use of filemon(9) by meta mode.
HDMakefile67 .PATH: ${srcdir}/filemon
73 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
/freebsd-head/sys/modules/filemon/
HDMakefile1 .PATH: ${SRCTOP}/sys/dev/filemon
3 KMOD= filemon
/freebsd-head/tools/kerneldoc/subsys/
HDDoxyfile-dev_filemon6 PROJECT_NAME = "FreeBSD kernel filemon device code"
12 INPUT = $(DOXYGEN_SRC_PATH)/dev/filemon/ \
/freebsd-head/usr.bin/bmake/
HDMakefile.config25 FILEMON_H?= /usr/include/dev/filemon/filemon.h
HDMakefile.inc36 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
HDMakefile79 .PATH: ${srcdir}/filemon
85 FILEMON_H?= /usr/include/dev/filemon/filemon.h
/freebsd-head/tools/test/stress2/misc/
HDsyzkaller62.sh75 kldstat | grep -q filemon || { kldload filemon.ko && loaded=1; }
/freebsd-head/contrib/bmake/mk/
HDmeta.sys.mk50 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon}
157 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
/freebsd-head/etc/mtree/
HDBSD.include.dist136 filemon
/freebsd-head/contrib/bmake/unit-tests/
HDmeta-ignore.inc57 # so that our filemon trace will have a reference to it

12