• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/bmake/filemon/

Lines Matching defs:filemon

34 #include "filemon.h"
61 struct filemon;
65 typedef struct filemon_state *filemon_syscall_t(struct filemon *,
92 struct filemon {
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 *F;
202 /* Allocate and zero a struct filemon object. */
247 filemon_closefd(struct filemon *F)
278 * Cause filemon activity on F to be sent to fd. Claims ownership
283 filemon_setfd(struct filemon *F, int fd)
303 fprintf(F->out, "# filemon version 4\n");
317 filemon_setpid_parent(struct filemon *F, pid_t pid)
330 filemon_setpid_child(const struct filemon *F, pid_t pid)
347 * Close F for output if necessary, and free a filemon descriptor.
349 * frees the filemon descriptor either way;
352 filemon_close(struct filemon *F)
373 /* Free the filemon descriptor. */
390 * when there are filemon events to be processed by
394 filemon_readfd(const struct filemon *F)
405 * Internal subroutine to dispatch a filemon ktrace event.
409 filemon_dispatch(struct filemon *F)
477 * invoke the syscall-specific logic to show a filemon
512 filemon_process(struct filemon *F)
548 case FILEMON_START: /* just started filemon; read header next */
589 void (*show)(struct filemon *, const struct filemon_state *,
610 show_paths(struct filemon *F, const struct filemon_state *S,
640 show_retval(struct filemon *F, const struct filemon_state *S,
658 show_chdir(struct filemon *F, const struct filemon_state *S,
665 show_execve(struct filemon *F, const struct filemon_state *S,
672 show_fork(struct filemon *F, const struct filemon_state *S,
679 show_link(struct filemon *F, const struct filemon_state *S,
686 show_open_read(struct filemon *F, const struct filemon_state *S,
693 show_open_write(struct filemon *F, const struct filemon_state *S,
700 show_open_readwrite(struct filemon *F, const struct filemon_state *S,
708 show_openat_read(struct filemon *F, const struct filemon_state *S,
717 show_openat_write(struct filemon *F, const struct filemon_state *S,
726 show_openat_readwrite(struct filemon *F, const struct filemon_state *S,
736 show_symlink(struct filemon *F, const struct filemon_state *S,
743 show_unlink(struct filemon *F, const struct filemon_state *S,
750 show_rename(struct filemon *F, const struct filemon_state *S,
758 filemon_sys_chdir(struct filemon *F, const struct filemon_key *key,
768 filemon_sys_execve(struct filemon *F, const struct filemon_key *key,
775 filemon_sys_exit(struct filemon *F, const struct filemon_key *key,
793 filemon_sys_fork(struct filemon *F, const struct filemon_key *key,
801 filemon_sys_link(struct filemon *F, const struct filemon_key *key,
809 filemon_sys_open(struct filemon *F, const struct filemon_key *key,
831 filemon_sys_openat(struct filemon *F, const struct filemon_key *key,
874 filemon_sys_symlink(struct filemon *F, const struct filemon_key *key,
882 filemon_sys_unlink(struct filemon *F, const struct filemon_key *key,
890 filemon_sys_rename(struct filemon *F, const struct filemon_key *key,