Skip to content

Use PERF_EVENT_ARRAY instead of BPF_QUEUE for old kernels#4

Merged
jschwinger233 merged 3 commits intomainfrom
gray/perf-output
Mar 15, 2023
Merged

Use PERF_EVENT_ARRAY instead of BPF_QUEUE for old kernels#4
jschwinger233 merged 3 commits intomainfrom
gray/perf-output

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