diff mbox series

Add valgrind suppression file

Message ID 20220303014728.757512-1-joel@jms.id.au
State New
Headers show
Series Add valgrind suppression file | expand

Checks

Context Check Description
snowpatch_ozlabs/github-CI success Successfully ran 1 jobs.
snowpatch_ozlabs/github-build_and_test success Successfully ran 1 jobs.

Commit Message

Joel Stanley March 3, 2022, 1:47 a.m. UTC
Use this to ignore memory leaks from the device tree generation code:

 valgrind --leak-check=full --suppressions=rules ./pdbg

Bonus points if you fix the code to free the memory and remove this
file.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 pdbg.supp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 pdbg.supp
diff mbox series

Patch

diff --git a/pdbg.supp b/pdbg.supp
new file mode 100644
index 000000000000..c18b97cc66d2
--- /dev/null
+++ b/pdbg.supp
@@ -0,0 +1,60 @@ 
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:malloc
+   fun:strdup
+   fun:take_name
+   fun:dt_new_node
+   ...
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+   fun:get_target_class
+   fun:dt_pdbg_target_new
+   fun:dt_new_node
+   fun:dt_expand_node
+   ...
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:malloc
+   fun:strdup
+   fun:get_target_class
+   fun:dt_pdbg_target_new
+   fun:dt_new_node
+   ...
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+   fun:dt_new_node
+   fun:dt_new_virtual
+   fun:pdbg_targets_init_virtual
+   ...
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+   fun:dt_new_node
+   fun:dt_expand_node
+   ...
+}
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+   fun:dt_pdbg_target_new
+   fun:dt_new_node
+   ...
+}