Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/filemon/
H A Dfilemon.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 …]
H A Dfilemon_wrapper.c41 static void filemon_output_event(struct filemon *filemon, const char *fmt, ...)
49 filemon_output(struct filemon *filemon, char *msg, size_t len) in filemon_output() argument
55 if (filemon->fp == NULL) in filemon_output()
68 if (filemon->fp->f_type == DTYPE_VNODE) in filemon_output()
71 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread); in filemon_output()
72 if (error != 0 && filemon->error == 0) in filemon_output()
73 filemon->error = error; in filemon_output()
77 filemon_output_event(struct filemon *filemon, const char *fmt, ...) in filemon_output_event() argument
83 len = vsnprintf(filemon->msgbufr, sizeof(filemon->msgbufr), fmt, ap); in filemon_output_event()
86 if (len >= sizeof(filemon->msgbufr)) in filemon_output_event()
[all …]
/freebsd/contrib/bmake/filemon/
H A Dfilemon_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 …]
H A Dfilemon.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 *);
H A Dfilemon_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/tools/build/options/
H A DWITH_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/share/mk/
H A Dbsd.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.
H A Dmeta.sys.mk42 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon}
149 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
H A Dlocal.meta.sys.env.mk14 META_MODE+= missing-filemon=yes
/freebsd/contrib/bmake/
H A Dmeta.c139 pbm->filemon = NULL; in meta_open_filemon()
143 pbm->filemon = filemon_open(); in meta_open_filemon()
144 if (pbm->filemon == NULL) { in meta_open_filemon()
164 if (filemon_setfd(pbm->filemon, dupfd) == -1) { in meta_open_filemon()
673 pbm->filemon = NULL; in meta_job_start()
691 if (useFilemon && pbm->filemon != NULL) { in meta_job_child()
695 if (filemon_setpid_child(pbm->filemon, pid) == -1) { in meta_job_child()
710 if (useFilemon && pbm->filemon != NULL) { in meta_job_parent()
711 filemon_setpid_parent(pbm->filemon, pid); in meta_job_parent()
723 if (useFilemon && pbm->filemon != NULL) { in meta_job_fd()
[all …]
H A Dmeta.h36 struct filemon *filemon; member
H A Dconfigure.in103 AC_ARG_WITH(filemon, optwith
104 [ --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to fil…
108 */filemon.h) filemon_h="${withval}";;
109 */filemon*) filemon_h="${withval}/filemon.h";;
110 *) AC_MSG_ERROR(bad value ${withval} given for filemon) ;;
121 … for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
125 filemon_h="$d$x/filemon.h"
H A Dmake-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}
H A Dboot-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.
H A DMakefile63 # meta mode can be useful even without filemon
67 .PATH: ${srcdir}/filemon
73 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
74 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd/sys/modules/filemon/
H A DMakefile1 .PATH: ${SRCTOP}/sys/dev/filemon
3 KMOD= filemon
/freebsd/tools/kerneldoc/subsys/
H A DDoxyfile-dev_filemon6 PROJECT_NAME = "FreeBSD kernel filemon device code"
12 INPUT = $(DOXYGEN_SRC_PATH)/dev/filemon/ \
/freebsd/usr.bin/bmake/
H A DMakefile.config25 FILEMON_H?= /usr/include/dev/filemon/filemon.h
H A DMakefile.inc38 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
H A DMakefile79 .PATH: ${srcdir}/filemon
85 FILEMON_H?= /usr/include/dev/filemon/filemon.h
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller62.sh75 kldstat | grep -q filemon || { kldload filemon.ko && loaded=1; }
/freebsd/contrib/bmake/mk/
H A Dmeta.sys.mk42 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon}
149 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
/freebsd/
H A DMakefile306 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig)
308 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \
309 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ target
/freebsd/contrib/bmake/unit-tests/
H A Dmeta-ignore.inc57 # so that our filemon trace will have a reference to it
/freebsd/etc/mtree/
H A DBSD.include.dist134 filemon

12