Skip to content

Should _ebpf_epoch_cpu_table[cpu_id].non_preemptible_epoch be split into entry/exit epochs? #442

Answered by Alan-Jowett
Alan-Jowett asked this question in Q&A
Discussion options

You must be logged in to vote

I think I know how to make this performant and a lot simpler:

  1. Only access _ebpf_epoch_cpu_table at IRQL = Dispatch.
  2. Only access _ebpf_epoch_cpu_table[current_cpu].

Given that IRQL = Dispatch implies non-preemption, this means the thread accessing _ebpf_epoch_cpu_table[current_cpu] always has exclusive access.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Alan-Jowett
Comment options

Answer selected by dthaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants