[PATCH] make massif-hald.sh give more useful output
Rob Taylor
rob.taylor at codethink.co.uk
Sun Nov 11 13:07:53 PST 2007
Make massif_hald tell massif about g_slice as an alloc function.
Set dbus_realloc as an alloc-fn when running massif.
Increases num-callers and depth to 24 when caling massif.
---
hald/massif-hald.sh | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hald/massif-hald.sh b/hald/massif-hald.sh
index 9292a4e..7dd6239 100755
--- a/hald/massif-hald.sh
+++ b/hald/massif-hald.sh
@@ -16,9 +16,11 @@ export HAL_FDI_SOURCE_POLICY=.local-fdi/share/hal/fdi/policy
#delete all old memory outputs, else we get hundreds
rm massif.*
-valgrind --tool=massif --format=html --depth=10 \
- --alloc-fn=g_malloc --alloc-fn=g_realloc \
- --alloc-fn=g_try_malloc --alloc-fn=g_malloc0 --alloc-fn=g_mem_chunk_alloc \
+G_SLICE="always-malloc" valgrind --num-callers=24 --tool=massif --depth=24 --format=html \
+ --alloc-fn=g_malloc --alloc-fn=g_realloc \
+ --alloc-fn=g_try_malloc --alloc-fn=g_malloc0 --alloc-fn=g_mem_chunk_all \
+ --alloc-fn=g_slice_alloc0 --alloc-fn=g_slice_alloc \
+ --alloc-fn=dbus_realloc \
./hald --daemon=no --verbose=yes --retain-privileges #--exit-after-probing
#massif uses the pid file, which is hard to process.
--
1.5.3.GIT
--------------000303050506080805030300
Content-Type: text/x-patch;
name="0003-fix-uninitialised-memory-usage-in-pci_add.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename*0="0003-fix-uninitialised-memory-usage-in-pci_add.patch"
More information about the hal
mailing list