]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - ugw/ppc/S50ugw
Add column with routing delay
[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 set -x
9
10 # ifconfig eth0 192.168.2.3
11 # (echo boa; echo boa) | passwd
12
13 params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
14
15 # mount -t debugfs none /sys/kernel/debug
16 # cd /sys/kernel/debug/tracing/
17 # echo 0 > tracing_on
18 # echo function_graph > current_tracer
19 # # echo mscan_start_xmit > set_graph_function
20 # cat > set_ftrace_notrace <<EOF
21 # can_receive __netdev_alloc_skb __kfree_skb kmem_cache_alloc sk_filter
22 # napi_gro_flush enqueue_task add_interrupt_randomness note_interrupt
23 # *_preempt_count msecs_to_jiffies
24 # EOF
25 # echo raw_recvmsg mscan_isr mscan_rx_poll mscan_low_latency_recv > set_graph_function
26 # echo > trace
27 # echo 60000 > buffer_size_kb
28 # echo 1 > tracing_on
29
30 ugw $params &