├── .gitignore ├── LICENSE.md ├── README.md ├── example_pictures ├── aarch64_user.jpg ├── aarch64_w_or_x.jpg ├── aarch64_x.jpg ├── cache_list.jpg ├── x86_64_exec_filter.jpg └── x86_64_user_space.jpg ├── pt.py ├── pt ├── __init__.py ├── machine.py ├── pt.py ├── pt_aarch64_definitions.py ├── pt_aarch64_parse.py ├── pt_arch_backend.py ├── pt_common.py ├── pt_constants.py ├── pt_register.py ├── pt_riscv64_parse.py ├── pt_x86_64_definitions.py ├── pt_x86_64_parse.py └── pt_x86_msr.py ├── pt_gdb ├── __init__.py └── pt_gdb.py ├── pt_host.py ├── pt_host ├── pt_host_read_cr3.bcc └── pt_host_read_physmem.bcc ├── pyproject.toml └── tests └── integration_tests ├── Dockerfile.package ├── Dockerfile.runtests ├── Makefile ├── build_package.sh ├── common.sh ├── custom_kernels ├── .gitignore ├── arm │ └── 64_bit │ │ ├── Makefile │ │ ├── boot.asm │ │ ├── entry.c │ │ └── linker.ld ├── common │ └── common.h └── x86 │ ├── 64_bit │ ├── Makefile │ ├── boot.asm │ ├── entry.c │ └── linker.ld │ └── common │ └── common_x86.h ├── pt_utils.py ├── run_integration_tests.py ├── run_tests.sh └── vm_utils.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | __pycache__ 3 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/README.md -------------------------------------------------------------------------------- /example_pictures/aarch64_user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/aarch64_user.jpg -------------------------------------------------------------------------------- /example_pictures/aarch64_w_or_x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/aarch64_w_or_x.jpg -------------------------------------------------------------------------------- /example_pictures/aarch64_x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/aarch64_x.jpg -------------------------------------------------------------------------------- /example_pictures/cache_list.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/cache_list.jpg -------------------------------------------------------------------------------- /example_pictures/x86_64_exec_filter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/x86_64_exec_filter.jpg -------------------------------------------------------------------------------- /example_pictures/x86_64_user_space.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/example_pictures/x86_64_user_space.jpg -------------------------------------------------------------------------------- /pt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt.py -------------------------------------------------------------------------------- /pt/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pt/machine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/machine.py -------------------------------------------------------------------------------- /pt/pt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt.py -------------------------------------------------------------------------------- /pt/pt_aarch64_definitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_aarch64_definitions.py -------------------------------------------------------------------------------- /pt/pt_aarch64_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_aarch64_parse.py -------------------------------------------------------------------------------- /pt/pt_arch_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_arch_backend.py -------------------------------------------------------------------------------- /pt/pt_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_common.py -------------------------------------------------------------------------------- /pt/pt_constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_constants.py -------------------------------------------------------------------------------- /pt/pt_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_register.py -------------------------------------------------------------------------------- /pt/pt_riscv64_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_riscv64_parse.py -------------------------------------------------------------------------------- /pt/pt_x86_64_definitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_x86_64_definitions.py -------------------------------------------------------------------------------- /pt/pt_x86_64_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_x86_64_parse.py -------------------------------------------------------------------------------- /pt/pt_x86_msr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt/pt_x86_msr.py -------------------------------------------------------------------------------- /pt_gdb/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt_gdb/__init__.py -------------------------------------------------------------------------------- /pt_gdb/pt_gdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt_gdb/pt_gdb.py -------------------------------------------------------------------------------- /pt_host.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt_host.py -------------------------------------------------------------------------------- /pt_host/pt_host_read_cr3.bcc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt_host/pt_host_read_cr3.bcc -------------------------------------------------------------------------------- /pt_host/pt_host_read_physmem.bcc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pt_host/pt_host_read_physmem.bcc -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/integration_tests/Dockerfile.package: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/Dockerfile.package -------------------------------------------------------------------------------- /tests/integration_tests/Dockerfile.runtests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/Dockerfile.runtests -------------------------------------------------------------------------------- /tests/integration_tests/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/Makefile -------------------------------------------------------------------------------- /tests/integration_tests/build_package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/build_package.sh -------------------------------------------------------------------------------- /tests/integration_tests/common.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/common.sh -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.bin 3 | *.elf 4 | -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/arm/64_bit/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/arm/64_bit/Makefile -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/arm/64_bit/boot.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/arm/64_bit/boot.asm -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/arm/64_bit/entry.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/arm/64_bit/entry.c -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/arm/64_bit/linker.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/arm/64_bit/linker.ld -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/common/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/common/common.h -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/x86/64_bit/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/x86/64_bit/Makefile -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/x86/64_bit/boot.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/x86/64_bit/boot.asm -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/x86/64_bit/entry.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/x86/64_bit/entry.c -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/x86/64_bit/linker.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/x86/64_bit/linker.ld -------------------------------------------------------------------------------- /tests/integration_tests/custom_kernels/x86/common/common_x86.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/custom_kernels/x86/common/common_x86.h -------------------------------------------------------------------------------- /tests/integration_tests/pt_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/pt_utils.py -------------------------------------------------------------------------------- /tests/integration_tests/run_integration_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/run_integration_tests.py -------------------------------------------------------------------------------- /tests/integration_tests/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/run_tests.sh -------------------------------------------------------------------------------- /tests/integration_tests/vm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinradev/gdb-pt-dump/HEAD/tests/integration_tests/vm_utils.py --------------------------------------------------------------------------------