aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-08-15 07:40:36 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-10-19 16:38:25 -0400
commit2265873941ade09b9ba4eb754278818cd5801d3a (patch)
tree2c3c66098955510549ef92c612fd36499d4b5a15 /include
parentdc9421543acf741a8c3aab32cc3630b33d7116bc (diff)
Update timestamp structure to reflect PID field
Diffstat (limited to 'include')
-rw-r--r--include/timestamp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index 57fd0bc..b3b10ce 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -9,8 +9,15 @@ enum task_type_marker {
9 TSK_UNKNOWN 9 TSK_UNKNOWN
10}; 10};
11 11
12/* Note: bitfields are highly non-portable (allocation is completely
13 * implementation-defined). Make sure you use the *same* compiler as the one
14 * used for the kernel itself (this works with gcc in practice, but is not
15 * *guaranteed* to work). Patches to get rid of the bitfields (without
16 * enlarging the structure) are highly welcome.
17 */
12struct timestamp { 18struct timestamp {
13 uint64_t timestamp; 19 uint64_t timestamp:48;
20 uint64_t pid:16;
14 uint32_t seq_no; 21 uint32_t seq_no;
15 uint8_t cpu; 22 uint8_t cpu;
16 uint8_t event; 23 uint8_t event;