Quick Start Guide

Prerequisites

  • Linux system with kernel headers
  • Python 3.x
  • sudo privileges (required for BPF operations)
  • BPF Compiler Collection / BCC

You can execute these commands for BCC installation:

# Debian
echo deb http://cloudfront.debian.net/debian sid main >> /etc/apt/sources.list
sudo apt-get install -y bpfcc-tools libbpfcc libbpfcc-dev linux-headers-$(uname -r)

# Ubuntu
sudo apt-get install bpfcc-tools linux-headers-$(uname -r)

# Fedora
sudo dnf install bcc

# Arch
pacman -S bcc bcc-tools python-bcc

For more distros, visit the official BCC's installation guide

Basic Usages

Infinite tracing (Exit on demand)

sudo python3 iotrc.py 

Quick Start (30 Seconds Trace)

sudo python3 iotrc.py -d 30

Command Options

Core options

  • -d, --duration <seconds> - Duration to trace (default: indefinite)
  • -o, --output <directory> - Output directory (default: auto-generated)
  • -v, --verbose - Enable verbose logging
  • -a, --anonimize - Anonymize process and file names

Advance options

  • -b BPF_FILE, --bpf-file BPF_FILE - BPF C source file path
  • -p PAGE_CNT, --page-cnt PAGE_CNT - Number of pages for perf buffer (default 8)
  • -s SPLIT_THRESHOLD, --split_threshold SPLIT_THRESHOLD - Split threshold in seconds (default 1 day)
  • -a, --anonimize - Enable anonymization of process and file names
  • -uc, --uncompressed - Enable uncompressed output