diff options
| author | flga <flga@users.noreply.github.com> | 2023-11-10 12:58:53 +0000 |
|---|---|---|
| committer | flga <flga@users.noreply.github.com> | 2023-11-10 12:58:53 +0000 |
| commit | 6de2b7700fc646f67668febd814a8712a50b609e (patch) | |
| tree | 8e26e1f7e780d015946cbec1c99dbec5088551b2 /core/sys/linux | |
| parent | 70c1f9d0e19a4b97c03308de8f2b9c0c28ba4cf1 (diff) | |
core:sys/linux: make Perf_Read_Format a bitset
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/bits.odin | 2 | ||||
| -rw-r--r-- | core/sys/linux/types.odin | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin index 0cf90ed3b..1ca60d494 100644 --- a/core/sys/linux/bits.odin +++ b/core/sys/linux/bits.odin @@ -718,7 +718,7 @@ Perf_Event_Sample_Type_Bits :: enum { } /// Describes field sets to include in mmaped page -Perf_Read_Format :: enum { +Perf_Read_Format_Bits :: enum { TOTAL_TIME_ENABLED = 0, TOTAL_TIME_RUNNING = 1, ID = 2, diff --git a/core/sys/linux/types.odin b/core/sys/linux/types.odin index 8789ca2d1..308b77aee 100644 --- a/core/sys/linux/types.odin +++ b/core/sys/linux/types.odin @@ -282,6 +282,7 @@ Get_Random_Flags :: bit_set[Get_Random_Flags_Bits; i32] Perf_Flags :: bit_set[Perf_Flags_Bits; uint] Perf_Event_Flags :: distinct bit_set[Perf_Event_Flags_Bits; u64] +Perf_Read_Format_Flags :: distinct bit_set[Perf_Read_Format_Bits; u64] Perf_Cap_Flags :: distinct bit_set[Perf_Cap_Flags_Bits; u64] @@ -305,7 +306,7 @@ Perf_Event_Attr :: struct #packed { frequency: u64, }, sample_type: Perf_Event_Sample_Type, - read_format: Perf_Read_Format, + read_format: Perf_Read_Format_Flags, flags: Perf_Event_Flags, wakeup: struct #raw_union { events: u32, |