Commit Graph

6 Commits (5dc007caf5fe400534c74331590f09f8fdd46f89)

Author SHA1 Message Date
astoycos 5dc007caf5 aya: fix map_pin_path logic
If a user specifies map_pin_path then the maps should ALWAYS be
pinned by name at that path, or consumed from existing pins.

Add an integration test to verify this logic is functioning as
expected.

Signed-off-by: astoycos <astoycos@redhat.com>
1 year ago
astoycos 82039144bd integration-test: Add map pinning coverage
Add coverage to the new public api's for
map pinning (pin and unpin) which can be called
on the generic aya::Map type OR explit map types.

Additionally add coverage for the new libbpf
LIBBPF_PIN_BY_NAME behavior.

Signed-off-by: astoycos <astoycos@redhat.com>
1 year ago
Tamir Duberstein 0a144a0e69
integration-test: remove all sleeps 1 year ago
Tamir Duberstein 71bc3ea0b5
integration-test: avoid reliance on kernel headers
This should allow us to build on any system.
2 years ago
Tamir Duberstein 72afd877b5
integration-test: clang-format C files 2 years ago
Tamir Duberstein 8c61fc9ea6
integration-test: compile C probes using build.rs
- Add libbpf as a submodule. This prevents having to plumb its location
  around (which can't be passed to Cargo build scripts) and also
  controls the version against which codegen has run.
- Move bpf written in C to the integration-test crate and define
  constants for each probe.
- Remove magic; each C source file must be directly enumerated in the
  build script and in lib.rs.
2 years ago