├── .circleci └── config.yml ├── .github └── dependabot.yml ├── .gitignore ├── .gitmodules ├── .hgignore ├── LICENSE.gpl3 ├── LICENSE.lgpl3 ├── Makefile ├── README.md ├── common.mk ├── contrib ├── Makefile └── dlmalloc.c ├── example ├── .gdbinit ├── Makefile ├── bootstrap.c ├── chain-decls.h ├── chain.c ├── chain.h ├── chain.inc.c ├── dynamic-list ├── fake-tls.c ├── freebsd-syscall-macros.h ├── pre-entry.c ├── syscall-names.c ├── syscall-names.h ├── sysdeps │ └── freebsd │ │ └── trap-syscall.c ├── trace-syscalls.c ├── trace-syscalls.h ├── version-script ├── write-footprints.c └── write-footprints.h ├── include ├── instr.h ├── raw-syscalls-asm.h ├── raw-syscalls-defs.h ├── raw-syscalls-impl.h └── systrap.h ├── lib └── Makefile ├── src ├── Makefile ├── do-syscall.c ├── do-syscall.h ├── instr.c ├── raw-syscalls.c ├── restorer.c ├── sigill.c ├── systrap_private.h ├── trap.c └── vdso.c └── test ├── Makefile ├── client └── Makefile ├── generic ├── Makefile ├── clone.c ├── gettimeofday.c ├── hello.c ├── read.c ├── shakespeare.txt ├── sigreturn.c ├── time.c ├── true-execve.c ├── truemk ├── truemk-execve.c ├── truesh ├── truesh-execve.c └── write.c ├── i386 └── Makefile ├── rules.mk ├── support ├── Makefile ├── x86-decode.c └── x86-operands.c └── x86_64 ├── Makefile ├── clone3.c ├── getpid.s └── true.s /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/.gitmodules -------------------------------------------------------------------------------- /.hgignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/.hgignore -------------------------------------------------------------------------------- /LICENSE.gpl3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/LICENSE.gpl3 -------------------------------------------------------------------------------- /LICENSE.lgpl3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/LICENSE.lgpl3 -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/README.md -------------------------------------------------------------------------------- /common.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/common.mk -------------------------------------------------------------------------------- /contrib/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/contrib/Makefile -------------------------------------------------------------------------------- /contrib/dlmalloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/contrib/dlmalloc.c -------------------------------------------------------------------------------- /example/.gdbinit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/.gdbinit -------------------------------------------------------------------------------- /example/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/Makefile -------------------------------------------------------------------------------- /example/bootstrap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/bootstrap.c -------------------------------------------------------------------------------- /example/chain-decls.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/chain-decls.h -------------------------------------------------------------------------------- /example/chain.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/chain.c -------------------------------------------------------------------------------- /example/chain.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/chain.h -------------------------------------------------------------------------------- /example/chain.inc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/chain.inc.c -------------------------------------------------------------------------------- /example/dynamic-list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/dynamic-list -------------------------------------------------------------------------------- /example/fake-tls.c: -------------------------------------------------------------------------------- 1 | int __wrap___init_tp(void *p) { return 0; } 2 | -------------------------------------------------------------------------------- /example/freebsd-syscall-macros.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/freebsd-syscall-macros.h -------------------------------------------------------------------------------- /example/pre-entry.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/pre-entry.c -------------------------------------------------------------------------------- /example/syscall-names.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/syscall-names.c -------------------------------------------------------------------------------- /example/syscall-names.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/syscall-names.h -------------------------------------------------------------------------------- /example/sysdeps/freebsd/trap-syscall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/sysdeps/freebsd/trap-syscall.c -------------------------------------------------------------------------------- /example/trace-syscalls.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/trace-syscalls.c -------------------------------------------------------------------------------- /example/trace-syscalls.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/trace-syscalls.h -------------------------------------------------------------------------------- /example/version-script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/version-script -------------------------------------------------------------------------------- /example/write-footprints.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/write-footprints.c -------------------------------------------------------------------------------- /example/write-footprints.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/example/write-footprints.h -------------------------------------------------------------------------------- /include/instr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/include/instr.h -------------------------------------------------------------------------------- /include/raw-syscalls-asm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/include/raw-syscalls-asm.h -------------------------------------------------------------------------------- /include/raw-syscalls-defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/include/raw-syscalls-defs.h -------------------------------------------------------------------------------- /include/raw-syscalls-impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/include/raw-syscalls-impl.h -------------------------------------------------------------------------------- /include/systrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/include/systrap.h -------------------------------------------------------------------------------- /lib/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/lib/Makefile -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/do-syscall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/do-syscall.c -------------------------------------------------------------------------------- /src/do-syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/do-syscall.h -------------------------------------------------------------------------------- /src/instr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/instr.c -------------------------------------------------------------------------------- /src/raw-syscalls.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/raw-syscalls.c -------------------------------------------------------------------------------- /src/restorer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/restorer.c -------------------------------------------------------------------------------- /src/sigill.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/sigill.c -------------------------------------------------------------------------------- /src/systrap_private.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/systrap_private.h -------------------------------------------------------------------------------- /src/trap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/trap.c -------------------------------------------------------------------------------- /src/vdso.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/src/vdso.c -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/Makefile -------------------------------------------------------------------------------- /test/client/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/client/Makefile -------------------------------------------------------------------------------- /test/generic/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/Makefile -------------------------------------------------------------------------------- /test/generic/clone.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/clone.c -------------------------------------------------------------------------------- /test/generic/gettimeofday.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/gettimeofday.c -------------------------------------------------------------------------------- /test/generic/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello, world!\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/generic/read.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/read.c -------------------------------------------------------------------------------- /test/generic/shakespeare.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/shakespeare.txt -------------------------------------------------------------------------------- /test/generic/sigreturn.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/sigreturn.c -------------------------------------------------------------------------------- /test/generic/time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/time.c -------------------------------------------------------------------------------- /test/generic/true-execve.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/true-execve.c -------------------------------------------------------------------------------- /test/generic/truemk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/truemk -------------------------------------------------------------------------------- /test/generic/truemk-execve.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/truemk-execve.c -------------------------------------------------------------------------------- /test/generic/truesh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | return 0 4 | -------------------------------------------------------------------------------- /test/generic/truesh-execve.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/truesh-execve.c -------------------------------------------------------------------------------- /test/generic/write.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/generic/write.c -------------------------------------------------------------------------------- /test/i386/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/i386/Makefile -------------------------------------------------------------------------------- /test/rules.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/rules.mk -------------------------------------------------------------------------------- /test/support/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/support/Makefile -------------------------------------------------------------------------------- /test/support/x86-decode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/support/x86-decode.c -------------------------------------------------------------------------------- /test/support/x86-operands.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/support/x86-operands.c -------------------------------------------------------------------------------- /test/x86_64/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/x86_64/Makefile -------------------------------------------------------------------------------- /test/x86_64/clone3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/x86_64/clone3.c -------------------------------------------------------------------------------- /test/x86_64/getpid.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/x86_64/getpid.s -------------------------------------------------------------------------------- /test/x86_64/true.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenrkell/libsystrap/HEAD/test/x86_64/true.s --------------------------------------------------------------------------------