summaryrefslogtreecommitdiff
path: root/schulung_tools/ipc_tcp/README
diff options
context:
space:
mode:
Diffstat (limited to 'schulung_tools/ipc_tcp/README')
-rw-r--r--schulung_tools/ipc_tcp/README25
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