Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp418769rdb; Tue, 5 Dec 2023 08:54:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/oz3XaxqkSOPtqv7RYd4S3vJsjbYI07ZNwx3VxkK+BPDcjFuTDBP68zkpxF2FwA0S0JFs X-Received: by 2002:a05:6871:590:b0:1fb:75a:6d50 with SMTP id u16-20020a056871059000b001fb075a6d50mr6453881oan.119.1701795256193; Tue, 05 Dec 2023 08:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701795256; cv=none; d=google.com; s=arc-20160816; b=BdJgWmlT0h+EyU15fOT9C5NmbOEErUy8wUMDQQ9EAPpmf8RQdvr0WtAzqaH6luQbMJ rqZ92IvhgI9LKa7uonznBERfYAdfmSQKE3hXTt5aM9zl/d2efj+6rTia68TmQlHzwzKP OxH5H3TLNlw3a3rk4PyL08n2KXkyPYm/SwTnZ9wYM+fNHCfqu6Jetg2SpA84RqSXIQL/ xvi4lX+2w6zxKZd1rsqB2m7BjsXzWD2hYeDvupQNKpCuMy973SJpW7JyfSGn+ZcX+RQ/ op5IalQI2pc9Fu2jmvbw7eJFPSDFpkdJ5QcUsXWGE2USmloMI9koZsRfkrhOk/EQ9dYG 0AOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ozE0cmIttMTLuBosEiNstLlhdhoGcrcDmK/U0m7kOgk=; fh=dyP2j0XCWfJluSegkFrEv3ARmUYpyGEjhKQmbploFsQ=; b=MmdYexatJIs07vPG7sC1XumDJF6L8+R+oZj9OZANfL07DPqhhYEdl3QIuKG07HgKd+ 98U8daFPxGcrf6jCDCjZVx7R4ah7N4odIDCu/hc8qtQr09VqzMQUyrMzJIixH0mOJI/a qf87d08k7CpiVVOeMVaroa732mKqG/ST+jc0Tt2D12Z6Eon4eKjyUFgb8A4TWrIrIFPE y5XWvrblWzXyazO+MvEH2wehDFmCHAPTLn5GEwfs3HUPTqZoSS7ATJ3lNUdpGtjQAcGC WBpN0yZXdgZ+2fRwIBVu1Dv9+kpnyDDh1dqUzrPF+zc23ecgpCZtrmYUmWh84bZyfQ5F 9jDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SrVz9qlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a34-20020a631a62000000b005c6b4091c32si577213pgm.385.2023.12.05.08.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 08:54:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SrVz9qlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 78A028181B9F; Tue, 5 Dec 2023 08:54:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235028AbjLEQxS (ORCPT + 99 others); Tue, 5 Dec 2023 11:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345227AbjLEQwt (ORCPT ); Tue, 5 Dec 2023 11:52:49 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F041BDF for ; Tue, 5 Dec 2023 08:52:17 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50beed2a46eso4241e87.0 for ; Tue, 05 Dec 2023 08:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701795136; x=1702399936; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ozE0cmIttMTLuBosEiNstLlhdhoGcrcDmK/U0m7kOgk=; b=SrVz9qloL3NcMjegLB+b4Ub3c5Mv77FCcrKFWDWbwtIL7PV8KZEGO0hKizp/Bao4G2 etTmXjHUnBkxurelN9rwYi3OdMcGGQXiWVWsMxFeh4wokgIOrvKMlOTGmT12QsAw7oQB +dcN5e1oAfwmNbzdZ8nkEguy+vmU6WGPlSDxEz3p/6f8lbrytwROkVFKilcD4+UmL1Ld xlQobl0p3SpT5gTpZTKltHcXpYrlIhN3D16pSreJ9fWa1YcH5SVRXXyIEzAS2pacpi8i UWt+ME1J5e91Xo1bihirb4Rqj+LtMR1TGpe8W9zpbxlzSuBVxqXoyxZsPCjpLJFsdoax 55Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701795136; x=1702399936; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ozE0cmIttMTLuBosEiNstLlhdhoGcrcDmK/U0m7kOgk=; b=ffrw9WPKByJ45ZV9k/mjxOSNiDPHqhoRLN57CoakiRG01wI97ExLPH/kW2mZwVP0v/ KtoPxaGfR8Q8mgkh8Ul6ZFVB7UhMJswPgtz1yG+qJwRS/KtFtepKCN+bpZOODvenocI+ IgPypaeMcfZJpntQ2X2OIFKyymEOBno7/AImWZTIBwTaU55OcKXCd3nY4Xj2fGk451tt U16bXnxc9aUbkZ7G7mkc5PZ2LtpF+xTIVS9pDuLtz2hA+xQXh9ZpDEMS8jDIgcJSaEfV IWV9GDbMoJAj6PdV9enA+JG1S2dOoZpST31kzUvfQOntaEOv4BzvFWiekpY4S8zx85Zu XbZA== X-Gm-Message-State: AOJu0YxadRpxQn/ppiDxnYrvZv98uytleknb/AAtemPIhVy/HXA8g4yh 6vQgapkrPO4n/PAxaDxlOIaqWeZdo3qKQLXahm3ceg== X-Received: by 2002:a05:6512:3d88:b0:50b:fa6c:3e11 with SMTP id k8-20020a0565123d8800b0050bfa6c3e11mr186655lfv.6.1701795135616; Tue, 05 Dec 2023 08:52:15 -0800 (PST) MIME-Version: 1.0 References: <20231120190408.281826-1-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Tue, 5 Dec 2023 08:52:04 -0800 Message-ID: Subject: Re: [PATCH v1] perf test: Add basic perf diff test To: Adrian Hunter Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, atrajeev@linux.vnet.ibm.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 08:54:10 -0800 (PST) On Mon, Dec 4, 2023 at 9:44=E2=80=AFPM Adrian Hunter wrote: > > On 4/12/23 18:00, Ian Rogers wrote: > > On Mon, Nov 20, 2023 at 11:04=E2=80=AFAM 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/d= iff.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=3D0 > >> +perfdata1=3D$(mktemp /tmp/__perf_test.perf.data.XXXXX) > >> +perfdata2=3D$(mktemp /tmp/__perf_test.perf.data.XXXXX) > >> +perfdata3=3D$(mktemp /tmp/__perf_test.perf.data.XXXXX) > >> +testprog=3D"perf test -w thloop" > >> +testsym=3D"test_loop" > > Could it benefit from skip_test_missing_symbol Good idea, sent: https://lore.kernel.org/lkml/20231205164924.835682-1-irogers@google.com/ Thanks, Ian