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 snap install snapcraft --classic
9
10Clone the bcc repo (if you haven't done so already) and create the snap:
11
12 git clone https://github.com/iovisor/bcc.git
13 snapcraft
14
15Install the snap by running (`--dangerous` is required as the snap is
16not coming from the Snap Store):
17
18 sudo snap install --dangerous bcc_*.snap
19
20One may need to ensure the snap interfaces are connected for the snap
21using:
22
23 sudo snap connect bcc:mount-observe
24 sudo snap connect bcc:system-observe
25 sudo snap connect bcc:system-trace
26
27Now run a bcc tool, for example, to run opensnoop use:
28
29 sudo bcc.opensnoop
30
31Note that this may fail to build and run if you do not have the kernel
32headers installed or perhaps the kernel config is not set up correctly.
33
34This snap has been tested using the mainly 4.8 and 4.9 kernels built
35with the Ubuntu Yakkety and Zesty kernel configs as well as the default
36Ubuntu 4.8 Yakkey and 4.9 Zesty kernels.
37
38Contact Colin Ian King <[email protected]> for support on this
39bcc snap.
40
41Thu 15 Dec 17:08:29 GMT 2016
42