Skip to content

Tags: aquasecurity/libbpfgo

Tags

v0.7.0-libbpf-1.4

Toggle v0.7.0-libbpf-1.4's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
add comment with tc opts values origin

v0.6.0-libbpf-1.3

Toggle v0.6.0-libbpf-1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 in /helpers (#…

…393)

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.14.0 to 0.15.0.
- [Commits](golang/sys@v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v0.5.1-libbpf-1.2

Toggle v0.5.1-libbpf-1.2's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
feat(map): Introduce GetMapsIDsByName

Allow a user to get a list of maps IDs filtered by map name.

Co-authored-by: Geyslan Gregório <[email protected]>

v0.5.0-libbpf-1.2

Toggle v0.5.0-libbpf-1.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
build(deps): bump actions/checkout from 3 to 4 (#376)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

v0.4.9-libbpf-1.2.0

Toggle v0.4.9-libbpf-1.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
error: consider errno as a return value (#332)

CGo provide us a way to get errno value from C code as a return value,
so it's always a good idea to make use of it.

v0.4.8.1-libbpf-1.2.0

Toggle v0.4.8.1-libbpf-1.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix double-free in `NewModuleFromBufferArgs` (#327)

In
0238ec3
the freeing of C strings was changed to use defers. This can cause a
double-free, which in the best case it will produce a crash. The reason
why this happens is that the memory address at `defer` time is captured
for later execution. If `KConfigFilePath` is less than 3, it was being
freed and set to NULL. Once the defer executes on function return, the
same address we already freed will be passed again.

We observed this while upgrading libbpfgo in Parca Agent
(parca-dev/parca-agent#1599).

Signed-off-by: Francisco Javier Honduvilla Coto <[email protected]>

v0.4.8-libbpf-1.2.0

Toggle v0.4.8-libbpf-1.2.0's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
chore: call bpf_object__open_mem from go

This changes libbpfgo to call bpf_object__open_mem directly from go
instead of doing this via a C wrapper. What this means is that we
maintained opts creation in C, but the actual libbpf object open call
is done in go.

This creates two new functions in libbpfgo.h as helpers:
- bpf_object_open_opts_new()
- bpf_object_open_opts_free()

Context: #304

Additionally, this commit enforces the use of defer and resolves a
potential CKconfigPath leak when len(args.KConfigFilePath) is > 2.

v0.4.7-libbpf-1.1.0-41-gb2e29a1

Toggle v0.4.7-libbpf-1.1.0-41-gb2e29a1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add explicit timeout to perf + ring buffer polling (#309)

Right now it's hardcoded to 300ms which might not work for every
use-case. Having it as a parameter allows users to decide their tradeoff
between latency and overhead.

Signed-off-by: Francisco Javier Honduvilla Coto <[email protected]>

v0.4.6-libbpf-1.1.0

Toggle v0.4.6-libbpf-1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
logger_cb: remove default callbacks (#294)

The logic related to filtering by callbacks must be a decision of the
library consumers, as it is not possible to know which is the best
strategy for each case.

This also adds to the related selftest other example that shows how to
filter using callbacks.

Be warned that if filters are not defined via callbacks, all output is
passed to logFallback() which outputs to stderr.

v0.4.5-libbpf-1.0.1

Toggle v0.4.5-libbpf-1.0.1's commit message
selftest: poc for multiple BPF objects that share a ringbuffer