]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - ugw/ppc/S50ugw
New tests
[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 ifconfig can1 txqueuelen 100
8
9 set -x
10
11 # ifconfig eth0 192.168.2.3
12 # (echo boa; echo boa) | passwd
13
14 if grep -q kernelgw /proc/cmdline; then
15     cangw -A -s can0 -d can1
16     echo "Kernel GW started"
17     exit 0
18 fi
19
20 params=$(sed -ne 's/.* ugw=|\([^"]*\)|.*/\1/p' /proc/cmdline)
21
22 # mount -t debugfs none /sys/kernel/debug
23 # cd /sys/kernel/debug/tracing/
24 # echo 0 > tracing_on
25 # echo function_graph > current_tracer
26 # # echo mscan_start_xmit > set_graph_function
27 # cat > set_ftrace_notrace <<EOF
28 # can_receive __netdev_alloc_skb __kfree_skb kmem_cache_alloc sk_filter
29 # napi_gro_flush enqueue_task add_interrupt_randomness note_interrupt
30 # *_preempt_count msecs_to_jiffies
31 # EOF
32 # echo raw_recvmsg mscan_isr mscan_rx_poll mscan_low_latency_recv > set_graph_function
33 # echo > trace
34 # echo 60000 > buffer_size_kb
35 # echo 1 > tracing_on
36
37 ugw $params &