]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - ugw/ppc/S50ugw
Allow passing options to ugw via kernel command line
[can-benchmark.git] / ugw / ppc / S50ugw
index 75d5fdfcbbbb9afcee401e2f60927345981c8fdf..3a61dff85e87953040ee44ee20ea1d723d67c632 100644 (file)
@@ -5,6 +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
 
-echo Starting UGW
+# 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
 
 
-ugw
+params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
+
+ugw $params &