From patchwork Thu Mar 17 16:38:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuliano Procida X-Patchwork-Id: 52052 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 1648C3876053 for ; Thu, 17 Mar 2022 16:39:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1648C3876053 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1647535155; bh=R38OCRFLGixQ5MEydN/5byZtMjHLIBtbxiP0nmW2DrM=; h=Date:In-Reply-To:References:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:Cc:From; b=aLVCq+Fo+ajzuL8hD8U0DzM8VA30j38CBvmOgENoooDY5zL32EuV8uv+PFKowLonT 0IkHEfg6HWHw1Nt4v5bOhNdqFUBZTUAvynGPbsjd+Pdk2kmHDjRTHWBGH0dVOUmPTB ZrejvQJo4S7x9/v2pR6R7z1G4h5SAzYba7WLmjS0= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mail-ej1-x64a.google.com (mail-ej1-x64a.google.com [IPv6:2a00:1450:4864:20::64a]) by sourceware.org (Postfix) with ESMTPS id 8DE9B3858401 for ; Thu, 17 Mar 2022 16:39:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8DE9B3858401 Received: by mail-ej1-x64a.google.com with SMTP id w11-20020a170907270b00b006df8927010eso1980828ejk.0 for ; Thu, 17 Mar 2022 09:39:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=R38OCRFLGixQ5MEydN/5byZtMjHLIBtbxiP0nmW2DrM=; b=PwB+CZrlvrUoorWUAXFt/743rS064BjxU3pkoy49j9Mq0QkWvFiwe7hZWwF78PwVG3 fo9FiZnNhxqbAaEbXm19agXdg2WalaY5fyzgI/8kFlLA0J307N3gdz1c5SNXxsXADkW8 PCqg1kJOipPy+ETm0S37YeiKvBn55ePnTWmIVhbnUp6XsWxZ67PyYuge6q9yAQeT4Btg PRIKN3aBnRSHx53ORLCdOWesX9KUmwslt0/KCYPRgGvCQ3o83Y2dLJS4f64DnzA0NPTG IPOWx3NtrgiGhFrM8MFOclmquJLCDyQUF27Yi4rJFy6yKssmROBOagHkf+07FGKRIxTo lEaw== X-Gm-Message-State: AOAM5307KIf4y0JKwfcu0vGm87OQ/xKNoCSyo1yRNWgz0KD6EI/rakMt Tivya5exIOpbsLBUBIffAiQVfM+qAeAatqKL2ooZnzwdtEiNDMWulcZriGhG9mfvKNnABqacBQP hCoqqI8ZFnsV+D5Kc+Q4RCo/GP3hjw4P6CzyQhZXNvt90KUY+pblwhmbTno8pwyzHkJ2mtmQ= X-Google-Smtp-Source: ABdhPJwSOOA7cQA0Wh5loqYJ/ScDFPDc7w2l58j0IKKvuUQh2pB/+N+d24tiVJokLUT2goEHsMMSJlzhT5v+7A== X-Received: from tef.lon.corp.google.com ([2a00:79e0:d:210:cfc0:be7d:c8f5:f085]) (user=gprocida job=sendgmr) by 2002:a17:906:3adb:b0:6b7:876c:d11b with SMTP id z27-20020a1709063adb00b006b7876cd11bmr5251503ejd.250.1647535148171; Thu, 17 Mar 2022 09:39:08 -0700 (PDT) Date: Thu, 17 Mar 2022 16:38:54 +0000 In-Reply-To: <20220316163055.4127796-1-gprocida@google.com> Message-Id: <20220317163858.353762-1-gprocida@google.com> Mime-Version: 1.0 References: <20220316163055.4127796-1-gprocida@google.com> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog Subject: [PATCH v3 0/4] add symbol namespace support, update symbol CRC support To: libabigail@sourceware.org X-Spam-Status: No, score=-14.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Giuliano Procida via Libabigail From: Giuliano Procida Reply-To: Giuliano Procida Cc: maennich@google.com, kernel-team@android.com Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" New in v3: * distinguish vmlinux vs .ko using ET_REL * more sensible patch order Giuliano Procida (4): crc_changed: eliminate copying of shared_ptr values optional: minor improvements Linux symbol CRCs: support 0 and report presence changes add Linux kernel symbol namespace support include/abg-cxx-compat.h | 30 +++++++-- include/abg-ir.h | 17 +++-- src/abg-comp-filter.cc | 46 +++++++++++-- src/abg-ir.cc | 47 +++++++++---- src/abg-reader.cc | 15 +++-- src/abg-reporter-priv.cc | 38 +++++++++-- src/abg-symtab-reader.cc | 66 +++++++++++++++++++ src/abg-writer.cc | 9 ++- tests/data/Makefile.am | 7 +- .../data/test-abidiff/test-crc-report-0-1.txt | 16 +++++ .../data/test-abidiff/test-crc-report-1-0.txt | 16 +++++ ...crc-report.txt => test-crc-report-1-2.txt} | 0 tests/data/test-abidiff/test-namespace-0.xml | 15 +++++ tests/data/test-abidiff/test-namespace-1.xml | 15 +++++ .../test-abidiff/test-namespace-report.txt | 17 +++++ tests/test-abidiff.cc | 12 +++- tests/test-symtab.cc | 8 +-- 17 files changed, 327 insertions(+), 47 deletions(-) create mode 100644 tests/data/test-abidiff/test-crc-report-0-1.txt create mode 100644 tests/data/test-abidiff/test-crc-report-1-0.txt rename tests/data/test-abidiff/{test-crc-report.txt => test-crc-report-1-2.txt} (100%) create mode 100644 tests/data/test-abidiff/test-namespace-0.xml create mode 100644 tests/data/test-abidiff/test-namespace-1.xml create mode 100644 tests/data/test-abidiff/test-namespace-report.txt