]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - ugw/ppc/S50ugw
Added ftrace config (commented oud)
[can-benchmark.git] / ugw / ppc / S50ugw
index 3a61dff85e87953040ee44ee20ea1d723d67c632..01a0598b3e0837502fb047d6bfaf4661ef09301a 100644 (file)
@@ -5,12 +5,26 @@ ip link set up dev can0
 ip link set can1 type can bitrate 1000000
 ip link set up dev can1
 
+set -x
+
+# ifconfig eth0 192.168.2.3
+# (echo boa; echo boa) | passwd
+
+params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
+
 # mount -t debugfs none /sys/kernel/debug
 # cd /sys/kernel/debug/tracing/
+# echo 0 > tracing_on
 # echo function_graph > current_tracer
-# echo mscan_start_xmit > set_graph_function
+# # echo mscan_start_xmit > set_graph_function
+# cat > set_ftrace_notrace <<EOF
+# can_receive __netdev_alloc_skb __kfree_skb kmem_cache_alloc sk_filter
+# napi_gro_flush enqueue_task add_interrupt_randomness note_interrupt
+# *_preempt_count msecs_to_jiffies
+# EOF
+# echo raw_recvmsg mscan_isr mscan_rx_poll mscan_low_latency_recv > set_graph_function
 # echo > trace
-
-params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
+# echo 60000 > buffer_size_kb
+# echo 1 > tracing_on
 
 ugw $params &