CVS log for src/sys/dev/filemon/Attic/filemon_wrapper.c
Up to [cvs.NetBSD.org] / src / sys / dev / filemon
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.11.18.1
Wed Apr 8 14:08:04 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.11: +2 -2
lines
Merge changes from current as of 20200406
Revision 1.14.2.1
Sat Jan 25 22:38:46 2020 UTC (5 years ago) by ad
Branches: ad-namecache
FILE REMOVED
Changes since revision 1.14: +2 -2
lines
Sync with head.
Revision 1.15
Sun Jan 19 20:41:19 2020 UTC (5 years ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
ad-namecache-base3,
ad-namecache-base2,
HEAD
FILE REMOVED
Changes since revision 1.14: +2 -2
lines
Remove filemon(4).
Discussed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/13/msg025938.html
This was never (intentionally) enabled by default, and the design has
some shortcomings. You can get mostly the same results with ktrace,
as in usr.bin/make/filemon/filemon_ktrace.c which is now used instead
of filemon for make's meta mode.
If applications require higher performance than ktrace, or nesting
that ktrace doesn't support, we might consider adding something back
into the vfs system calls themselves, without hijacking the syscall
table. (Might want a more reliable output format too, e.g. one that
can handle newlines in file names.)
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Dec 23 06:45:38 2019 UTC (5 years, 1 month ago) by maxv
Branches: MAIN
CVS tags: ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +0 -0
lines
Revert the removal of filemon.
Revision 1.13
Wed Dec 18 07:37:18 2019 UTC (5 years, 1 month ago) by maxv
Branches: MAIN
FILE REMOVED
Changes since revision 1.12: +2 -2
lines
Retire filemon, discussed on tech-kern@.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Oct 25 16:22:48 2019 UTC (5 years, 3 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -6
lines
From the compilers point of view sys_exit returns a value.
Adjust the filemon wrapper accordingly (newer gcc is unhappy with the
function pointer casts otherwise and the amd64/ALL kernel fails to build).
Revision 1.3.12.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:01 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.3.12.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.12.2: +291 -172
lines
update from HEAD
Revision 1.5.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:49 2015 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.6.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.6.1: +104 -38
lines
Sync with HEAD (as of 26th Dec)
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Nov 25 07:34:49 2015 UTC (9 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes,
jdolecek-ncq-base,
jdolecek-ncq,
isaki-audio2-base,
isaki-audio2,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +93 -28
lines
Be a bit more paranoid about hijacking (and restoring) syscall function
pointers. Ensure that we have the correct "old" values before setting
new values, for both "intall" and "deinstall".
XXX This is NOT intended to encourage additional cases of hijacking! If
XXX some other hijack feature ever gets committed, this code should be
XXX moved to (most likely) kern/kern_syscall.c.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 23 00:47:43 2015 UTC (9 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -6
lines
Retrieve the pathname of the exec'd file before we call sys_execve().
We cannot rely on using copyinstr() to retrieve the pathname from
user mode after a successful exec, since the user mode address space
is no longer valid (and may not even be accessible). This worked in
earlier code but was broken by rev 1.7.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Nov 22 01:20:52 2015 UTC (9 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -6
lines
Fix return-code handling for execve and chdir wrappers.
Fixes PR kern/50309
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Nov 20 01:16:04 2015 UTC (9 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
Install wrapper functions only in native emulation.
(This also removes the dependency on curproc, which may not be available
at the time that built-in kernel modules are initialized.)
Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:57 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +198 -145
lines
Sync with HEAD
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jun 15 19:45:31 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +186 -180
lines
staircase flattening police.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jun 15 18:11:36 2015 UTC (9 years, 7 months ago) by sjg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +48 -1
lines
Latest clang uses openat, filemon thus needs to handle it.
For the simple cases where path is absolute or dirfd is for cwd
we can handle this just like open.
For the remaining case we output an 'A' record to offer a clue that
a search for open dir is needed (earlier in the trace).
Revision 1.3.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:36 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.3.12.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.12.1: +13 -74
lines
Rebase to HEAD as of a few days ago.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:20 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +13 -74
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:36 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +13 -74
lines
sync with head
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Mar 27 18:27:34 2014 UTC (10 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -74
lines
remove a bunch of repetitive code by introducing filemon_printf.
Revision 1.3.12.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:13 2013 UTC (11 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -2
lines
resync with head
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:14 2013 UTC (12 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -2
lines
sync with (a bit old) head
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Nov 19 22:20:10 2012 UTC (12 years, 2 months ago) by sjg
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -2
lines
filemon_pid_check:
Avoid recursion, and hold a reader lock on p_reflock while we
check for filemon, and until we have p_pptr.
filemon_ioctl:
Do not allow FILEMON_SET_PID unless caller would be allowed
to ptrace the target pid.
filemon_wrapper_deinstall:
Do not touch syscalls if they no longer point to us, return EBUSY.
filemon_unload:
return EBUSY if filemon_wrapper_deinstall() fails.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 24 18:08:15 2011 UTC (13 years, 4 months ago) by sjg
Branches: MAIN
CVS tags: yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -1
lines
For files opened O_RDWR, output an R record as well as W
so that clients that only care about files read can ignore W.
Bump version.
Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:48 2011 UTC (13 years, 8 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +2 -2
lines
Sync with HEAD.
Revision 1.1.10.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:46 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.10.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.10.2: +1 -1
lines
sync with head
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 13 21:26:31 2011 UTC (13 years, 11 months ago) by sjg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
EJUSTRETURN is expected return from sys_execve()
Revision 1.1.10.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:08 2011 UTC (13 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1.10.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.10.1: +385 -0
lines
sync with head
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 22 09:23:13 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +385 -0
lines
Sync with HEAD (-D20101022).
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:05 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +385 -0
lines
sync with head
Revision 1.1.10.1
Thu Sep 9 00:10:16 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.1: +0 -385
lines
file filemon_wrapper.c was added on branch rmind-uvmplock on 2011-03-05 20:53:08 +0000
Revision 1.1.4.1
Thu Sep 9 00:10:16 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.1: +0 -385
lines
file filemon_wrapper.c was added on branch uebayasi-xip on 2010-10-22 09:23:13 +0000
Revision 1.1.2.1
Thu Sep 9 00:10:16 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.1: +0 -385
lines
file filemon_wrapper.c was added on branch yamt-nfs-mp on 2010-10-09 03:32:05 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Sep 9 00:10:16 2010 UTC (14 years, 5 months ago) by sjg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-nfs-mp,
uebayasi-xip,
rmind-uvmplock,
jruoho-x86intr
First cut of simple syscall wrapper, which make(1) can use
to track process activity.
CVSweb <webmaster@jp.NetBSD.org>