How to install bpftrace
on Kubuntu

bpftrace

bpftrace

Colin King (cking-kernel-tools)

high-level tracing language for Linux eBPF

BPFtrace is a high-level tracing language for Linux enhanced Berkeley Packet Filter available in recent Linux kernels. BPFtrace uses LLVM as a backend to compile scripts to BPF-bytecode and makes use of BCC for interacting with the Linux BPF system, as well as existing Linux tracing capabilities: kernel dynamic tracing, user-level dynamic tracing and tracepoints.

Install from the command line using:

sudo snap install bpftrace
sudo snap connect bpftrace:system-trace

For more information, visit:

https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md https://github.com/iovisor/bpftrace/blob/master/docs/tutorial_one_liners.md

Details for bpftrace

License
Apache-2.0
Last updated
2 August 2019

Enable snaps on Kubuntu and install bpftrace

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

If you’re running Kubuntu 16.04 LTS (Xenial Xerus) or later, including Kubuntu 18.04 LTS (Bionic Beaver) and Kubuntu 18.10 (Cosmic Cuttlefish), you don’t need to do anything. Snap is already installed and ready to go.

Versions of Kubuntu between 14.04 LTS (Trusty Tahr) and 15.10 (Wily Werewolf) don’t include snap by default, but snap can be installed from the command line as follows:

sudo apt update sudo apt install snapd

Install bpftrace

To install bpftrace, simply use the following command:

Other popular snaps…

See more...
See more in Featured

More things to do…

Get the snap store

Browse and find snaps from the convenience of your desktop using the snap store snap.

Learn more about snaps

Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.