Commit Graph

171 Commits (d9b1506085f2ba36843e35f1dcbff3fd122289f7)
 

Author SHA1 Message Date
Tamir Duberstein d9b1506085
socket_filter: fix build
The signature of attach changed in
https://github.com/aya-rs/aya/pull/723.
Dave Tucker 599ba4bdf9
Merge pull request from dave-tucker/new-names
Dave Tucker 162599934c ci: Use taiki-e/install-action
This should binstall cargo-generate to save CI time

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker bccd6d3cb6 ebpf: Don't use name in macros
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Tamir Duberstein afdb45341f Remove branch specifications
The branch should be dictated by the repository.
Alessandro Decina d65e6d2bb6
Merge pull request from liyan-ah/main
Allow process to lock memory for eBPF resources.
liyan 288919127c
Update main.rs
liyan 2aeba1b85d
Update {{project-name}}/src/main.rs
Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
liyan c6ece63d97
Update main.rs
pdliyan 506ce7ec3d make warn info more informative.
pdliyan 0f4584ef7a remove whitespace.
pdliyan d22827603d remove white line.
pdliyan f3eb374c3e remove rlimit use.
pdliyan bc2db6b112 use libc instead of rlimit.
pdliyan f8639db35a add memlock remove.
dependabot[bot] d0e4a02fe2
Merge pull request from aya-rs/dependabot/github_actions/actions/checkout-3
dependabot[bot] 1a1d2b625e
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Tamir Duberstein b14a75f692 github: add dependabot
Tamir Duberstein 0c06a47bc2 Remove redundant instructions
We just need to install bpf-linker; the rest of this is already encoded
in rust-toolchain.toml.

Fixes .
Tamir Duberstein d6334c269a
github: add rust-cache
Fixes .
Alessandro Decina 69ea57ac54
Merge pull request from aya-rs/fix-tests
Fix sk_msg tests
Tamir Duberstein 3013ab506d
Fix sk_msg tests
These were broken by  which pulled in
https://github.com/aya-rs/aya/pull/397 and other changes which were not
reflected in the templates.
Arindam Das b45787c353
fix: fixes aya and aya-log version mismatch ()
Fixes aya and aya-log version mismatch between {{project-name}}-epbf and {{project-name}} crates.

Fixes https://github.com/aya-rs/aya/issues/565.
Alessandro Decina 8e92b72545
Merge pull request from tamird/actions-rs
Replace actions-rs/toolchain with dtolnay/rust-toolchain
Tamir Duberstein 37654a088e
Replace actions-rs/toolchain with dtolnay/rust-toolchain
See https://github.com/actions-rs/toolchain/issues/216; actions-rs seems
to be unmaintained.
Alessandro Decina 4ce0e28314
Merge pull request from dmitris/nightly-text
sync rustup nightly install directions with Book
Dmitry Savintsev 732b7ea930 sync run nightly install directions with Book
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
vadorovsky b00519ff0d
Merge pull request from dmitris/deps-upd
upgrade deps: tokio and anyhow
Dmitry Savintsev 715967772f upgrade deps: tokio and anyhow
Michal Rostecki 6a605e08dd
Merge pull request from dmitris/toml-space
minor space fix for VSCode toml formatting
Dmitry Savintsev 347d37c914 minor space fix for VSCode toml formatting
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Michal Rostecki 16b8d42238
Merge pull request from vadorovsky/unpin-nightly
Unpin Rust nightly
Michal Rostecki 11f406414e Unpin Rust nightly
The issues with core::sync::atomic got fixed.

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Michal Rostecki 80a7c5b53c
Merge pull request from dmitris/crossplat
Remove unix-specific executor in xtask
Dmitry Savintsev 7008f570b0 fail with descriptive message
Co-authored-by: Michal Rostecki <vadorovsky@gmail.com>
Dmitry Savintsev 255c59cf98 Remove unix-specific executor in xtask
Change unix-specific executor to generic one
to enable xtask working on Windows and eventually
be able to cross-compile on Windows.

Fixes .

Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Michal Rostecki e03b1f6979
Merge pull request from dmitris/fix-uprobe
Fix uprobe programs and VSCode spacing
Dmitry Savintsev 7016308147 fix uprobe programs
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Dmitry Savintsev 8cd95c42ea adjust spacing to avoid VSCode changes on save
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Michal Rostecki 999d98cc3d
Merge pull request from dmitris/deps-update
update anyhow, clap, and tokio
Dmitry Savintsev c6c4082093 update anyhow, clap, and tokio
Michal Rostecki fa404ffb26
Merge pull request from dmitris/fix-clippy
include and use clap only if needed
Dmitry Savintsev e7ccd1a71e include and use clap only if needed
Signed-off-by: Dmitry Savintsev <dsavints@gmail.com>
Michal Rostecki 224274f8a7
Merge pull request from lucab/ups/perf-event
cargo-generate: add perf_event
Luca BRUNO 554702e63d
cargo-generate: add perf_event
This adds `perf_event` program type as a template entry.
The new entry comes with a skeleton example which register
scheduled events on each CPU at 1 HZ, triggered by the kernel
(based on clock ticks). The corresponding BPF logic logs each
event, and can identify kernel tasks from userland processes.
Michal Rostecki 65091e30bc
Merge pull request from lucab/ups/fix-sorting
cargo-generate: sort program types
Luca BRUNO 463013a11e cargo-generate: sort program types
Michal Rostecki 7fe5a39b7c
Merge pull request from joshuataylor/feature/rust-toolchain-defaults
Add rust-src to -ebpf components
Michal Rostecki 3fdfd8b200 rust-toolchain: Add a comment about rust-src
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Josh Taylor 35d480a341 Add rust-src to components