https://github.com/agis/gtrace
Experimental system call tracer for Linux x86-64, written in Go
https://github.com/agis/gtrace
golang strace syscalls systemcalls tracer
Last synced: about 1 year ago
JSON representation
Experimental system call tracer for Linux x86-64, written in Go
- Host: GitHub
- URL: https://github.com/agis/gtrace
- Owner: agis
- Created: 2017-02-11T23:19:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T11:33:58.000Z (over 5 years ago)
- Last Synced: 2025-03-29T10:33:35.636Z (about 1 year ago)
- Topics: golang, strace, syscalls, systemcalls, tracer
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 74
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gtrace
A system call tracer for Linux x86-64.
DISCLAIMER: This software is experimental and not considered stable. Do
not use it in mission-critical environments.
## Installation
```shell
$ go get -u github.com/agis/gtrace
```
## Usage
Currently only attaching to an already running process is supported. Also,
arguments are not decoded yet.
Attach to a process by specifying its pid:
```shell
$ ./gtrace -p 2602
Attached to process 2602...
futex = 0
write = 2
write = 1
futex = 0
write = 2
^C
```
## Feature work
- [ ] Decode arguments
- [ ] terminal GUI with live statistics/counters
- [ ] filter for certain syscalls
- [ ] ARM support
## Building
```shell
$ go generate
$ go build
```