diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 11:08:30 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 11:08:30 -0400 |
| commit | 1e68c15dfd99e85be1eecdd1c426a35c6b8a6cc5 (patch) | |
| tree | ef8642a15fb646e47fa5d9511db2812954e764aa /include | |
| parent | 70030c70da321f66f0be4508f76dc7ed1b43be4a (diff) | |
follow kernel API change: use fixed width fields
Diffstat (limited to 'include')
| -rw-r--r-- | include/timestamp.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/timestamp.h b/include/timestamp.h index 7517bab..ec16d04 100644 --- a/include/timestamp.h +++ b/include/timestamp.h | |||
| @@ -1,15 +1,19 @@ | |||
| 1 | #ifndef TIMESTAMP_H | 1 | #ifndef TIMESTAMP_H |
| 2 | #define TIMESTAMP_H | 2 | #define TIMESTAMP_H |
| 3 | 3 | ||
| 4 | #include <stdint.h> | ||
| 5 | |||
| 4 | struct timestamp { | 6 | struct timestamp { |
| 5 | unsigned long event; | 7 | uint64_t timestamp; |
| 6 | unsigned long long timestamp; | 8 | uint32_t seq_no; |
| 7 | unsigned int seq_no; | 9 | uint16_t cpu; |
| 8 | int cpu; | 10 | uint16_t event; |
| 9 | }; | 11 | }; |
| 10 | 12 | ||
| 11 | int str2event(const char* str, unsigned long *id); | 13 | typedef uint32_t cmd_t; |
| 12 | const char* event2str(unsigned long id); | 14 | |
| 15 | int str2event(const char* str, cmd_t *id); | ||
| 16 | const char* event2str(cmd_t id); | ||
| 13 | 17 | ||
| 14 | #define ENABLE_CMD 0L | 18 | #define ENABLE_CMD 0L |
| 15 | #define DISABLE_CMD 1L | 19 | #define DISABLE_CMD 1L |
