Skip to content

Commit

Permalink
use linux.perf_event_open directly
Browse files Browse the repository at this point in the history
  • Loading branch information
xdBronch authored and Vexu committed Dec 11, 2023
1 parent 5c0d58b commit a817e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/os.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7271,7 +7271,7 @@ pub fn perf_event_open(
group_fd: fd_t,
flags: usize,
) PerfEventOpenError!fd_t {
const rc = system.perf_event_open(attr, pid, cpu, group_fd, flags);
const rc = linux.perf_event_open(attr, pid, cpu, group_fd, flags);
switch (errno(rc)) {
.SUCCESS => return @as(fd_t, @intCast(rc)),
.@"2BIG" => return error.TooBig,
Expand Down

0 comments on commit a817e27

Please sign in to comment.