diff options
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 |
