diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-15 07:04:40 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-10-18 14:49:01 -0400 |
commit | 7b84800f5ee2e35671ac08a7d281ac7f0069ce8f (patch) | |
tree | c637ecaa4294e7ef092838d2ede0e0953404fd9a /include | |
parent | 676bcd5d0245afba6b723e4d1bf4a65692fa986d (diff) |
Feather-Trace: keep track of PID in trace record
To properly trace locking overheads, it is required to tell apart
samples from different tasks, which requires keeping track of their
PIDs.
The timestamp is shortened to 48 bits to make room for the PID.
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index e809376d6487..7efced0c3078 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -16,7 +16,8 @@ enum task_type_marker { | |||
16 | }; | 16 | }; |
17 | 17 | ||
18 | struct timestamp { | 18 | struct timestamp { |
19 | uint64_t timestamp; | 19 | uint64_t timestamp:48; |
20 | uint64_t pid:16; | ||
20 | uint32_t seq_no; | 21 | uint32_t seq_no; |
21 | uint8_t cpu; | 22 | uint8_t cpu; |
22 | uint8_t event; | 23 | uint8_t event; |