Home
last modified time | relevance | path

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

12

/freebsd-12-stable/sys/dev/filemon/
Dfilemon.c85 struct filemon { struct
98 static void filemon_output(struct filemon *filemon, char *msg, size_t len); argument
100 static __inline struct filemon *
101 filemon_acquire(struct filemon *filemon) in filemon_acquire() argument
104 if (filemon != NULL) in filemon_acquire()
105 refcount_acquire(&filemon->refcnt); in filemon_acquire()
106 return (filemon); in filemon_acquire()
113 filemon_release(struct filemon *filemon) in filemon_release() argument
116 if (refcount_release(&filemon->refcnt) == 0) in filemon_release()
123 sx_assert(&filemon->lock, SA_UNLOCKED); in filemon_release()
[all …]
Dfilemon_wrapper.c44 static void filemon_output_event(struct filemon *filemon, const char *fmt, ...)
52 filemon_output(struct filemon *filemon, char *msg, size_t len) in filemon_output() argument
58 if (filemon->fp == NULL) in filemon_output()
71 if (filemon->fp->f_type == DTYPE_VNODE) in filemon_output()
74 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread); in filemon_output()
75 if (error != 0 && filemon->error == 0) in filemon_output()
76 filemon->error = error; in filemon_output()
80 filemon_output_event(struct filemon *filemon, const char *fmt, ...) in filemon_output_event() argument
86 len = vsnprintf(filemon->msgbufr, sizeof(filemon->msgbufr), fmt, ap); in filemon_output_event()
89 if (len >= sizeof(filemon->msgbufr)) in filemon_output_event()
[all …]
/freebsd-12-stable/contrib/bmake/filemon/
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
193 struct filemon *
196 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 …]
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 *);
Dfilemon_dev.c49 struct filemon { struct
60 struct filemon * argument
63 struct filemon *F; in filemon_open()
89 filemon_setfd(struct filemon *F, int fd) in filemon_setfd()
104 filemon_setpid_parent(struct filemon *F, pid_t pid) in filemon_setpid_parent()
110 filemon_setpid_child(const struct filemon *F, pid_t pid) in filemon_setpid_child()
118 filemon_close(struct filemon *F) in filemon_close()
140 filemon_readfd(const struct filemon *F) in filemon_readfd()
147 filemon_process(struct filemon *F) in filemon_process()
/freebsd-12-stable/share/mk/
Dbsd.init.mk83 .if !exists(/dev/filemon) && \
87 .warning The filemon module (/dev/filemon) is not loaded.
88 .warning META_MODE is less useful for incremental builds without filemon.
Dmeta.sys.mk43 .if ${UPDATE_DEPENDFILE:Uyes:tl} == "no" && !exists(/dev/filemon)
142 .elif !exists(/dev/filemon)
143 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded.
Dsys.mk74 .if !exists(/dev/filemon) || defined(NO_FILEMON)
79 META_MODE+= missing-filemon=yes
Dlocal.meta.sys.mk259 META_MODE+= missing-filemon=yes
/freebsd-12-stable/contrib/bmake/
Dmeta.c130 pbm->filemon = NULL; in meta_open_filemon()
134 pbm->filemon = filemon_open(); in meta_open_filemon()
135 if (pbm->filemon == NULL) { in meta_open_filemon()
152 if (filemon_setfd(pbm->filemon, dupfd) == -1) { in meta_open_filemon()
690 pbm->filemon = NULL; in meta_job_start()
712 if (useFilemon && pbm->filemon) { in meta_job_child()
716 if (filemon_setpid_child(pbm->filemon, pid) == -1) { in meta_job_child()
735 if (useFilemon && pbm->filemon) { in meta_job_parent()
736 filemon_setpid_parent(pbm->filemon, pid); in meta_job_parent()
752 if (useFilemon && pbm->filemon) { in meta_job_fd()
[all …]
Dconfigure.in55 AC_ARG_WITH(filemon, optwith
56 [ --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to file…
60 */filemon.h) filemon_h="${withval}";;
61 */filemon*) filemon_h="${withval}/filemon.h";;
62 *) AC_MSG_ERROR(bad value ${withval} given for filemon) ;;
72 … for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
76 filemon_h="$d$x/filemon.h"
Dmeta.h36 struct filemon *filemon; member
Dmake-bootstrap.sh.in88 dev,*/filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";;
91 do_compile filemon_@use_filemon@.o filemon/filemon_@use_filemon@.c ${FDEFS}
DFILES26 filemon/filemon.h
27 filemon/filemon_dev.c
28 filemon/filemon_ktrace.c
Dboot-strap88 # --without-filemon
89 # disable use of filemon(9) which is currently only
92 # --with-filemon=ktrace
94 # version of filemon.
96 # --with-filemon="path/to/filemon.h"
97 # enables use of filemon(9) by meta mode.
DMakefile85 .PATH: ${srcdir}/filemon
91 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
DChangeLog7 o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
16 o filemon/filemon_dev.c: ensure filemon fd is closed on exec.
114 also if --with-filemon= specifies path to filemon.h
214 o filemon/filemon_{dev,ktrace}.c: allow selection of
215 filemon implementation. filemon_dev.c uses the kernel module
388 even when filemon not being used.
570 o meta.c: missing filemon data is only relevant if we read a
581 missing meta file and filemon data wrt out-of-datedness.
595 o propagate errors from filemon(4).
814 o meta.c ensure "-- filemon" is at start of line.
[all …]
Dconfigure1336 …--with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filem…
2409 */filemon*) filemon_h="${withval}/filemon.h";;
2410 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2421 … for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2425 filemon_h="$d$x/filemon.h"
/freebsd-12-stable/contrib/bmake/mk/
Dmeta.sys.mk42 .if ${UPDATE_DEPENDFILE:Uyes:tl} == "no" && !exists(/dev/filemon)
143 .elif !exists(/dev/filemon)
144 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded.
/freebsd-12-stable/sys/modules/filemon/
DMakefile3 .PATH: ${SRCTOP}/sys/dev/filemon
5 KMOD= filemon
/freebsd-12-stable/usr.bin/bmake/
DMakefile.config24 FILEMON_H?= /usr/include/dev/filemon/filemon.h
DMakefile.inc35 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
DMakefile98 .PATH: ${srcdir}/filemon
104 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
/freebsd-12-stable/
DMakefile272 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig)
274 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \
275 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ target
/freebsd-12-stable/etc/mtree/
DBSD.include.dist133 filemon

12