From: Michal Sojka Date: Sun, 12 Jan 2014 09:27:03 +0000 (+0100) Subject: Allow passing options to ugw via kernel command line X-Git-Tag: fix-allnoconfig~93 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/9253c06d4608f5bc173c782797f3339603e5064c Allow passing options to ugw via kernel command line Kernel command line can be easily set with novaboot "-a" option. --- diff --git a/ugw/ppc/S50ugw b/ugw/ppc/S50ugw index f4147b6..3a61dff 100644 --- a/ugw/ppc/S50ugw +++ b/ugw/ppc/S50ugw @@ -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 &