Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5984589pxb; Tue, 16 Feb 2021 12:40:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/W1He5Q6XWlSGosw07Uo8vJ5yvnivkQEY7Rn3n7/XDw13Z5js1UjBDamW4ipt2voDVpYy X-Received: by 2002:a17:906:43d7:: with SMTP id j23mr22143460ejn.519.1613508029199; Tue, 16 Feb 2021 12:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613508029; cv=none; d=google.com; s=arc-20160816; b=ZQdHLpqW45CdICk3tkOkpyqxkSD2yi8kbIatN6GIOXT3itqGOt+ppzyHYjoncV6Ao4 FkB8aqS4oGk3npIMi7cKqjnLz5qhOJ3ciGhBZUCgRd/UiYr1Q2qBeiSf2pkYd1xeMwBC p8VyWg7jOhQ5yBUlE8tOSKUodLMyQGIAwdIqgyW6V6cqt0dnim+hSZnb5kwy+GQP1yjW sD6nbZNDuue8jcn1YT2z1tk+hRmtfDUbkvZIvGwN5eBlKb572sLsLjCp/ajiXggUj3HD hh/zhwFjxF5lf+38jZEpXS7SrD9SoFMf7QoQfM7W3e/4PzmfTpk4RbiB+T+Ac6U7qF2h WQXg== 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 :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=7T+1dSDXmlJhVGwZ01TgYw2ktCZ2H9YMeHFP+6OeIMU=; b=s3IkdOaLfizAeP1/7+q/v9ryyET5hXH4GfQvRL9nPy9jwu2L1okD1l1EC53mHTRiGr DMTbPDzCoBwXlEOE8I2cHIJ62ukY3ASEzJ7Ek/ZfA0TXTXNvJpjSHCPojkFxmufMzih/ GOtWPGiS9SR5a5px4J8LtVwiqvWh/k6f2hiLAqofoDq//ZssgmiDz5CamcP16NXfaTNj 1L+XU1NMilR1ghpamqCJLy8REq/VTuIgFSIO4Y+sS23vH/2mjtbzseZX0u6qGRIi9GGK bZUYE+9zuWYNhshoQbcnWIj5Ncv0tl5K8fiKz3fCRmrjIyL84LwXqdXWTCqnWH/InJR7 YTrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=iYkWw37o; 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 j7si15424227ejm.408.2021.02.16.12.40.05; Tue, 16 Feb 2021 12:40:29 -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=iYkWw37o; 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 S230162AbhBPUjF (ORCPT + 99 others); Tue, 16 Feb 2021 15:39:05 -0500 Received: from mail.codeweavers.com ([50.203.203.244]:46354 "EHLO mail.codeweavers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbhBPUjE (ORCPT ); Tue, 16 Feb 2021 15:39:04 -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: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7T+1dSDXmlJhVGwZ01TgYw2ktCZ2H9YMeHFP+6OeIMU=; b=iYkWw37o4443MbcaLfWv6Z2VMS BY4sQh78xgPFU0zfEyxkcHIpsx0EHrLI+KMh/nhqdjTTHaj0EE2Poh+CwwLsuuk6QfXM4mvUkE1kD gcOWg9FEsyi7h4Y2MWd811lI/YCoCdWY7WsX28Rty8n+EJZYUV4g0FmnsoHplg4+zX1c=; 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 1lC76y-0001sQ-3E; Tue, 16 Feb 2021 14:38:22 -0600 Subject: [PATCH 2/2] perf buildid-cache: Add test for 16-byte build-id From: Nicholas Fraser 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 References: Message-ID: Date: Tue, 16 Feb 2021 15:38:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -40.5 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: tests/shell/buildid.sh added an ELF executable with an MD5 build-id to the perf debug cache but did not check whether the object was printed by a subsequent call to "perf buildid-cache -l". It was bei [...] Content analysis details: (-40.5 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.0 AWL AWL: Adjusted score from AWL reputation of From: address Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tests/shell/buildid.sh added an ELF executable with an MD5 build-id to the perf debug cache but did not check whether the object was printed by a subsequent call to "perf buildid-cache -l". It was being omitted from the list. A previous commit fixed the bug that left it out of the list. This adds a test for it. --- tools/perf/tests/shell/buildid.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/tests/shell/buildid.sh b/tools/perf/tests/shell/buildid.sh index 4861a20edee2..de02a23b7c7b 100755 --- a/tools/perf/tests/shell/buildid.sh +++ b/tools/perf/tests/shell/buildid.sh @@ -50,6 +50,12 @@ check() exit 1 fi + ${perf} buildid-cache -l|grep $id + if [ $? -ne 0 ]; then + echo "failed: ${id} is not reported by \"perf buildid-cache -l\"" + exit 1 + fi + echo "OK for ${1}" } -- 2.30.1