Home | History | Annotate | only in /external/bcc/snapcraft
Up to higher level directory
NameDateSize
Makefile22-Oct-20201.4K
README.md22-Oct-20201.3K
snapcraft.yaml22-Oct-20209.5K
wrapper22-Oct-2020405

README.md

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