From 71990d39885309935ee62f48630e6a7a3e54e574 Mon Sep 17 00:00:00 2001 From: Ava Hahn Date: Thu, 28 Aug 2025 10:44:05 -0700 Subject: [PATCH] trace child processes, add header information about valgrind events to report Signed-off-by: Ava Hahn --- kaproxy/run.sh | 3 +-- run.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/kaproxy/run.sh b/kaproxy/run.sh index 817a32f..7a32bec 100755 --- a/kaproxy/run.sh +++ b/kaproxy/run.sh @@ -1,9 +1,8 @@ #!/bin/bash function p_invoke() { - # set trace-children=yes to profile worker processes valgrind --tool=callgrind \ - --trace-children=no \ + --trace-children=yes \ --callgrind-out-file=/tmp/callgrind.output \ --cache-sim=yes \ /nginx/objs/nginx \ diff --git a/run.sh b/run.sh index e7f4e42..f989958 100755 --- a/run.sh +++ b/run.sh @@ -18,6 +18,19 @@ fi KACLIENT=nginx-profile-setup-kaclient-1 KAPROXY=nginx-profile-setup-kaproxy-1 +echo "Callgrind output info:" >> $PROFILE_OUTPUT +echo "Dr: number of memory reads" >> $PROFILE_OUTPUT +echo "D1mr: D1 cache read misses" >> $PROFILE_OUTPUT +echo "DLmr: LL (last level) cache data read misses" >> $PROFILE_OUTPUT +echo "Dw: number of memory writes" >> $PROFILE_OUTPUT +echo "D1mw: D1 cache write misses" >> $PROFILE_OUTPUT +echo "DLmw: LL (last level) cache data write misses" >> $PROFILE_OUTPUT +echo "Ir: number of instructions executed" >> $PROFILE_OUTPUT +echo "I1mr: I1 cache read misses" >> $PROFILE_OUTPUT +echo "ILmr: LL (last level) cache instruction read misses" >> $PROFILE_OUTPUT + +echo "\n\n" >> $PROFILE_OUTPUT + echo "[+] building and deploying containers" go build keepalive-svc.go mv keepalive-svc kasvc/