Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp971407rdb; Wed, 6 Dec 2023 05:26:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkKVvPXOJnTCykyKwLeaIkha1YXb0v5Or+yUWTLEUy6M+wkYstZXVgyFUQRjs8EXK1sjJ7 X-Received: by 2002:a05:6a20:244d:b0:18f:97c:4f44 with SMTP id t13-20020a056a20244d00b0018f097c4f44mr592590pzc.80.1701869193609; Wed, 06 Dec 2023 05:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701869193; cv=none; d=google.com; s=arc-20160816; b=W+xjPAyglndNi/XhffHKccAQKxp58wHzEDPsH6fplkDm1Wrjk+75d+BFacFtHvicew MSMvRz8B+U+kOGtrdPEv92Dxoed7iADKYzTvuWYLsKfe36oyS1K1ksAv25wgoE0bWUCX EWXeAUcOcLVIdr9zGVs85wipotAFu4mgDVveXTeG03Mq+jwr1C0XBS7+d3qPnL9b6kvP 5ANkHqRZ9kSwS6QjsNkDFROaEFmkoSGC9nqTIIEmiEIuudJ4M4FeDTeGYOx2wVLe0j51 yFuk+G1l7dDC1Aq40PHui9txRu6pBo8tLB3iBoQBiDzvQ04oswRWDY6kOgPQryX3Cq2X kcmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uibrLC/NNgiQUy3dxLHaAB70OoGYsXJohhBpTbAvjmA=; fh=Y5iRejlBjtzRSi7YzD0dFVXwv/mN+zEC2CdihVz1DIw=; b=pXxKq0GkG4RbFYYLQ8+yIFNY1mDOc9TEPCl22g+G9Y8BwqV3u7oLqrMqTmsRHQuvGB qTRFByD0+Bdr9ML1V8LCaApK5yC90RkaN0RAgLicAHjywGvvyYIlMlhQknMkWW6gbjVv ey5V4Eru7BlysJA1ymJB/vhi68HcW25TRwhidcG02eDVMKd6Cb5IT5KUUQewO/vXNNb5 MmE6zcbuXIcFAkBNcZwVYQBVFWOikuHsaS6skJK4Y3oirI2namWEFkm+pN/bjS/AtU75 1To+4aP0/iSvofbtTRLlshva5o4Aq9Ckb2Y87/z5VOlckfdryZqkXW0lt7Fwvw4wHqpm 8mPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oaBtu7yk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z1-20020a63e101000000b005c67dd98b13si6140548pgh.314.2023.12.06.05.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 05:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oaBtu7yk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E5A3C80966E4; Wed, 6 Dec 2023 05:26:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378479AbjLFN0G (ORCPT + 99 others); Wed, 6 Dec 2023 08:26:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378468AbjLFN0E (ORCPT ); Wed, 6 Dec 2023 08:26:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B2FD47 for ; Wed, 6 Dec 2023 05:26:10 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3CB4C433C7; Wed, 6 Dec 2023 13:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701869170; bh=kY88AoLa3ot5oNZ2xunTh93/qoZpoRK13BhBUv2JbLM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oaBtu7ykS3bebpcM/l82Q0Ed1Cz+UbZbBJop+Z4dY/WMjGyu0MwOHg3k7VkIwXtXW 3f3Y0rNE3DApL2F+IMTJslYub2smDvJoT2xq5SC5B6V7xSNPV6TADRmyaAE0ilsAkj GwqPNKytF54L6R4f6e0Z3PbsG/9WwdVDzheGvFEWenroxDalPm2CjA4SihZEKpW5TI f8+eduyfRYOmB8CwXoCUK3zgtlusG/UNyokxhkmBHiMY2bmJN7T3xACidHBZ4rbbc0 stK0nhgErVd6pqbYyhRlru/2W8UX+0Rb4mCzbQfW01Ts2zE7YXK4lzIlxpSZuKgz0x OlpqmpXByvPsA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 99789403EF; Wed, 6 Dec 2023 10:26:07 -0300 (-03) Date: Wed, 6 Dec 2023 10:26:07 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Adrian Hunter , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, atrajeev@linux.vnet.ibm.com Subject: Re: [PATCH v1] perf test: Add basic perf diff test Message-ID: References: <20231120190408.281826-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 05:26:30 -0800 (PST) Em Tue, Dec 05, 2023 at 08:52:04AM -0800, Ian Rogers escreveu: > On Mon, Dec 4, 2023 at 9:44 PM Adrian Hunter wrote: > > > > On 4/12/23 18:00, Ian Rogers wrote: > > > On Mon, Nov 20, 2023 at 11:04 AM Ian Rogers wrote: > > >> > > >> There are some old bug reports on perf diff crashing: > > >> https://rhaas.blogspot.com/2012/06/perf-good-bad-ugly.html > > >> > > >> Happening across them I was prompted to add two very basic tests that > > >> will give some perf diff coverage. > > >> > > >> Signed-off-by: Ian Rogers > > > > > > Ping. > > > > > > Thanks, > > > Ian > > > > > >> --- > > >> tools/perf/tests/shell/diff.sh | 101 +++++++++++++++++++++++++++++++++ > > >> 1 file changed, 101 insertions(+) > > >> create mode 100755 tools/perf/tests/shell/diff.sh > > >> > > >> diff --git a/tools/perf/tests/shell/diff.sh b/tools/perf/tests/shell/diff.sh > > >> new file mode 100755 > > >> index 000000000000..213185763688 > > >> --- /dev/null > > >> +++ b/tools/perf/tests/shell/diff.sh > > >> @@ -0,0 +1,101 @@ > > >> +#!/bin/sh > > >> +# perf diff tests > > >> +# SPDX-License-Identifier: GPL-2.0 > > >> + > > >> +set -e > > >> + > > >> +err=0 > > >> +perfdata1=$(mktemp /tmp/__perf_test.perf.data.XXXXX) > > >> +perfdata2=$(mktemp /tmp/__perf_test.perf.data.XXXXX) > > >> +perfdata3=$(mktemp /tmp/__perf_test.perf.data.XXXXX) > > >> +testprog="perf test -w thloop" > > >> +testsym="test_loop" > > > > Could it benefit from skip_test_missing_symbol > > Good idea, sent: > https://lore.kernel.org/lkml/20231205164924.835682-1-irogers@google.com/ Applied, and added this: Suggested-by: Adrian Hunter Thanks, - Arnaldo