brendangregg / bpf-perf-tools-book

Official repository for the BPF Performance Tools book
1.61k stars 284 forks source link

bpftrace executable may not reside in /usr/local/bin/bpftrace #27

Open christian-2 opened 8 months ago

christian-2 commented 8 months ago

apt-get install bpftrace on Debian installs the executable /usr/bin/bpftrace whereas various scripts *.py assume /usr/local/bin/bpftrace.

The discrepancy should be solved by employing the generic shebang #!/usr/bin/env bpftrace instead of #!/usr/local/bin/bpftrace througout. Please let me know if I should submit a corresponding PR (following PR #26).