Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UM API to write into a ring buffer map. #3689

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

shankarseal
Copy link
Collaborator

Description

Fixes #3572.

Add a new API in eBPF API.dll to write into a ring buffer map from user mode. This API issues an IOCTL which calls bpf_ring_buffer_output function to write user specified data into the ring buffer.

Testing

Updated unit and api tests to write messages into ring buffer interleaved with events that invoke eBPF programs (which in turn write into the same ring buffer).

Documentation

No documentation impact.

Installation

No installation impact.

include/ebpf_api.h Show resolved Hide resolved
include/ebpf_api.h Outdated Show resolved Hide resolved
tests/libs/common/common_tests.cpp Show resolved Hide resolved
libs/execution_context/ebpf_core.c Show resolved Hide resolved
ebpfapi/Source.def Outdated Show resolved Hide resolved
Copy link
Member

@Alan-Jowett Alan-Jowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to validate the request.

@shankarseal shankarseal added this pull request to the merge queue Jul 17, 2024
Merged via the queue into microsoft:main with commit 6b75459 Jul 17, 2024
88 checks passed
@shankarseal shankarseal deleted the rb_out_api branch July 17, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New eBPF API to insert events into ring buffer eBPF map.
4 participants