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

Wrap calls from ebpf_drv.c in epoch calls #2189

Merged
merged 4 commits into from
Mar 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
PR feedback
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed Mar 22, 2023
commit b340eca20b8b6a87005117638a9710fed9dffd69
4 changes: 1 addition & 3 deletions libs/platform/ebpf_epoch.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// If the stale flag is already set, then the per-CPU stale_worker is scheduled.
//
Alan-Jowett marked this conversation as resolved.
Show resolved Hide resolved
// Thread entry table:
// The thread entry is a fixed size per-CPU hash table for tracking per-thread ebpf_epoch_state_t. The hash is
// The thread entry table is a fixed size per-CPU hash table for tracking per-thread ebpf_epoch_state_t. The hash is
// based on the thread ID. The thread entry table is protected by a semaphore that limits the number of threads
// that can be active in the epoch at any one time. If a thread attempts to enter the epoch and the semaphore
// count is 0, then the thread blocks until a thread exits the epoch, which ensures that the thread entry table
Expand All @@ -59,8 +59,6 @@

#define EBPF_NANO_SECONDS_PER_FILETIME_TICK 100

#define EBPF_EPOCH_RESERVED_THREAD_ENTRY_COUNT 1

typedef struct _ebpf_epoch_state
{
int64_t epoch; // The highest epoch seen by this epoch state.
Expand Down