/freebsd-current/contrib/bmake/filemon/ |
H A D | filemon.h | 1 /* $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 D | filemon_dev.c | 32 #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 D | filemon_ktrace.c | 34 #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 D | filemon.c | 52 #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 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) 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 D | Makefile | 2 .PATH: ${SRCTOP}/sys/dev/filemon 4 KMOD= filemon
|
/freebsd-current/contrib/bmake/ |
H A D | meta.h | 36 struct filemon *filemon; member in struct:BuildMon
|
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 | meta.c | 54 #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 D | Makefile | 57 # 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 D | local.meta.sys.env.mk | 14 META_MODE+= missing-filemon=yes 18 # this does not need/want filemon
|
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. 90 .warning 'kldload filemon' or pass -DNO_FILEMON to suppress this warning.
|
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.sys.mk | 66 # re-running needlessly but only when using filemon. 86 # metafile/filemon-tracked dependencies.
|
H A D | bsd.dep.mk | 87 # 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 D | src.sys.env.mk | 70 # based on cookies. It's fine with filemon though.
|
H A D | meta.autodep.mk | 67 # 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 D | Makefile.inc | 37 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
|
H A D | Makefile.config | 25 FILEMON_H?= /usr/include/dev/filemon/filemon.h
|
H A D | Makefile | 69 # 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 D | syzkaller62.sh | 59 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 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 | meta.autodep.mk | 67 # do not allow auto update if we ever built this dir without filemon 307 CLEANFILES += *.meta filemon.* *.db
|
/freebsd-current/ |
H A D | Makefile | 255 # 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 D | script.c | 41 #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");
|