aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/trace.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-01-16 19:39:40 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-29 17:21:44 -0400
commitcddade083e5ea74cba6f0e4b2fa10c6bbec1336c (patch)
tree83834a457cfd6b52d895629036f84a1aed36ea2f /litmus/trace.c
parenta084c01569bcfe13fd880a0b1e3a9026629a89da (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.c1
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
75static int alloc_timestamp_buffer(struct ftdev* ftdev, unsigned int idx) 76static int alloc_timestamp_buffer(struct ftdev* ftdev, unsigned int idx)