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

12

/freebsd-12-stable/contrib/bmake/filemon/
H A Dfilemon.h1 /* $NetBSD: filemon.h,v 1.2 2020/01/22 22:10:36 sjg 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"
49 struct filemon { struct
60 struct filemon *
63 struct filemon *F;
67 /* Allocate and zero a struct filemon object. */
72 /* Try opening /dev/filemon, up to six times (cargo cult!). */
89 filemon_setfd(struct filemon *F, int fd)
104 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 *,
178 * the filemon.
190 * Allocate a filemon descriptor. Returns NULL and sets errno on
193 struct filemon *
196 struct filemon *
[all...]
/freebsd-12-stable/sys/dev/filemon/
H A Dfilemon.c55 #include "filemon.h"
72 .d_name = "filemon",
76 MALLOC_DEFINE(M_FILEMON, "filemon", "File access monitor");
79 * The filemon->lock protects several things currently:
82 * - Serializing the filemon's log output.
83 * - Preventing inheritance or removal of the filemon into proc.p_filemon.
85 struct filemon { struct
86 struct sx lock; /* Lock for this filemon. */
98 static void filemon_output(struct filemon *filemon, cha
101 filemon_acquire(struct filemon *filemon) argument
113 filemon_release(struct filemon *filemon) argument
138 struct filemon *filemon; local
160 struct filemon *filemon; local
182 filemon_drop(struct filemon *filemon) argument
192 filemon_write_header(struct filemon *filemon) argument
211 filemon_untrack_processes(struct filemon *filemon) argument
254 filemon_close_log(struct filemon *filemon) argument
288 struct filemon *filemon = data; local
304 filemon_attach_proc(struct filemon *filemon, struct proc *p) argument
363 struct filemon *filemon; local
417 struct filemon *filemon; local
437 struct filemon *filemon; local
[all...]
H A 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) argument
58 if (filemon->fp == NULL)
71 if (filemon->fp->f_type == DTYPE_VNODE)
74 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread);
75 if (error != 0 && filemon->error == 0)
76 filemon
80 filemon_output_event(struct filemon *filemon, const char *fmt, ...) argument
98 struct filemon *filemon; local
122 struct filemon *filemon; local
156 struct filemon *filemon; local
242 struct filemon *filemon; local
267 struct filemon *filemon; local
322 struct filemon *filemon; local
347 struct filemon *filemon; local
371 struct filemon *filemon; local
[all...]
/freebsd-12-stable/sys/modules/filemon/
H A DMakefile3 .PATH: ${SRCTOP}/sys/dev/filemon
5 KMOD= filemon
/freebsd-12-stable/contrib/bmake/
H A Dmeta.h36 struct filemon *filemon; member in struct:BuildMon
H A 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}
H A Dmeta.c53 #include "filemon/filemon.h"
116 * We can still use meta mode without filemon, but
122 * Open the filemon device.
130 pbm->filemon = NULL;
134 pbm->filemon = filemon_open();
135 if (pbm->filemon == NULL) {
137 warn("Could not open filemon %s", filemon_path());
147 pbm->mon_fd = mkTempFile("filemon.XXXXXX", NULL);
149 err(1, "Could not dup filemon outpu
[all...]
H A DMakefile81 # meta mode can be useful even without filemon
85 .PATH: ${srcdir}/filemon
91 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
92 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd-12-stable/usr.bin/bmake/
H A DMakefile.config24 FILEMON_H?= /usr/include/dev/filemon/filemon.h
H A DMakefile.inc35 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
H A DMakefile94 # meta mode can be useful even without filemon
98 .PATH: ${srcdir}/filemon
104 FILEMON_H ?= /usr/include/dev/filemon/filemon.h
105 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
/freebsd-12-stable/share/mk/
H A 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.
89 .warning 'kldload filemon' or pass -DNO_FILEMON to suppress this warning.
H A Dmeta.sys.mk19 # for maximum benefit, requires filemon(4) driver.
43 .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.
H A Dlocal.sys.mk53 # re-running needlessly but only when using filemon.
73 # metafile/filemon-tracked dependencies.
H A Dbsd.dep.mk88 # Also skip generating or including .depend.* files if in meta+filemon mode
222 # If using filemon then _EXTRADEPEND is skipped since it is not needed.
233 # For meta+filemon the .meta file is checked for since it is the dependency
284 # ignored if using meta+filemon since it handles all dependencies. The other
H A Dsys.mk74 .if !exists(/dev/filemon) || defined(NO_FILEMON)
77 # Require filemon data with bmake
79 META_MODE+= missing-filemon=yes
H A Dmeta.autodep.mk63 # do not allow auto update if we ever built this dir without filemon
297 CLEANFILES += *.meta filemon.* *.db
H A Dlocal.dirdeps.mk109 # XXX: Include this in local.autodep.mk as well for gendirdeps without filemon.
/freebsd-12-stable/contrib/bmake/mk/
H A Dmeta.sys.mk18 # for maximum benefit, requires filemon(4) driver.
42 .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.
H A Dmeta.autodep.mk61 # do not allow auto update if we ever built this dir without filemon
295 CLEANFILES += *.meta filemon.* *.db
/freebsd-12-stable/usr.bin/script/
H A Dscript.c50 #include <dev/filemon/filemon.h>
163 asprintf(&fmfname, "%s.filemon", fname);
165 err(1, "%s.filemon", fname);
166 if ((fm_fd = open("/dev/filemon", O_RDWR | O_CLOEXEC)) == -1)
167 err(1, "open(\"/dev/filemon\", O_RDWR)");
173 err(1, "Cannot set filemon log file descriptor");
233 err(1, "Cannot set filemon PID");
/freebsd-12-stable/
H A DMakefile221 # 20160604 - support missing-meta,missing-filemon and performance improvements
272 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig)
273 # Require filemon be loaded to provide a working incremental build
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. \
276 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error.
277 .endif # !exists(/dev/filemon) && !defined(NO_FILEMON)
/freebsd-12-stable/sys/conf/
H A Dkern.post.mk227 # Also skip generating or including .depend.* files if in meta+filemon mode
284 # For meta+filemon the .meta file is checked for since it is the dependency

Completed in 163 milliseconds

12