Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

High performance: BPF performance Tools learning notes

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Note: BPF relies on a higher version of the linux kernel.

Recommended OS kernel version > = 4.1 (kernel version 4.9 or later is recommended)

You also need to enable some kernel configuration options. These options are now enabled by default in many distributions, so you don't usually need to change them. They are:

CONFIG_BPF=y, CONFIG_BPF_SYSCALL=y, CONFIG_BPF_JIT=y, CONFIG_HAVE_EBPF_JIT=y, CONFIG_BPF_EVENTS=y.

Take CentOS7.6 as an example to demonstrate the steps for installing executable files (for the installation of ubuntu, please refer to the url below. The steps are basically the same)

Bcc

Github address: after https://github.com/iovisor/bccyum install bcc-tools is installed, the binaries are in / usr/share/bcc/tools/ related documents in / usr/share/bcc/tools/doc/ Note: you need to import the path in / etc/profile, otherwise you will not find the series tools of bcc-tools by default.

Bpftrace

Github address: https://github.com/iovisor/bpftrace installation method curl https://repos.baslab.org/bpftools.repo-- output / etc/yum.repos.d/bpftools.repoyum install bpftrace bpftrace-tools.bt file path: / usr/share/bpftrace/tools document path is at: / usr/share/bpftrace/tools/doc

Bptool

Installation method yum install bpftool

After the above three steps, we can begin the journey of bpf debugging.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report