summaryrefslogtreecommitdiffstats
path: root/test_driver/make_devices
diff options
context:
space:
mode:
Diffstat (limited to 'test_driver/make_devices')
-rw-r--r--test_driver/make_devices18
1 files changed, 0 insertions, 18 deletions
diff --git a/test_driver/make_devices b/test_driver/make_devices
deleted file mode 100644
index 4d4554b..0000000
--- a/test_driver/make_devices
+++ /dev/null
@@ -1,18 +0,0 @@
1#!/bin/bash
2
3#Creates device drivers for traces (litmus_log, ft_trace and sched_trace)
4#Taken from http://www.cs.unc.edu/~anderson/litmus-rt/doc/tracing.html
5
6LITMUS_LOG_MAJOR=`grep litmus_log /proc/devices | awk '{print $1}'`
7FT_TRACE_MAJOR=`grep ft_trace /proc/devices | awk '{print $1}'`
8SCHED_TRACE_MAJOR=`grep sched_trace /proc/devices | awk '{print $1}'`
9
10mknod litmus_log c $LITMUS_LOG_MAJOR 0
11mknod ft_trace c $FT_TRACE_MAJOR 0
12
13NUM_PROCS=$((`grep 'processor' /proc/cpuinfo | wc -l` - 1))
14
15for P in `seq 0 $NUM_PROCS`
16do
17 mknod "sched_trace$P" c $SCHED_TRACE_MAJOR $P
18done