diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-01-16 19:39:40 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-29 17:21:44 -0400 |
commit | cddade083e5ea74cba6f0e4b2fa10c6bbec1336c (patch) | |
tree | 83834a457cfd6b52d895629036f84a1aed36ea2f /litmus/trace.c | |
parent | a084c01569bcfe13fd880a0b1e3a9026629a89da (diff) |
Add optional dynamic assignment of tracing devices major nr
Setting FT_TASK_TRACE_MAJOR, LOG_MAJOR, FT_TRACE_MAJOR to 0
allows to have them automatically assigned by the kernel
Diffstat (limited to 'litmus/trace.c')
-rw-r--r-- | litmus/trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/litmus/trace.c b/litmus/trace.c index 5735d28f5e30..440376998dc9 100644 --- a/litmus/trace.c +++ b/litmus/trace.c | |||
@@ -70,6 +70,7 @@ feather_callback void save_timestamp_cpu(unsigned long event, | |||
70 | */ | 70 | */ |
71 | #define NO_TIMESTAMPS (2 << 11) | 71 | #define NO_TIMESTAMPS (2 << 11) |
72 | 72 | ||
73 | /* set MAJOR to 0 to have it dynamically assigned */ | ||
73 | #define FT_TRACE_MAJOR 252 | 74 | #define FT_TRACE_MAJOR 252 |
74 | 75 | ||
75 | static int alloc_timestamp_buffer(struct ftdev* ftdev, unsigned int idx) | 76 | static int alloc_timestamp_buffer(struct ftdev* ftdev, unsigned int idx) |