- 24 Apr, 2013 1 commit
-
-
Julius Plenz authored
-
- 23 Apr, 2013 1 commit
-
-
Julius Plenz authored
-
- 22 Apr, 2013 2 commits
-
-
git://github.com/paulharris/nocacheJulius Plenz authored
* 'master' of git://github.com/paulharris/nocache: Adjusted script so it will preload the .so from the script's directory
-
Paul Harris authored
-
- 09 Apr, 2013 1 commit
-
-
Julius Plenz authored
Thanks again, kocmo, for noticing.
-
- 05 Apr, 2013 1 commit
-
-
Julius Plenz authored
Thanks to kocmo for the patch.
-
- 20 Mar, 2013 2 commits
-
-
Julius Plenz authored
man pages
-
Dmitry Smirnov authored
-
- 16 Oct, 2012 6 commits
-
-
Julius Plenz authored
* test: Add "ls" test Make it easy to add new tests Add make target “test” Add very basic test
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Aleksandr authored
This issue came up in the real world because apparently libselinux.so.1 does an fopen in a constructor function. Big Thanks to Mike Shal (http://sourceware.org/ml/libc-help/2009-06/msg00000.html ) [Made some cosmetic changes -JP] Fixes: GitHub issues #1 and #2 Signed-off-by:
Julius Plenz <julius@plenz.com>
-
- 24 Jul, 2012 1 commit
-
-
Julius Plenz authored
-
- 12 Jul, 2012 2 commits
-
-
Julius Plenz authored
-
Michael Weiser authored
Calls to open() from within glibc cannot be intercepted (see <http://cygwin.com/ml/libc-alpha/2006-04/msg00094.html>); thus, include wrappers for fopen() and fclose() as well. This should possibly be done for fdopen() and freopen(), too, if there's need for it. [Patch corrected and original description translated by Julius Plenz] Signed-off-by:
Julius Plenz <plenz@cis.fu-berlin.de>
-
- 08 Feb, 2012 3 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
When you invoke "tar cfv <tarball> <files>", then tar will close all active file descriptors it has, forks, then opens the target tarball as fd 1 (stdout). Then, it'll exec "gzip -", which *inherits* a stdout which is a file. Now we duplicate this stdout if it's a regular file so that we can advise it later. (The original will be closed via the _exit() routine, probably, which uses direct syscall that we cannot intercept.)
-
- 07 Feb, 2012 1 commit
-
-
Julius Plenz authored
Thus, also shell redirection -- which makes heavy use of dup2() -- is handled correctly: $ cachestats /tmp/foo open: No such file or directory $ nocache sh -c 'echo foo > /tmp/foo' $ cachestats /tmp/foo pages in cache: 0/1 (0.0%) [filesize=0.0K, pagesize=4K]
-
- 06 Feb, 2012 15 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
* tar-quirks: Add an alias __openat_2() for openat() intercept creat()
-
Julius Plenz authored
Don't ask me for the reason why a straight-forward openat() call in GNU tar ends up calling __openat_2() via the glibc. I don't know. Anyway, that's the first time I had to ask something on StackOverflow, and I was promptly pointed in the right direction! <http://stackoverflow.com/questions/9161116/intercepting-the-openat-system-call-for-gnu-tar>
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
Still, there is some sort of racing condition I cannot reliably reproduce, but often enough observe. It looks like this: $ ./cachedel z && ./nocache cat z > /dev/null && ./cachestats -v z pages in cache: 2/16 (12.5%) [filesize=64.0K, pagesize=4K] cache map: 0: | | | | | | | | | | | | | | |x|x| Although of course the file should not be cached at all.
-
Julius Plenz authored
-
- 05 Feb, 2012 4 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-