瀏覽代碼

tools/valgrind: add suppression rules

Nathalie Furmento 9 年之前
父節點
當前提交
f383f359b5
共有 2 個文件被更改,包括 48 次插入0 次删除
  1. 34 0
      tools/valgrind/fxt.suppr
  2. 14 0
      tools/valgrind/hwloc.suppr

+ 34 - 0
tools/valgrind/fxt.suppr

@@ -0,0 +1,34 @@
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:calloc
+   fun:fxt_setinfos
+   fun:fut_setup
+}
+
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:realloc
+   fun:fxt_get_cpu_info
+   fun:fxt_setinfos
+   fun:fut_setup
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:malloc
+   fun:strdup
+   fun:fut_set_filename
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:malloc
+   fun:fxt_setinfos
+   fun:fut_setup
+}

+ 14 - 0
tools/valgrind/hwloc.suppr

@@ -6,3 +6,17 @@
    ...
    fun:hwloc_components_init
 }
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:lt__malloc
+   fun:lt__zalloc
+   obj:/usr/lib/x86_64-linux-gnu/libltdl.so.7.3.0
+   fun:lt_dlopenadvise
+   obj:*
+   obj:*
+   obj:/usr/lib/x86_64-linux-gnu/libhwloc.so.5.6.8
+   fun:hwloc_topology_init
+}