README.md
1# bcc snap
2
3This is an unconfined snap of the BPF Compiler Collection (BCC), a toolkit for
4creating efficient kernel tracing and manipulation programs.
5
6First, install snapcraft, e.g. on Ubuntu:
7
8sudo apt install snapcraft
9
10Clone the bcc repo (if you haven't done so already) and create the snap:
11
12git clone https://github.com/iovisor/bcc.git
13cd snapcraft
14make
15
16Note: running `make` just gets the version from the current bcc gito
17repository and uses this in the snapcraft yaml file to version the bcc
18snap. The Makefile basically runs snapcraft to snap up bcc.
19
20Install the snap by running:
21
22sudo snap install --devmode bcc_*.snap
23
24One may need to ensure the snap plugins are enabled for the snap using:
25
26sudo snap connect bcc:mount-observe
27sudo snap connect bcc:system-observe
28sudo snap connect bcc:system-trace
29
30Now run a bcc tool, for example, to run opensnoop use:
31
32sudo bcc.opensnoop
33
34Note that this may fail to build and run if you do not have the kernel
35headers installed or perhaps the kernel config is not set up correctly.
36
37This snap has been tested using the mainly 4.8 and 4.9 kernels built
38with the Ubuntu Yakkety and Zesty kernel configs as well as the default
39Ubuntu 4.8 Yakkey and 4.9 Zesty kernels.
40
41Contact Colin Ian King <colin.king@canonical.com> for support on this
42bcc snap.
43
44Thu 15 Dec 17:08:29 GMT 2016
45