CONTRIBUTING-SCRIPTS.md
If you want to contribute scripts to bcc, or improve your own bcc programs, great! Please read this first.
(Written by Brendan Gregg.)
bcc has 2 types of scripts, in different directories:
More detail for each below.
These are grouped into subdirectories (networking, tracing). Your example can either be a Python program with embedded C (eg, tracing/strlen_count.py), or separate Python and C files (eg, tracing/vfsreadlat.*).
As said earlier: keep it short, neat, and documented (code comments).
A checklist for bcc tool development:
from __future__ import absolute_import, division, print_function, unicode_literals helps make your script Python3-ready.