Skip to content

Commit 66b7127

Browse files
alexrpandrewrk
authored andcommitted
std.os.linux: Fix default value for perf_event_attr.clockid field.
Closes #20810.
1 parent eab9348 commit 66b7127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/linux.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)