mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
use linux.perf_event_open directly
This commit is contained in:
parent
5c0d58b71f
commit
a817e27c7d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue