]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Allow passing options to ugw via kernel command line
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Jan 2014 09:27:03 +0000 (10:27 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Jan 2014 09:27:03 +0000 (10:27 +0100)
Kernel command line can be easily set with novaboot "-a" option.

ugw/ppc/S50ugw

index f4147b697dcbb4c4d72fa8f9ce0d0ceaca834555..3a61dff85e87953040ee44ee20ea1d723d67c632 100644 (file)
@@ -5,4 +5,12 @@ ip link set up dev can0
 ip link set can1 type can bitrate 1000000
 ip link set up dev can1
 
 ip link set can1 type can bitrate 1000000
 ip link set up dev can1
 
-ugw -r mmapbusy &
+# mount -t debugfs none /sys/kernel/debug
+# cd /sys/kernel/debug/tracing/
+# echo function_graph > current_tracer
+# echo mscan_start_xmit > set_graph_function
+# echo > trace
+
+params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
+
+ugw $params &