/freebsd-11-stable/sys/dev/filemon/ |
H A D | filemon.c | 30 __FBSDID("$FreeBSD: stable/11/sys/dev/filemon/filemon.c 343885 2019-02-07 23:55:11Z bdrewery $"); 55 #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 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 418 struct filemon *filemon; local 438 struct filemon *filemon; local [all...] |
H A D | filemon_wrapper.c | 30 __FBSDID("$FreeBSD: stable/11/sys/dev/filemon/filemon_wrapper.c 343885 2019-02-07 23:55:11Z bdrewery $"); 45 static void filemon_output_event(struct filemon *filemon, const char *fmt, ...) 53 filemon_output(struct filemon *filemon, char *msg, size_t len) argument 59 if (filemon->fp == NULL) 72 if (filemon->fp->f_type == DTYPE_VNODE) 75 error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread); 76 if (error != 0 && filemon 81 filemon_output_event(struct filemon *filemon, const char *fmt, ...) argument 99 struct filemon *filemon; local 123 struct filemon *filemon; local 157 struct filemon *filemon; local 243 struct filemon *filemon; local 268 struct filemon *filemon; local 323 struct filemon *filemon; local 348 struct filemon *filemon; local 372 struct filemon *filemon; local [all...] |
/freebsd-11-stable/sys/modules/filemon/ |
H A D | Makefile | 1 # $FreeBSD: stable/11/sys/modules/filemon/Makefile 319182 2017-05-30 04:11:12Z ngie $ 3 .PATH: ${SRCTOP}/sys/dev/filemon 5 KMOD= filemon
|
/freebsd-11-stable/usr.bin/bmake/ |
H A D | Makefile.inc | 35 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
|
H A D | Makefile.config | 23 FILEMON_H?= /usr/include/dev/filemon/filemon.h
|
H A D | Makefile | 95 # meta mode can be useful even without filemon 96 FILEMON_H ?= /usr/include/dev/filemon/filemon.h 97 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
|
/freebsd-11-stable/share/mk/ |
H A D | bsd.init.mk | 70 .if !exists(/dev/filemon) && \ 73 .warning The filemon module (/dev/filemon) is not loaded. 74 .warning META_MODE is less useful for incremental builds without filemon. 75 .warning 'kldload filemon' or pass -DNO_FILEMON to suppress this warning.
|
H A D | meta.sys.mk | 19 # for maximum benefit, requires filemon(4) driver. 39 .if ${UPDATE_DEPENDFILE:Uyes:tl} == "no" && !exists(/dev/filemon) 118 # then filemon had better be present 119 .if ${UPDATE_DEPENDFILE:Uyes:tl} != "no" && !exists(/dev/filemon) 120 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded.
|
H A D | local.sys.mk | 53 # re-running needlessly but only when using filemon. 73 # metafile/filemon-tracked dependencies.
|
H A D | bsd.dep.mk | 88 # Also skip generating or including .depend.* files if in meta+filemon mode 212 # If using filemon then _EXTRADEPEND is skipped since it is not needed. 223 # For meta+filemon the .meta file is checked for since it is the dependency 270 # ignored if using meta+filemon since it handles all dependencies. The other
|
H A D | sys.mk | 65 .if !exists(/dev/filemon) || defined(NO_FILEMON) 68 # Require filemon data with bmake 70 META_MODE+= missing-filemon=yes
|
H A D | meta.autodep.mk | 60 # do not allow auto update if we ever built this dir without filemon 287 CLEANFILES += *.meta filemon.* *.db
|
H A D | local.meta.sys.mk | 285 META_MODE+= missing-filemon=yes
|
H A D | local.dirdeps.mk | 84 # XXX: Include this in local.autodep.mk as well for gendirdeps without filemon.
|
/freebsd-11-stable/contrib/bmake/ |
H A D | make-bootstrap.sh.in | 77 */filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";;
|
H A D | Makefile | 80 # meta mode can be useful even without filemon 81 FILEMON_H ?= /usr/include/dev/filemon/filemon.h 82 .if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
|
/freebsd-11-stable/contrib/bmake/mk/ |
H A D | meta.sys.mk | 18 # for maximum benefit, requires filemon(4) driver. 42 .if ${UPDATE_DEPENDFILE:Uyes:tl} == "no" && !exists(/dev/filemon) 139 .elif !exists(/dev/filemon) 140 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded.
|
H A D | meta.autodep.mk | 59 # do not allow auto update if we ever built this dir without filemon 286 CLEANFILES += *.meta filemon.* *.db
|
/freebsd-11-stable/ |
H A D | Makefile | 190 # 20160604 - support missing-meta,missing-filemon and performance improvements 234 .if !exists(/dev/filemon) && !defined(NO_FILEMON) && !make(showconfig) 235 # Require filemon be loaded to provide a working incremental build 236 .error ${.newline}ERROR: The filemon module (/dev/filemon) is not loaded. \ 237 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \ 238 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error. 239 .endif # !exists(/dev/filemon) && !defined(NO_FILEMON)
|
/freebsd-11-stable/usr.bin/script/ |
H A D | script.c | 48 #include <dev/filemon/filemon.h> 161 asprintf(&fmfname, "%s.filemon", fname); 163 err(1, "%s.filemon", fname); 164 if ((fm_fd = open("/dev/filemon", O_RDWR | O_CLOEXEC)) == -1) 165 err(1, "open(\"/dev/filemon\", O_RDWR)"); 171 err(1, "Cannot set filemon log file descriptor"); 231 err(1, "Cannot set filemon PID");
|
/freebsd-11-stable/sys/conf/ |
H A D | kern.post.mk | 209 # Also skip generating or including .depend.* files if in meta+filemon mode 259 # For meta+filemon the .meta file is checked for since it is the dependency
|
/freebsd-11-stable/sys/sys/ |
H A D | proc.h | 167 struct filemon; 622 struct filemon *p_filemon; /* (c) filemon-specific data. */
|
/freebsd-11-stable/sys/modules/ |
H A D | Makefile | 132 filemon \
|
/freebsd-11-stable/include/ |
H A D | Makefile | 46 dev/acpica dev/agp dev/an dev/bktr dev/ciss dev/filemon dev/firewire \
|
/freebsd-11-stable/share/man/man4/ |
H A D | Makefile | 170 filemon.4 \
|