Skip to content

Commit

Permalink
Move #ifdef BPF.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed May 30, 2024
1 parent fccb968 commit 013b30d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ Ticks PerfCounters::read_ticks(Task* t, Error* error) {
return ret;
}


#ifdef BPF
class BpfAccelerator {
public:
static std::shared_ptr<BpfAccelerator> get_or_create();
Expand Down Expand Up @@ -1161,7 +1161,6 @@ class BpfAccelerator {

std::shared_ptr<BpfAccelerator> BpfAccelerator::singleton;

#ifdef BPF
/* static */ std::shared_ptr<BpfAccelerator> BpfAccelerator::get_or_create() {
static int initialized;
if (BpfAccelerator::singleton) {
Expand Down

0 comments on commit 013b30d

Please sign in to comment.