prev_state is long.

This commit is contained in:
Bartosz Taudul 2022-02-14 22:34:20 +01:00
parent 9f2ffb05ac
commit 46d2977694
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1304,7 +1304,7 @@ void SysTraceWorker( void* ptr )
// u8 prev_comm[16] // u8 prev_comm[16]
// u32 prev_pid // u32 prev_pid
// u32 prev_prio // u32 prev_prio
// u64 prev_state // lng prev_state
// u8 next_comm[16] // u8 next_comm[16]
// u32 next_pid // u32 next_pid
// u32 next_prio // u32 next_prio
@ -1318,12 +1318,12 @@ void SysTraceWorker( void* ptr )
offset += sizeof( uint64_t ) * cnt + sizeof( uint32_t ) + 8 + 16; offset += sizeof( uint64_t ) * cnt + sizeof( uint32_t ) + 8 + 16;
uint32_t prev_pid, next_pid; uint32_t prev_pid, next_pid;
uint64_t prev_state; long prev_state;
ring.Read( &prev_pid, offset, sizeof( uint32_t ) ); ring.Read( &prev_pid, offset, sizeof( uint32_t ) );
offset += sizeof( uint32_t ) + sizeof( uint32_t ); offset += sizeof( uint32_t ) + sizeof( uint32_t );
ring.Read( &prev_state, offset, sizeof( uint64_t ) ); ring.Read( &prev_state, offset, sizeof( long ) );
offset += sizeof( uint64_t ) + 16; offset += sizeof( long ) + 16;
ring.Read( &next_pid, offset, sizeof( uint32_t ) ); ring.Read( &next_pid, offset, sizeof( uint32_t ) );
uint8_t reason = 100; uint8_t reason = 100;