mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
prev_state is long.
This commit is contained in:
parent
9f2ffb05ac
commit
46d2977694
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user