]> 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 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
 
-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 &