Skip to content
Experimental system call tracer for Linux x86-64, written in Go
C Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gen Decode syscall numbers Nov 24, 2019
.gitignore Decode syscall numbers Nov 24, 2019
README.md Update installation instructions Nov 25, 2019
go.mod Switch to Modules Nov 24, 2019
go.sum Switch to Modules Nov 24, 2019
main.go Add flag Nov 24, 2019
syscall.go Decode syscall numbers Nov 24, 2019

README.md

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

$ 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:

$ ./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

$ go generate
$ go build
You can’t perform that action at this time.