From ac97ed95c4de8689a2bf6cf221861bf4c49f8de9 Mon Sep 17 00:00:00 2001 From: yunwei37 Date: Wed, 17 Jan 2024 20:56:47 +0000 Subject: [PATCH] update original tutorial link --- src/bpftrace-tutorial/README.md | 4 +++- src/bpftrace-tutorial/README_en.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bpftrace-tutorial/README.md b/src/bpftrace-tutorial/README.md index 7d6a901..010f506 100644 --- a/src/bpftrace-tutorial/README.md +++ b/src/bpftrace-tutorial/README.md @@ -319,4 +319,6 @@ open path: retrans_time_ms bpftrace对内核结构跟踪的支持和bcc是一样的,允许使用内核头文件。这意味着大多数结构是可用的,但是并不是所有的,有时需要手动增加某些结构的声明。例如这个例子,见[dcsnoop tool](https://github.com/iovisor/bpftrace/blob/master/docs/../tools/dcsnoop.bt),包含struct nameidata的声明。倘若内核有提供BTF数据,则所有结构都可用。 -现在,你已经理解了bpftrace的大部分功能,你可以开始使用和编写强大的一行命令。查阅[参考手册](https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md)更多的功能。 \ No newline at end of file +现在,你已经理解了bpftrace的大部分功能,你可以开始使用和编写强大的一行命令。查阅[参考手册](https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md)更多的功能。 + +> 原文地址:https://github.com/iovisor/bpftrace/blob/master/docs diff --git a/src/bpftrace-tutorial/README_en.md b/src/bpftrace-tutorial/README_en.md index 9459696..bb5788b 100644 --- a/src/bpftrace-tutorial/README_en.md +++ b/src/bpftrace-tutorial/README_en.md @@ -323,4 +323,6 @@ This uses kernel dynamic tracing of the vfs_open() function, which has a (struct The kernel struct support is the same as bcc, making use of kernel headers. This means that many structs are available, but not everything, and sometimes it might be necessary to manually include a struct. For an example of this, see the [dcsnoop tool](https://github.com/iovisor/bpftrace/blob/master/docs/../tools/dcsnoop.bt), which includes a portion of struct nameidata manually as it wasn't in the available headers. If the kernel has BTF data, all kernel structs are always available. -At this point you understand much of bpftrace, and can begin to use and write powerful one-liners. See the [Reference Guide](https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md) for more capabilities. \ No newline at end of file +At this point you understand much of bpftrace, and can begin to use and write powerful one-liners. See the [Reference Guide](https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md) for more capabilities. + +> The original tutorial link: https://github.com/iovisor/bpftrace/blob/master/docs/