1 echo Setting up CAN interfaces
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
10 # ifconfig eth0 192.168.2.3
11 # (echo boa; echo boa) | passwd
13 params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
15 # mount -t debugfs none /sys/kernel/debug
16 # cd /sys/kernel/debug/tracing/
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
25 # echo raw_recvmsg mscan_isr mscan_rx_poll mscan_low_latency_recv > set_graph_function
27 # echo 60000 > buffer_size_kb