Skip to content

Commit

Permalink
fix build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessa Todorowski committed Jul 23, 2024
1 parent e66d04a commit 967f4fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/perf/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ void SysfsEvent::set_availability()
}
}

TimeEvent::TimeEvent(bool enable_on_exec, uint64_t addr) : PerfEvent(enable_on_exec)
TimeEvent::TimeEvent(bool enable_on_exec, [[maybe_unused]] uint64_t addr)
: PerfEvent(enable_on_exec)
{
attr_.exclude_kernel = 1;

Expand Down Expand Up @@ -268,9 +269,11 @@ RawEvent::RawEvent(bool enable_on_exec) : PerfEvent(enable_on_exec)
PerfEventInstance PerfEvent::open(std::variant<Cpu, Thread> location, int group_fd, int cgroup_fd)
{
return PerfEventInstance(*this, location, group_fd, cgroup_fd);
};
}

PerfEventInstance::PerfEventInstance() : fd_(-1){};
PerfEventInstance::PerfEventInstance() : fd_(-1)
{
}

PerfEventInstance::PerfEventInstance(PerfEvent& ev, std::variant<Cpu, Thread> location,
int group_fd, int cgroup_fd)
Expand Down

0 comments on commit 967f4fc

Please sign in to comment.