Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1582866pxb; Wed, 10 Feb 2021 11:42:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnLgfFMue/0fOdmpowFFGpIv6tW2WvHxNOxcARTDjxCRr6P9kXLioES1JECuMGl4ggjzeQ X-Received: by 2002:a17:907:933:: with SMTP id au19mr4562333ejc.51.1612986128110; Wed, 10 Feb 2021 11:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612986128; cv=none; d=google.com; s=arc-20160816; b=XIVKTY/OUSsKhKlxWNHkURzbbqi/TzIFOCggJLgoXAQgm5fsPdTWAsqEb2f5ZhScdM rlMuaMXS4KcV59BV9Mgr2dwdcrC/D4rngzuOQAYJpRXJW2o/fsslSG1Cd/k+1ik6T3zg QorwC0uos+pjwvBtK0V9jHohLBCQsTy6nrKuMJ+hiyZay8BhE6QJpYU9JI2sJ6O4bbK0 XEq82jhR4kEmEcla0E5vBQiHfmiZ/JzPAerSknNVJImraRRujcmw3qRihaUg4CWNbAjr jtK2OPt63ABXm3IQlRlgOfJe1ap/uXy9qNvVWiN6TWNzTrg3YvpfNaVyh2+4xjOhtEf4 bH7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:cc:to:subject:from :dkim-signature; bh=psGCywiRzOWWuNJrJEB2hAOapOEV0xQn5GH2xdqJzMk=; b=kg6iR5HGAZKUg0ghV13N8U3URzdvybawE2IzVsjylX5cZKIGV1DgVABC0piUpn4Oat ieCcx6ffD1EEiT2Dpazfs7MrQLgB0wJBp71ZR4MHtV6GYq2p/nb8cESioHqnrp/NJ+VB M6N29TsQ17ld5dri1Jm7oP8SRVtbS7UUhUso7U57TsWdNbitG9JzBcmbezqggO0xJVO3 hVw2dOhSHEB+CCCtpoQoLYDmhv5syHtqcFVUB1a24PCY1a/2/yMtTvsvjmxFQXHmmSAK IBjDCjjgtbVzabiqS0SI8OQBxm/2wiJke1Ww1DayvWk0Cu2GZbAY0icJkfpqV/X7gcaJ qY0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=xY2aTBb9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si1994689ejj.456.2021.02.10.11.41.44; Wed, 10 Feb 2021 11:42:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=xY2aTBb9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbhBJTlJ (ORCPT + 99 others); Wed, 10 Feb 2021 14:41:09 -0500 Received: from mail.codeweavers.com ([50.203.203.244]:43542 "EHLO mail.codeweavers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232578AbhBJTjQ (ORCPT ); Wed, 10 Feb 2021 14:39:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codeweavers.com; s=6377696661; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Cc:To:Subject:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=psGCywiRzOWWuNJrJEB2hAOapOEV0xQn5GH2xdqJzMk=; b=xY2aTBb991p4EsGVRsMXJkzHyz ICzDY9mXUz4qBS6sqluY/UsQEgO/8SRsIyD7WZeuVm61zSMKJUV7DN/ZZuZE7aIJBHeZVvQ49cPIL r3VLoGeHJcgCA08JH7PCDvOzVoiBdy3nMFX/9WzDIroiz6bOWGe3SwRXtMtPjuF4iZ34=; Received: from [10.69.141.136] by mail.codeweavers.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l9uzD-0005YE-FR; Wed, 10 Feb 2021 13:17:17 -0600 From: Nicholas Fraser Subject: [PATCH 0/4] perf: Fix archive/debugcache PE files To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , "Frank Ch. Eigler" , Song Liu , Adrian Hunter , Kim Phillips , Tommi Rantala , Remi Bernon , linux-kernel@vger.kernel.org Cc: Ulrich Czekalla , Huw Davies Message-ID: Date: Wed, 10 Feb 2021 14:17:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -40.6 X-Spam-Report: Spam detection software, running on the system "mail.codeweavers.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello perf maintainers, I have some patches to get "perf archive" working with PE binaries (e.g. Wine DLLs or Windows executables.) The PE support in perf is fairly new and "perf archive" hasn't been updated to work with it. [...] Content analysis details: (-40.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 USER_IN_WELCOMELIST user is listed in 'welcomelist_from' -20 USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST -20 ALL_TRUSTED Passed through trusted hosts only via SMTP -0.5 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 AWL AWL: Adjusted score from AWL reputation of From: address Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello perf maintainers, I have some patches to get "perf archive" working with PE binaries (e.g. Wine DLLs or Windows executables.) The PE support in perf is fairly new and "perf archive" hasn't been updated to work with it. In getting this working I've come across a number of bugs in perf that these patches aim to fix. The patches are independent and can be committed in any order. Some of these are because build-ids are now variable width. Build-ids in PE files are always 16-byte GUIDs; much of the existing code still assumes a 20-byte SHA-1 build-id. I've tried to make the minimal amount of changes to allow 16-byte build-ids to work with a debugcache from a perf archive. I'm new to kernel development so I apologize if I'm doing this incorrectly. Thanks, Nick Nicholas Fraser (4): perf buildid-cache: Don't skip 16-byte build-ids perf report: Load PE files from debug cache only perf archive: Fix filtering of empty build-ids perf report: Fix return value when loading PE DSO tools/perf/perf-archive.sh | 3 +-- tools/perf/util/build-id.c | 5 +++-- tools/perf/util/build-id.h | 4 +++- tools/perf/util/symbol.c | 12 ++++-------- 4 files changed, 11 insertions(+), 13 deletions(-) -- 2.30.0