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

Use PERF_EVENT_ARRAY instead of BPF_QUEUE for old kernels #4

Merged
merged 3 commits into from
Mar 15, 2023

Conversation

jschwinger233
Copy link
Owner

@jschwinger233 jschwinger233 commented Mar 15, 2023

BPF_QUEUE is available only for kernel >= 4.20, however I am still facing triage task for 4.19.

In this PR I also introduced BpfObjects interface to hide the bpf implementation details and user doesn't need to know which output mechanism is used.

What's more, using perf buffer can also lift max payload size limit.

Actually I have some followup to do:

  1. automatic endian detect
  2. automatic output mechanism choosing
  3. perf lost events statistics

But not now, let's merge this for the interest of kernel 419.

@jschwinger233 jschwinger233 merged commit 6775289 into main Mar 15, 2023
@jschwinger233 jschwinger233 deleted the gray/perf-output branch March 15, 2023 09:21
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.

1 participant