diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-01 17:02:02 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-01 17:02:02 +0106 |
| commit | a7453e30ca4c9f42d27d42f96bc223533c330900 (patch) | |
| tree | 9dcf79c2844c6512af9487e9f0cf2663d0bd01f3 /schulung_tools/ipc_tcp/README | |
| parent | 80aaf4928e7594f5fdf454de3fa5c43c9eb858c2 (diff) | |
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/ipc_tcp/README')
| -rw-r--r-- | schulung_tools/ipc_tcp/README | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
