Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the BCC tool? What are the characteristics?

Shulou Source: shulou.com Published: 2022-06-03 05:44:24 11月16日 Update

BCC contains documentation for tools, man pages, and sample files, as well as guidelines for using BCC tools, as well as guidelines and reference guides for BCC tool development. It provides interfaces for developing BCC tools in Python,C + + and lua (not shown); more interfaces may be added in the future.

The BCC toolset comes with many kernel-level features (such as PF,kprobes,uprobes) and a lot of user-level features (systemtap, etc.).

BCC tools have the following characteristics:

They solved the necessary problem of practical observability.

They are designed for root users to run in a production environment.

Each tool has a man page (under man / man8).

Each tool has a sample file that contains sample output and output instructions (under tools / * _ example.txt).

Many tools accept options and parameters, and if you use this-h option, most tools print a USAGE message.

The source code of the tool begins with an introduction to block comments.

The tool source code follows a consistent style (checked with the pep8 tool).

The development of BCC is still quite difficult, and we need to have a deep understanding of the kernel, so we won't go any further here.

Tags: Tools guides examples development related kernels functions manuals interfaces files source code users output consistency necessary parameters actual documentation more styles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Linux Shulou Information MySQL OPPO Reno