add the bpftrace package
This commit is contained in:
parent
11f49b3501
commit
abd1b8dc1f
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# bpftrace
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
High-level tracing language for Linux eBPF
|
|
||||||
|
|
||||||
#### 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/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# bpftrace
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
High-level tracing language for Linux eBPF
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
bpftrace-0.10.0.tar.gz
Normal file
BIN
bpftrace-0.10.0.tar.gz
Normal file
Binary file not shown.
66
bpftrace.spec
Normal file
66
bpftrace.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
Name: bpftrace
|
||||||
|
Version: 0.10.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: High-level tracing language for Linux eBPF
|
||||||
|
License: ASL 2.0
|
||||||
|
|
||||||
|
URL: https://github.com/iovisor/bpftrace
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# Arches will be included as upstream support is added and dependencies are
|
||||||
|
# satisfied in the respective arches
|
||||||
|
ExclusiveArch: x86_64 %{power64} aarch64
|
||||||
|
|
||||||
|
BuildRequires: gcc-c++ bison flex cmake elfutils-libelf-devel
|
||||||
|
BuildRequires: zlib-devel llvm-devel clang-devel
|
||||||
|
BuildRequires: bcc-devel >= 0.11.0-2
|
||||||
|
BuildRequires: libbpf-devel libbpf-static
|
||||||
|
BuildRequires: binutils-devel
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
bpftrace is a high-level tracing language for Linux enhanced Berkeley Packet
|
||||||
|
Filter (eBPF) available in recent Linux kernels (4.x). bpftrace uses LLVM as a
|
||||||
|
backend to compile scripts to BPF-bytecode and makes use of BCC for
|
||||||
|
interacting with the Linux BPF system, as well as existing Linux tracing
|
||||||
|
capabilities: kernel dynamic tracing (kprobes), user-level dynamic tracing
|
||||||
|
(uprobes), and tracepoints. The BPFtrace language is inspired by awk and C,
|
||||||
|
and predecessor tracers such as DTrace and SystemTap.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake . \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DBUILD_TESTING:BOOL=OFF \
|
||||||
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
||||||
|
-DLIBBCC_LIBRARIES:PATH=/usr/lib64/libbcc-no-libbpf.so
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
|
||||||
|
sed -i -e '1s=^#!/usr/bin/env %{name}\([0-9.]\+\)\?$=#!%{_bindir}/%{name}=' {} \;
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md CONTRIBUTING-TOOLS.md
|
||||||
|
%doc docs/reference_guide.md docs/tutorial_one_liners.md
|
||||||
|
%license LICENSE
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/tools
|
||||||
|
%dir %{_datadir}/%{name}/tools/doc
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
%attr(0755,-,-) %{_datadir}/%{name}/tools/*.bt
|
||||||
|
%{_datadir}/%{name}/tools/doc/*.txt
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu May 07 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.10.0-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user