Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Add bpf syscall interface #2

Merged
merged 19 commits into from May 24, 2021
Merged

Add bpf syscall interface #2

merged 19 commits into from May 24, 2021

Conversation

FridayOrtiz
Copy link
Contributor

Refactor bpf syscalls into their own module and implement the following calls:

  • perf_event_open
  • setns
  • ioctl(PERF_EVENT_IOC_SET_BPF)
  • ioctl(PERF_EVENT_IOC_ENABLE)
  • ioctl(PERF_EVENT_IOC_DISABLE)
  • bpf_prog_load
  • bpf_map_lookup_elem
  • bpf_map_update_elem
  • bpf_map_create

WIP while I add some docs and tests.

src/bpf/syscall.rs Outdated Show resolved Hide resolved
src/bpf/syscall.rs Outdated Show resolved Hide resolved
@bjackson41
Copy link
Contributor

at some point in time, we need to address warnings generated from cargo clippy. looks like most are unused warnings, but there are a few others in there.

src/bpf/syscall.rs Outdated Show resolved Hide resolved
@FridayOrtiz FridayOrtiz merged commit 140f282 into main May 24, 2021
@FridayOrtiz FridayOrtiz deleted the bpf-syscall-module branch May 24, 2021 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants