eBPF Talk: tracepoint __data_loc

书接上回:eBPF Talk: trace tracepoint 程序,本文将介绍在 bpf 里如何处理 tracepoint 中 __data_loc 描述的字段。 关于 tracepoint __data_loc 的资料超级少,网络上能找到的资料如下: tracepoint arguments are missing __data_loc char strings tracepoint: Support __data_loc fields

eBPF Talk: trace tracepoint 程序

此处指的是 trace tracepoint bpf 程序,而不是 trace tracepoint 事件。 eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace kprobe 程序 eBPF Talk: trace tracepoint 程序 trace tracepoint 程

eBPF Talk: trace kprobe 程序

此处指的是 trace kprobe bpf 程序,而不是 trace kprobe 事件。 eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace kprobe 程序 eBPF Talk: trace tracepoint 程序 trace kprobe 程

eBPF Talk: trace tailcall 程序?NO!

既然可以对 freplace 程序进行 trace,是否可以对 tailcall 程序进行 trace 呢? eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace kprobe 程

eBPF Talk: trace freplace 程序

既然可以对 bpf2bpf 函数调用进行 trace,是否可以对 freplace 程序进行 trace 呢? eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace

eBPF Talk: trace bpf2bpf 函数调用

如 trace XDP/tc-bpf 程序,bpf2bpf 函数调用也是可以被 trace 的。 eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace kprobe 程序 eBPF Talk: trace

eBPF Talk: trace tc-bpf 程序

如 eBPF Talk: trace XDP 程序,使用 bpf 也是能够对 tc-bpf 程序进行 trace 的。 eBPF Talk: trace XDP 程序 eBPF Talk: trace tc-bpf 程序 eBPF Talk: trace bpf2bpf 函数调用 eBPF Talk: trace freplace 程序 eBPF Talk: trace tailcall 程序?NO! eBPF Talk: trace kprobe 程序 eBPF Talk: trace tracepoint

eBPF Talk: trace XDP 程序

在 XDP 程序运行起来后,特别是在生产环境中,有没有办法去观察它的运行情况呢?特别是 XDP 程序的最终结果。 将问题泛化一下,即有没有办法去 trace bpf 程序? TL;DR 有

eBPF Talk: Ubuntu 23.04

Ubuntu 23.04 已在 4 月 20 日发布,可以到官网下载镜像安装到虚拟机,用来学习 eBPF。 Ubuntu 23.04 (Lunar Lobster) 使用的内核版本是 6.2.0-20-generic。 Ubuntu 23.04 的相关