From 606806eb98da441878e87385acff9fa84fd94770 Mon Sep 17 00:00:00 2001 From: Chenshi Date: Thu, 10 Nov 2022 22:36:11 +0800 Subject: [PATCH] update readme.md Signed-off-by: Chenshi --- README.en.md | 36 ------------------------------------ README_zh.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 36 deletions(-) delete mode 100644 README.en.md create mode 100644 README_zh.md diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 5c784f9..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# third_party_libbpf - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README_zh.md b/README_zh.md new file mode 100644 index 0000000..b5179e8 --- /dev/null +++ b/README_zh.md @@ -0,0 +1,45 @@ +# libbpf + +仓库包含三方开源软件libbpf,libbpf是eBPF技术的一种实现,开发人员可以基于libbpf开发eBPF程序,可用于网络过滤、程序跟踪、性能分析以及调试等场景。 + +‍ + +# 目录结构 + +``` +docs/ 文档 +fuzz/ fuzz测试 +include/ 头文件 +scripts/ 脚本 +src/ 源文件 +LICENSE 证书文件 +README.md 英文说明 +README_zh.md 中文说明 +``` + +# OpenHarmony如何集成libbpf + +## 1.头文件引入 + +``` +#include "libbpf.h" +#include "bpf.h" +``` + +## 2.BUILD.gn添加引用 + +``` +deps += ["//third_party/libbpf:libbpf"] +``` + +# libbpf相关知识文档 + +bpf参考指南[https://nakryiko.com/posts/bpf-core-reference-guide/](https://nakryiko.com/posts/bpf-core-reference-guide/) + +libbpf开发教程[https://nakryiko.com/posts/bcc-to-libbpf-howto-guide/](https://nakryiko.com/posts/bcc-to-libbpf-howto-guide/) + +# License + +`SPDX-License-Identifier: BSD-2-Clause OR LGPL-2.1` + +‍ -- Gitee