From patchwork Thu Mar 3 01:47:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1600135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=VPVXtYVe; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K8DQ55k3Bz9sFq for ; Thu, 3 Mar 2022 12:47:41 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4K8DQ4608zz3bh9 for ; Thu, 3 Mar 2022 12:47:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=VPVXtYVe; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1032; helo=mail-pj1-x1032.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=VPVXtYVe; dkim-atps=neutral Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4K8DQ250vSz3bPR for ; Thu, 3 Mar 2022 12:47:38 +1100 (AEDT) Received: by mail-pj1-x1032.google.com with SMTP id mg21-20020a17090b371500b001bef9e4657cso3031347pjb.0 for ; Wed, 02 Mar 2022 17:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0A8nwDuLpLjyrqsZ7PuK52umBzkdJa/Cgs2zCPhXBlA=; b=VPVXtYVex5bE+bd3k8PaUYOopn5s8nzSLF2343h8h5q0ofDFpmEhyzxVOz6jff1L8t R6FKxFp/Jl+cbYEiFfEEYLBOH8V0VqruXs1e+eWS7Ps+QjrSrzBuWG4EJsCUnUqppMic sO4+q+NjOsRfzPenfPI4YH1UOCjwWUV/oITSeW6r5C0Q691Sj4oq2RatEudcbK4kfAtu 3RbDG7oytB6v/u/mLic5ibIUarIBFdbONoYFOFas/A2ZImCIrZA2omiWKP0mJWEXa2Xc ejZIs9OQKyw10ZrVpP5HQgvsLGSfuWuKLkSGPmPwzP0vqnLB69KbL3BQoyR/36dCJKDM jo1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=0A8nwDuLpLjyrqsZ7PuK52umBzkdJa/Cgs2zCPhXBlA=; b=1Kd+CHFu/16GF5fPZ9EExqUo98OB0sb/KgqRjZ+xyPodBL5IDRXzfD3xp56eRVPBH7 SCfiAWF2HmhjUwdRd/iy9hlsMA0OUs2W6xUW/fgSYs1/SmFX2ssQOtf/jbf9QkfJhRv5 t9qcXr90B27gUEJdOBp81FlcRTOoULywkpTaOzcCsEY/HFhf1oWnrNGuUDjchYRDEGyl pimlmHul2cbZx5kUTBTQIEagG8Y4UV9gQ5nQ2FxlT5tDyMQ/1gD2pULaJzTMBQ8wd08f C6nBMaYKZW+J0ze1B/RFcdZjrs2vmdI/SpEib67w3Elon2JtL/GQMMSizwmBTY873yOf 7Cdw== X-Gm-Message-State: AOAM5323r9LzyfZtZJ4ZZQSaegLhT3IC1bZ2HO+JUAUzhqcFPROzp96v Um6GvFnR3F02HaRcha4l4Pj/avbJ57zWsQ== X-Google-Smtp-Source: ABdhPJxSIhXei0kUhjRhy4zt+efOvWjz4gGvd1z8W4n9ZiWRpZ06H3nJstsfHecgMnTycQPYmKkk5A== X-Received: by 2002:a17:902:7888:b0:148:adf2:9725 with SMTP id q8-20020a170902788800b00148adf29725mr33820656pll.136.1646272056228; Wed, 02 Mar 2022 17:47:36 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id n42-20020a056a000d6a00b004d221c3e021sm453675pfv.55.2022.03.02.17.47.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 17:47:35 -0800 (PST) From: Joel Stanley To: pdbg@lists.ozlabs.org Date: Thu, 3 Mar 2022 12:17:28 +1030 Message-Id: <20220303014728.757512-1-joel@jms.id.au> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Pdbg] [PATCH] Add valgrind suppression file X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" 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 --- pdbg.supp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pdbg.supp diff --git a/pdbg.supp b/pdbg.supp new file mode 100644 index 000000000000..c18b97cc66d2 --- /dev/null +++ b/pdbg.supp @@ -0,0 +1,60 @@ +{ + + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + fun:strdup + fun:take_name + fun:dt_new_node + ... +} +{ + + 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 + ... +} +{ + + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + fun:strdup + fun:get_target_class + fun:dt_pdbg_target_new + fun:dt_new_node + ... +} +{ + + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + fun:dt_new_node + fun:dt_new_virtual + fun:pdbg_targets_init_virtual + ... +} +{ + + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + fun:dt_new_node + fun:dt_expand_node + ... +} +{ + + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + fun:dt_pdbg_target_new + fun:dt_new_node + ... +}