/freebsd/sys/dev/filemon/ |
H A D | filemon.c | 82 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 D | filemon_wrapper.c | 42 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/contrib/bmake/filemon/ |
H A D | filemon_ktrace.c | 61 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 D | filemon.h | 37 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 D | filemon_dev.c | 53 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 D | WITH_META_MODE | 5 .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 D | bsd.init.mk | 84 .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 D | meta.sys.mk | 20 # for maximum benefit, requires filemon(4) driver. 38 # we do not support filemon 45 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon} 54 .if ${_filemon:T:Mfilemon} == "filemon" 145 .elif ${_filemon:T} == "filemon" && !exists(${_filemon}) 146 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
|
H A D | local.meta.sys.env.mk | 14 META_MODE+= missing-filemon=yes
|
/freebsd/contrib/bmake/ |
H A D | meta.c | 138 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 …]
|
H A D | meta.h | 36 struct filemon *filemon; member
|
H A D | configure.in | 95 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"
|
H A D | make-bootstrap.sh.in | 84 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 D | boot-strap | 98 # 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 D | Makefile | 67 .PATH: ${srcdir}/filemon 73 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
|
/freebsd/sys/modules/filemon/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/filemon 3 KMOD= filemon
|
/freebsd/tools/kerneldoc/subsys/ |
H A D | Doxyfile-dev_filemon | 6 PROJECT_NAME = "FreeBSD kernel filemon device code" 12 INPUT = $(DOXYGEN_SRC_PATH)/dev/filemon/ \
|
/freebsd/usr.bin/bmake/ |
H A D | Makefile.config | 25 FILEMON_H?= /usr/include/dev/filemon/filemon.h
|
H A D | Makefile.inc | 36 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
|
H A D | Makefile | 79 .PATH: ${srcdir}/filemon 85 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
|
/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller62.sh | 75 kldstat | grep -q filemon || { kldload filemon.ko && loaded=1; }
|
/freebsd/contrib/bmake/mk/ |
H A D | meta.sys.mk | 50 _filemon := ${.MAKE.PATH_FILEMON:U/dev/filemon} 157 .error ${.newline}ERROR: The filemon module (${_filemon}) is not loaded.
|
/freebsd/ |
H A D | Makefile | 255 # 20160604 - support missing-meta,missing-filemon and performance improvements 302 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig) 303 # Require filemon be loaded to provide a working incremental build 304 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \ 305 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ 306 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error. 307 .endif # !exists(/dev/filemon) && !defined(NO_FILEMON) 300 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ global() target 301 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error. global() target
|
H A D | Makefile | 302 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig) 304 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \ 305 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ target
|
/freebsd/etc/mtree/ |
H A D | BSD.include.dist | 136 filemon
|