From 013b30d22e3448d752f6cb86309f492a3539a5c5 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Thu, 30 May 2024 10:44:45 -0700 Subject: [PATCH] Move #ifdef BPF. --- src/PerfCounters.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PerfCounters.cc b/src/PerfCounters.cc index a46cec4df74..74675d965f6 100644 --- a/src/PerfCounters.cc +++ b/src/PerfCounters.cc @@ -1125,7 +1125,7 @@ Ticks PerfCounters::read_ticks(Task* t, Error* error) { return ret; } - +#ifdef BPF class BpfAccelerator { public: static std::shared_ptr get_or_create(); @@ -1161,7 +1161,6 @@ class BpfAccelerator { std::shared_ptr BpfAccelerator::singleton; -#ifdef BPF /* static */ std::shared_ptr BpfAccelerator::get_or_create() { static int initialized; if (BpfAccelerator::singleton) {