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. */
246 filemon_closefd(struct filemon *F)
277 * Cause filemon activity on F to be sent to fd. Claims ownership
282 filemon_setfd(struct filemon *F, int fd)
302 fprintf(F->out, "# filemon version 4\n");
316 filemon_setpid_parent(struct filemon *F, pid_t pid)
329 filemon_setpid_child(const struct filemon *F, pid_t pid)
346 * Close F for output if necessary, and free a filemon descriptor.
348 * frees the filemon descriptor either way;
351 filemon_close(struct filemon *F)
372 /* Free the filemon descriptor. */
389 * when there are filemon events to be processed by
393 filemon_readfd(const struct filemon *F)
404 * Internal subroutine to dispatch a filemon ktrace event.
408 filemon_dispatch(struct filemon *F)
476 * invoke the syscall-specific logic to show a filemon
511 filemon_process(struct filemon *F)
547 case FILEMON_START: /* just started filemon; read header next */
588 void (*show)(struct filemon *, const struct filemon_state *,
609 show_paths(struct filemon *F, const struct filemon_state *S,
639 show_retval(struct filemon *F, const struct filemon_state *S,
657 show_chdir(struct filemon *F, const struct filemon_state *S,
664 show_execve(struct filemon *F, const struct filemon_state *S,
671 show_fork(struct filemon *F, const struct filemon_state *S,
678 show_link(struct filemon *F, const struct filemon_state *S,
685 show_open_read(struct filemon *F, const struct filemon_state *S,
692 show_open_write(struct filemon *F, const struct filemon_state *S,
699 show_open_readwrite(struct filemon *F, const struct filemon_state *S,
707 show_openat_read(struct filemon *F, const struct filemon_state *S,
716 show_openat_write(struct filemon *F, const struct filemon_state *S,
725 show_openat_readwrite(struct filemon *F, const struct filemon_state *S,
735 show_symlink(struct filemon *F, const struct filemon_state *S,
742 show_unlink(struct filemon *F, const struct filemon_state *S,
749 show_rename(struct filemon *F, const struct filemon_state *S,
757 filemon_sys_chdir(struct filemon *F, const struct filemon_key *key,
767 filemon_sys_execve(struct filemon *F, const struct filemon_key *key,
774 filemon_sys_exit(struct filemon *F, const struct filemon_key *key,
792 filemon_sys_fork(struct filemon *F, const struct filemon_key *key,
800 filemon_sys_link(struct filemon *F, const struct filemon_key *key,
808 filemon_sys_open(struct filemon *F, const struct filemon_key *key,
830 filemon_sys_openat(struct filemon *F, const struct filemon_key *key,
873 filemon_sys_symlink(struct filemon *F, const struct filemon_key *key,
881 filemon_sys_unlink(struct filemon *F, const struct filemon_key *key,
889 filemon_sys_rename(struct filemon *F, const struct filemon_key *key,