{"repo":"kxxt/tracexec","free":true,"listed":false,"github":"https://github.com/kxxt/tracexec","clone":"git clone https://github.com/kxxt/tracexec.git","description":"Tracer for execve{,at} and pre-exec behavior, launcher for debuggers.","language":"Rust","stars":437,"topics":["command-line-tool","execve","ptrace","strace","tracer","tracexec","debugger","exec","tui","ebpf"],"license":"GPL-2.0","category":"cli-tools","readme_excerpt":"tracexec A small utility for tracing execve{,at} and pre-exec behavior. tracexec helps you to figure out what and how programs get executed when you execute a command. It's useful for debugging build systems, understanding what shell scripts actually do, figuring out what programs does a proprietary software run, etc. - Installation Guide Showcases Perfetto Trace Export tracexec supports exporting exec traces to perfetto trace format, which could be viewed in the Perfetto UI. The trace follows a tree format in the UI, where processes resulting from successful execs are represented as slices and exec failures are represented as instant events. The following video shows analyzing the build process of tracexec with itself: https://github.com/user-attachments/assets/fc825d55-eb2f-43cd-b454-a11b5f9b44bc The shape of the traces in the Perfetto UI could give you a rough idea of how parallel the build is at process-level. The trace tree and details of slices enable identification of bottlenecks, troubleshooting, and a deep understanding of how the build works. Start collecting a perfetto trace with the following command: TUI mode with pseudo terminal TUI mode allocates a pseudo terminal by default, allowing you to view the details of exec events and interact with the processes within the pseudo terminal. Use --no-tty when a pseudo terminal is not wanted; the tracee's stdin, stdout, and stderr will be redirected to /dev/null . Tracing setuid binaries With root privileges, you can also","default_branch":null,"files":null,"tree":[],"storefront":"/r/kxxt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kxxt/tracexec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}