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

12

/freebsd-current/contrib/bmake/filemon/
H A Dfilemon.h1 /* $NetBSD: filemon.h,v 1.6 2021/12/15 12:08:25 rillig Exp $ */
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 Dfilemon_dev.c32 #include "filemon.h"
42 # include <filemon.h>
46 #define _PATH_FILEMON "/dev/filemon"
53 struct filemon { struct
64 struct filemon *
67 struct filemon *F;
71 /* Allocate and zero a struct filemon object. */
76 /* Try opening /dev/filemon, up to six times (cargo cult!). */
93 filemon_setfd(struct filemon *F, int fd)
108 filemon_setpid_parent(struct filemon *
[all...]
H A Dfilemon_ktrace.c34 #include "filemon.h"
61 struct filemon;
65 typedef struct filemon_state *filemon_syscall_t(struct filemon *,
92 struct filemon { struct
95 FILE *out; /* we write filemon events to here */
126 void (*show)(struct filemon *, const struct filemon_state *,
180 * the filemon.
192 * Allocate a filemon descriptor. Returns NULL and sets errno on
195 struct filemon *
198 struct filemon *
[all...]
/freebsd-current/sys/dev/filemon/
H A Dfilemon.c52 #include "filemon.h"
69 .d_name = "filemon",
73 MALLOC_DEFINE(M_FILEMON, "filemon", "File access monitor");
76 * The filemon->lock protects several things currently:
79 * - Serializing the filemon's log output.
80 * - Preventing inheritance or removal of the filemon into proc.p_filemon.
82 struct filemon { struct
83 struct sx lock; /* Lock for this filemon. */
95 static void filemon_output(struct filemon *filemon, cha
98 filemon_acquire(struct filemon *filemon) argument
110 filemon_release(struct filemon *filemon) argument
135 struct filemon *filemon; local
157 struct filemon *filemon; local
179 filemon_drop(struct filemon *filemon) argument
189 filemon_write_header(struct filemon *filemon) argument
208 filemon_untrack_processes(struct filemon *filemon) argument
251 filemon_close_log(struct filemon *filemon) argument
285 struct filemon *filemon = data; local
301 filemon_attach_proc(struct filemon *filemon, struct proc *p) argument
359 struct filemon *filemon; local
424 struct filemon *filemon; local
444 struct filemon *filemon; local
[all...]
H A Dfilemon_wrapper.c42 static void filemon_output_event(struct filemon *filemon, const char *fmt, ...)
50 filemon_output(struct filemon *filemon, char *msg, size_t len) argument
56 if (filemon->fp == NULL)
69 if (filemon->fp->f_type == DTYPE_VNODE)
72 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread);
73 if (error != 0 && filemon->error == 0)
74 filemon
78 filemon_output_event(struct filemon *filemon, const char *fmt, ...) argument
96 struct filemon *filemon; local
120 struct filemon *filemon; local
154 struct filemon *filemon; local
239 struct filemon *filemon; local
265 struct filemon *filemon; local
320 struct filemon *filemon; local
345 struct filemon *filemon; local
369 struct filemon *filemon; local
[all...]
/freebsd-current/sys/modules/filemon/
H A DMakefile2 .PATH: ${SRCTOP}/sys/dev/filemon
4 KMOD= filemon
/freebsd-current/contrib/bmake/
H A Dmeta.h36 struct filemon *filemon; member in struct:BuildMon
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 Dmeta.c54 #include "filemon/filemon.h"
121 * We can still use meta mode without filemon, but
127 * Open the filemon device.
135 pbm->filemon = NULL;
139 pbm->filemon = filemon_open();
140 if (pbm->filemon == NULL) {
142 warn("Could not open filemon %s", filemon_path());
153 pbm->mon_fd = Job_TempFile("filemon.XXXXXX", NULL, 0);
155 pbm->mon_fd = mkTempFile("filemon
[all...]
H A DMakefile57 # meta mode can be useful even without filemon
61 .PATH: ${srcdir}/filemon
67 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
68 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd-current/share/mk/
H A Dlocal.meta.sys.env.mk14 META_MODE+= missing-filemon=yes
18 # this does not need/want filemon
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.
90 .warning 'kldload filemon' or pass -DNO_FILEMON to suppress this warning.
H A Dmeta.sys.mk20 # 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 Dlocal.sys.mk66 # re-running needlessly but only when using filemon.
86 # metafile/filemon-tracked dependencies.
H A Dbsd.dep.mk87 # Also skip generating or including .depend.* files if in meta+filemon mode
250 # If using filemon then _EXTRADEPEND is skipped since it is not needed.
261 # For meta+filemon the .meta file is checked for since it is the dependency
289 # use .depend files when filemon is in use.
313 # ignored if using meta+filemon since it handles all dependencies. The other
H A Dsrc.sys.env.mk70 # based on cookies. It's fine with filemon though.
H A Dmeta.autodep.mk67 # do not allow auto update if we ever built this dir without filemon
307 CLEANFILES += *.meta filemon.* *.db
/freebsd-current/usr.bin/bmake/
H A DMakefile.inc37 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
H A DMakefile.config25 FILEMON_H?= /usr/include/dev/filemon/filemon.h
H A DMakefile69 # meta mode can be useful even without filemon
73 .PATH: ${srcdir}/filemon
79 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
80 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd-current/tools/test/stress2/misc/
H A Dsyzkaller62.sh59 memcpy((void*)0x20000040, "/dev/filemon\000", 13);
75 kldstat | grep -q filemon || { kldload filemon.ko && loaded=1; }
82 #[ $loaded ] && kldunload -f filemon.ko
/freebsd-current/contrib/bmake/mk/
H A Dmeta.sys.mk20 # 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 Dmeta.autodep.mk67 # do not allow auto update if we ever built this dir without filemon
307 CLEANFILES += *.meta filemon.* *.db
/freebsd-current/
H A DMakefile255 # 20160604 - support missing-meta,missing-filemon and performance improvements
297 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig)
298 # Require filemon be loaded to provide a working incremental build
299 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \
300 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \
301 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error.
302 .endif # !exists(/dev/filemon) && !defined(NO_FILEMON)
/freebsd-current/usr.bin/script/
H A Dscript.c41 #include <dev/filemon/filemon.h>
194 asprintf(&fmfname, "%s.filemon", fname);
196 err(1, "%s.filemon", fname);
197 if ((fm_fd = open("/dev/filemon", O_RDWR | O_CLOEXEC)) == -1)
198 err(1, "open(\"/dev/filemon\", O_RDWR)");
204 err(1, "Cannot set filemon log file descriptor");
272 err(1, "Cannot set filemon PID");

Completed in 231 milliseconds

12