From 104a4e1a2faa389867c79d3b707fed9e64f2992c Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 26 Apr 2023 02:08:30 +0200 Subject: [PATCH] added/fixed some helper scripts - aqhome-tool.sh: calls aqhome-tool inside 0-build/ - aqhomed.sh: calls aqhomed inside 0-build/ - vg_calls.sh: calls aqhomed inside valgrind to collect the call tree - vg_run.sh: calls aqhomed inside valgrind to collect memory leaks --- aqhome-tool.sh | 0 aqhomed.sh | 7 ++++++- vg_calls.sh | 8 ++++++++ vg_run.sh | 7 +++++++ 4 files changed, 21 insertions(+), 1 deletion(-) mode change 100644 => 100755 aqhome-tool.sh mode change 100644 => 100755 aqhomed.sh create mode 100755 vg_calls.sh create mode 100755 vg_run.sh diff --git a/aqhome-tool.sh b/aqhome-tool.sh old mode 100644 new mode 100755 diff --git a/aqhomed.sh b/aqhomed.sh old mode 100644 new mode 100755 index 6b0f0b6..3447c4f --- a/aqhomed.sh +++ b/aqhomed.sh @@ -1,4 +1,9 @@ +#!/bin/bash + # AQHOME_LOGLEVEL=info LD_LIBRARY_PATH="../../aqhome/:$LD_LIBRARY_PATH" ./aqhomed -l aqhome.log -db aqhome.db -ma 127.0.0.1 -AQHOME_LOGLEVEL=info LD_LIBRARY_PATH="../../aqhome/:$LD_LIBRARY_PATH" ./aqhomed -l aqhome.log -db aqhome.db -ma 192.168.117.192 -mp 1883 -t 127.0.0.1 +export AQHOME_LOGLEVEL=info +export LD_LIBRARY_PATH="0-build/aqhome/:$LD_LIBRARY_PATH" + +0-build/apps/aqhomed/aqhomed -l aqhome.log -db aqhome.db -ma 192.168.117.192 -mp 1883 -t 127.0.0.1 diff --git a/vg_calls.sh b/vg_calls.sh new file mode 100755 index 0000000..e92a7de --- /dev/null +++ b/vg_calls.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export AQHOME_LOGLEVEL=info +export LD_LIBRARY_PATH="0-build/aqhome/:$LD_LIBRARY_PATH" + + +valgrind --tool=callgrind --trace-children=yes --dump-instr=yes --collect-jumps=yes 0-build/apps/aqhomed/aqhomed -l aqhome.log -db aqhome.db -ma 192.168.117.192 -mp 1883 -t 127.0.0.1 + diff --git a/vg_run.sh b/vg_run.sh new file mode 100755 index 0000000..95e1b30 --- /dev/null +++ b/vg_run.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +export AQHOME_LOGLEVEL=info +export LD_LIBRARY_PATH="0-build/aqhome/:$LD_LIBRARY_PATH" + +# valgrind --tool=memcheck --trace-children=yes -v --log-file=aqf15 --leak-check=full --show-reachable=yes --track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free --suppressions=../../../../debug/valgrind.supp /usr/local/bin/aqfinance +valgrind --tool=memcheck --trace-children=yes -v --log-file=aqhomed.vg --leak-check=full --show-reachable=yes --track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free 0-build/apps/aqhomed/aqhomed -l aqhome.log -db aqhome.db -ma 192.168.117.192 -mp 1883 -t 127.0.0.1 -T 300