From patchwork Thu Mar 2 19:01:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 65922 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3417C3858C5E for ; Thu, 2 Mar 2023 19:02:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3417C3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677783726; bh=SnX2jZi/HiijUrnpy/FyO2Amdf0j1m/EZa225AqEs9E=; h=To:Cc:Subject:References:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Help:List-Subscribe:From: Reply-To:From; b=k7yTKP6qMuBD9D2H10ymipQxtikn4mKo5ktaUP9gIdbZtzMKICwuaz0c72dXJHQvm M7pDw/lNNMicoVgw7Umv9U5IZY0w76YuXiMukWxmzvWkmhtWdCALhnMQlA76a7Nj7N MTZdX4X8hwq29Ca4MWDdjUS2EgQLGCIbxcwDV1sQ= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 7A8393858D33 for ; Thu, 2 Mar 2023 19:01:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A8393858D33 Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-641-1iEo4zDSOtiYEjZMp_lD4g-1; Thu, 02 Mar 2023 14:01:57 -0500 X-MC-Unique: 1iEo4zDSOtiYEjZMp_lD4g-1 Received: by mail-qt1-f200.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso119981qtr.20 for ; Thu, 02 Mar 2023 11:01:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677783717; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SnX2jZi/HiijUrnpy/FyO2Amdf0j1m/EZa225AqEs9E=; b=P3l77C2qv7ZJlZkZsJ0l+ApW92le0owdty/7Vsy2oOjSEN0+wH4Qnq3/cDqgY1VOjP WthA2/3s6ZxSAlCQYfn+VFeUoO3BuJIdgGKdqFLt0kc0EN2nkpIFs/HTqBhMCHVg3pbh SwbLFrCJJbf95RK9qOcJLa9b6RmCHxvufQB2Otd8WDfDc8aLMmmGtzJimV4Qu9GHY7xJ +u4S51TzTiMCU/NySiDYX7+JZzMGKo1ekEQIL7a8p6QOI1m7TnG50V4ttlo3L2X7F0gX EVh4181YM5U7JMeLFjJevQUrw9i7l3Jxmn+mTLf3NJ4Z361rw4E4pZDBpzHFiwZvnyi4 +R2g== X-Gm-Message-State: AO0yUKXAA0SxyKol8m27m5n4A54DjWW7bf2FACXTA9SF+9BMFCr0xsnK YsG2hIPUTQhT3o/XV1ZGI1JJaFovTvfvvzmQ3qvg7tL9FLXW8OJiLM8L0e8+utSLkIfqcg+a3La CvBGJgO55U26r/w8UBYvuXLTNjg== X-Received: by 2002:a05:6214:f2d:b0:568:89e3:c5ca with SMTP id iw13-20020a0562140f2d00b0056889e3c5camr20397328qvb.13.1677783716829; Thu, 02 Mar 2023 11:01:56 -0800 (PST) X-Google-Smtp-Source: AK7set+uw3xVB3NT4Zm+8bQFfF/42+pgUJjhKlNZdgIvv/zmnXOvuYHkKqx9N6i06Ks2wmDNnsSptw== X-Received: by 2002:a05:6214:f2d:b0:568:89e3:c5ca with SMTP id iw13-20020a0562140f2d00b0056889e3c5camr20397302qvb.13.1677783716604; Thu, 02 Mar 2023 11:01:56 -0800 (PST) Received: from localhost ([88.120.130.27]) by smtp.gmail.com with ESMTPSA id o8-20020a374108000000b0074305413c73sm174280qka.95.2023.03.02.11.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 11:01:56 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id BE903581C79; Thu, 2 Mar 2023 20:01:54 +0100 (CET) To: Dodji Seketeli Cc: libabigail@sourceware.org, ckalina@redhat.com Subject: [PATCH 09/13] tools-utils: Support kernel stablelist Organization: Red Hat / France References: <877cvzrnws.fsf@redhat.com> <87356nrnmq.fsf@redhat.com> X-Operating-System: Fedora 38 X-URL: http://www.redhat.com Date: Thu, 02 Mar 2023 20:01:54 +0100 In-Reply-To: <87356nrnmq.fsf@redhat.com> (Dodji Seketeli's message of "Thu, 02 Mar 2023 19:53:17 +0100") Message-ID: <87ttz3ou3h.fsf_-_@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Dodji Seketeli via Libabigail From: Dodji Seketeli Reply-To: Dodji Seketeli Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" Hello, Up until now, a kernel whitelist was expected to be a ini file with a section having a name ending with the word "whitelist". Nowadays, they are called "stablelist", so the name of the section ends up with "stablelist". This patch makes gen_suppr_spec_from_kernel_abi_whitelists support that. * src/abg-tools-utils.cc (gen_suppr_spec_from_kernel_abi_whitelists): Support section name that ends with the word 'stablelist'. Signed-off-by: Dodji Seketeli --- src/abg-tools-utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 85719cdc..94dd8d05 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -2151,7 +2151,8 @@ gen_suppr_spec_from_kernel_abi_whitelists ++section_iter) { std::string section_name = (*section_iter)->get_name(); - if (!string_ends_with(section_name, "whitelist")) + if (!string_ends_with(section_name, "whitelist") + && !string_ends_with(section_name, "stablelist")) continue; for (ini::config::properties_type::const_iterator prop_iter = (*section_iter)->get_properties().begin(),