]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - ugw/ppc/S50ugw
Make latester on glab SUID root
[can-benchmark.git] / ugw / ppc / S50ugw
1 echo Setting up CAN interfaces
2
3 ip link set can0 type can bitrate 1000000
4 ip link set up dev can0
5 ip link set can1 type can bitrate 1000000
6 ip link set up dev can1
7
8 # mount -t debugfs none /sys/kernel/debug
9 # cd /sys/kernel/debug/tracing/
10 # echo function_graph > current_tracer
11 # echo mscan_start_xmit > set_graph_function
12 # echo > trace
13
14 params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
15
16 ugw $params &