From 1b357e6439f8488844ae7df530c2f08f1bd12e97 Mon Sep 17 00:00:00 2001 From: Alan Jowett Date: Thu, 10 Oct 2024 11:36:44 -0700 Subject: [PATCH] Fix build break Signed-off-by: Alan Jowett --- libs/runtime/ebpf_epoch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/runtime/ebpf_epoch.c b/libs/runtime/ebpf_epoch.c index 8ee18a2a58..34f694662a 100644 --- a/libs/runtime/ebpf_epoch.c +++ b/libs/runtime/ebpf_epoch.c @@ -351,8 +351,8 @@ ebpf_epoch_initiate() // Set the current thread affinity to CPU 0. // This could fail if the system is preventing the thread from moving to CPU 0. - uintptr_t old_thread_affinity; - return_value = ebpf_set_current_thread_affinity(1 >> 0, &old_thread_affinity); + GROUP_AFFINITY old_thread_affinity; + return_value = ebpf_set_current_thread_cpu_affinity(0, &old_thread_affinity); if (return_value != EBPF_SUCCESS) { goto Error; } @@ -365,7 +365,7 @@ ebpf_epoch_initiate() KeLowerIrql(old_irql); // Restore the thread affinity. Can't fail at this point. - ebpf_restore_current_thread_affinity(old_thread_affinity); + ebpf_restore_current_thread_cpu_affinity(&old_thread_affinity); KeInitializeDpc(&_ebpf_epoch_timer_dpc, _ebpf_epoch_timer_worker, NULL); KeSetTargetProcessorDpc(&_ebpf_epoch_timer_dpc, 0);