authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-26 21:19:16+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-26 18:21:10-07:00
log66b71273a2555da23f6d706c22e3d85f43fe602b
treeb7b2fc053942fe08f54f1d568e56ebed24b318df
parenteab934814f39c1fc1f6e3e2a4007cdcabda260e5

std.os.linux: Fix default value for perf_event_attr.clockid field.

Closes #20810.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+1-1
......@@ -7175,7 +7175,7 @@ pub const perf_event_attr = extern struct {
71757175 /// Defines size of the user stack to dump on samples.
71767176 sample_stack_user: u32 = 0,
71777177
7178 clockid: clockid_t = 0,
7178 clockid: clockid_t = .REALTIME,
71797179 /// Defines set of regs to dump for each sample
71807180 /// state captured on:
71817181 /// - precise = 0: PMU interrupt