Sync from SUSE:SLFO:1.1 bpf2go revision 4f69bdfb2101f828fc16c2cb39858b9f
This commit is contained in:
commit
a24c3cbc70
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
20
_service
Normal file
20
_service
Normal file
@ -0,0 +1,20 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/cilium/ebpf.git</param>
|
||||
<param name="filename">bpf2go</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="revision">v0.16.0</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual">
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="go_modules" mode="manual">
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/cilium/ebpf.git</param>
|
||||
<param name="changesrevision">061e86d8f5e99aa6f04d11a3807c8cacdbe7908b</param></service></servicedata>
|
BIN
bpf2go-0.16.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
bpf2go-0.16.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
63
bpf2go.changes
Normal file
63
bpf2go.changes
Normal file
@ -0,0 +1,63 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 20:11:23 UTC 2024 - Jeff Kowalczyk <jkowalczyk@suse.com>
|
||||
|
||||
- Initial package version 0.16.0:
|
||||
* map: remove misleading error message when creating without BTF
|
||||
* btf: fix panic when copying nil Type
|
||||
* program: deprecate LogSize and VerifierError.Truncated
|
||||
* map: do not allocate on lookup when key doesn't exist
|
||||
* fix a variety of Copy() problems
|
||||
* perf: do not add offline CPUs
|
||||
* info: make it harder to add backwards incompatible API
|
||||
* link: fix nil pointer dereference in AttachXDP
|
||||
* map: fix flaky TestMapIteratorAllocations
|
||||
* perf: fix panic when CPU is offline
|
||||
* cmd/bpf2go: make Nick Zavaritsky a reviewer
|
||||
* build(deps): bump certifi from 2024.6.2 to 2024.7.4 in /docs
|
||||
* program, btf: probe correct log buffer size
|
||||
* ci: fix golangci-lint
|
||||
* link: allow pinning uprobe multi links
|
||||
* build(deps): bump mkdocs-material from 9.5.26 to 9.5.27 in /docs
|
||||
* link: allow pinning perf event based links
|
||||
* bpf2go: export targets
|
||||
* bpf2go: export compilation
|
||||
* bpf2go: export binding generator
|
||||
* perf: rearrange fields to make locking of Reader clearer
|
||||
* perf, ringbuf: add Flush for manual Read/ReadInto wakeup
|
||||
* ringbuf: fix ring size reporting
|
||||
* docs: fix clipped headline on home page
|
||||
* examples: add tcx example
|
||||
* build(deps): bump urllib3 from 2.2.1 to 2.2.2 in /docs
|
||||
* map: add Map.Handle() method for retrieving a Map's type information
|
||||
* gh: try to group dependabot updates
|
||||
* map: fix TestMapBatch failing with ENOSPC for hash maps
|
||||
* build(deps): bump mkdocs-git-revision-date-localized-plugin in /docs
|
||||
* build(deps): bump mkdocs-git-authors-plugin from 0.8.0 to 0.9.0 in /docs
|
||||
* build(deps): bump golangci/golangci-lint-action from 5.1.0 to 6.0.1
|
||||
* build(deps): bump mkdocs-material from 9.5.20 to 9.5.26 in /docs
|
||||
* docs: add a section on examples
|
||||
* elf: turn BTF map_extra into ErrNotSupported
|
||||
* program: add RecursionMisses to access ProgramInfo recursion misses counter
|
||||
* link: add Info() method to all link types
|
||||
* ci: use stable-selftests tag
|
||||
* ci: debug sporadic vimto hang
|
||||
* link: add test suite for netkit
|
||||
* perf_event_open cpu should be -1 for valid PID
|
||||
* link: allow retrieving perf event file descriptor
|
||||
* perf: flush Record when deadline is exceeded
|
||||
* perf: opportunistically check all rings for data
|
||||
* epoll: fix eventFd.add
|
||||
* epoll: simplify timeout calculation
|
||||
* ci: ignore kprobe_multi test failures on arm64
|
||||
* ci: test against stable and mainline
|
||||
* ci: replace virtme with vimto
|
||||
* build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs
|
||||
* build(deps): bump mkdocs-git-revision-date-localized-plugin in /docs
|
||||
* build(deps): bump mkdocs-material from 9.5.16 to 9.5.20 in /docs
|
||||
* build(deps): bump golangci/golangci-lint-action from 4.0.0 to 5.1.0
|
||||
* build(deps): bump mkdocs from 1.5.3 to 1.6.0 in /docs
|
||||
* CI: switch from 6.7 to 6.8
|
||||
* features: Fix test `TestHaveProgramType/Extension` in kernel >=v6.8
|
||||
* gh: don't use code blocks in Bug report template
|
||||
* [go.mod] Change `go` directive to `1.21`
|
||||
* perf: clean up error handling and bare fds
|
57
bpf2go.spec
Normal file
57
bpf2go.spec
Normal file
@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package bpf2go
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: bpf2go
|
||||
Version: 0.16.0
|
||||
Release: 0
|
||||
Summary: CLI tool to read, modify, load and hook eBPF programs
|
||||
License: MIT
|
||||
Group: Productivity/Networking/System
|
||||
URL: https://github.com/cilium/ebpf
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
BuildRequires: golang(API) >= 1.22
|
||||
|
||||
%description
|
||||
bpf2go is a CLI tool to read, modify and load eBPF programs and attach them to
|
||||
various hooks in the Linux kernel.
|
||||
|
||||
https://ebpf-go.dev
|
||||
|
||||
%prep
|
||||
%autosetup -a 1
|
||||
|
||||
%build
|
||||
%ifnarch ppc64
|
||||
export GOFLAGS="-buildmode=pie"
|
||||
%endif
|
||||
go build ./cmd/%{name}
|
||||
|
||||
%check
|
||||
# execute the binary as a basic check
|
||||
./%{name} --help
|
||||
|
||||
%install
|
||||
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
BIN
vendor.tar.gz
(Stored with Git LFS)
Normal file
BIN
vendor.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user