From a7453e30ca4c9f42d27d42f96bc223533c330900 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 1 Feb 2019 17:02:02 +0106 Subject: ipc_tcp: add new ipc example using loopback sockets This demo should (hopefully serve) as a basis for overlaying pcap and ftrace data within trace compass. Signed-off-by: John Ogness --- schulung_tools/ipc_tcp/README | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 schulung_tools/ipc_tcp/README (limited to 'schulung_tools/ipc_tcp/README') diff --git a/schulung_tools/ipc_tcp/README b/schulung_tools/ipc_tcp/README new file mode 100644 index 0000000..71222dd --- /dev/null +++ b/schulung_tools/ipc_tcp/README @@ -0,0 +1,25 @@ +#!/bin/sh + +# build programs send/recv +make + +# create uprobe events +sudo perf probe -x ./send sending=send.c:37 +sudo perf probe -x ./recv received=recv.c:62 + +# run receiver +sudo taskset 1 chrt -f 80 ./recv & + +# run sender (wrapping with trace-cmd) +sudo trace-cmd record \ + -e sched:sched_switch \ + -e sched:sched_wakeup \ + -e sched:sched_pi_setprio \ + -e probe_send:sending \ + -e probe_recv:received \ + -e syscalls \ + taskset 1 chrt -f 70 ./send +# type message and hit return + +# view results +kernelshark -- cgit v1.2.3