aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-22 11:08:30 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-22 11:08:30 -0400
commit1e68c15dfd99e85be1eecdd1c426a35c6b8a6cc5 (patch)
treeef8642a15fb646e47fa5d9511db2812954e764aa /include
parent70030c70da321f66f0be4508f76dc7ed1b43be4a (diff)
follow kernel API change: use fixed width fields
Diffstat (limited to 'include')
-rw-r--r--include/timestamp.h16
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
4struct timestamp { 6struct 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
11int str2event(const char* str, unsigned long *id); 13typedef uint32_t cmd_t;
12const char* event2str(unsigned long id); 14
15int str2event(const char* str, cmd_t *id);
16const 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