mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
use linux.perf_event_open directly
This commit is contained in:
parent
5c0d58b71f
commit
a817e27c7d
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user