Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1870031lqp; Mon, 15 Apr 2024 23:17:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUINMoSC3WuhjFEg7BgDwjofOJsaljtZs/R48FO6+gwAK2I4vbZPXzcLO5LSDQKT2FkyiuCyfs0V+HAGp1XkVnAjybQzpx3lv1Z7JpbtA== X-Google-Smtp-Source: AGHT+IGPM+C3Chtaz0ML0uPReT/CdOHIZzMbHtaVzp0abRzXklSpGoxlAEL1KCYtGtHxB6W/kZGf X-Received: by 2002:a05:620a:144a:b0:78d:7474:9b50 with SMTP id i10-20020a05620a144a00b0078d74749b50mr12353940qkl.39.1713248228381; Mon, 15 Apr 2024 23:17:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713248228; cv=pass; d=google.com; s=arc-20160816; b=UfZVNY8T1Nnhr/xhSjEZigTSFKzXkbDJmyTDNhC2qcfK1N6DyGhG62C3NCuIFv/nLd KLX/HxMxrapmZMspKIM+N2WdKSl02pBm4J8zmtmkt1EVIqGlbOPPR3xYTK6I3GLiE8RR Mcn7JVOnEFKkkHVMMJEMCV3GDdTGJEiWdzLtsKn8py+cpGXMuw6MajRjNP6m3C8CcKQz fRYJUqJVfziUikOa8MJxFEzzY8uTyG3UD1sHpnUvnh7VG110qMc5+MIDeHZJgTsd5iE5 +sUTCfuJZoAFuw/qggJNwWgJCJEf0ZCeZ95YysrVXgoi+qfauTXOppx9Y4U5AVjlhMfG yVAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=UJgB8sDKrPml3/XRc3D6gD41xE7ASJL2MP2+Oe/niCE=; fh=0tdTIVz1nUVhxvf0F2PZA7BYEvjY2FtGD6r5pmFNU74=; b=RtCQTqi51X0gu2bFtwYhZF77NJeTE8HRFMupY1ZUsPKLaU11TE3SxTL/E9plxi1H0j uSI3Knj4mk6DBMVjSaiH4GuUGtVvMyhHylTagJ6YPiLn3qyFHt8L3SxgO033PkOpUd// PY9lurEZAR9klPEIy3s0uh1MHx7jWkfHqxO1vKYpGSqXl570SivcwSeV9gCQRhu5aHUS pwGXWmBfmMDKXQlzBonrLD6MtoGomGBbSChfHjTKP/PJEXixY7GNxHZfSPPrchtlVCGo dHVU7HG18iayyRuJ0qXg04leLS21miJwjZZVAwdX0mRXGjpyIc3Yt/E+rKFy9Rp2JQip gJrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=T4zthJnQ; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-146326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g9-20020a05620a40c900b0078ed418540dsi9042230qko.351.2024.04.15.23.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 23:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=T4zthJnQ; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-146326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E30B1C20F8B for ; Tue, 16 Apr 2024 06:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A92D36D1C8; Tue, 16 Apr 2024 06:15:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="T4zthJnQ" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 889EF6CDC4 for ; Tue, 16 Apr 2024 06:15:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713248157; cv=none; b=L9ZtUHNh7NSw/0NHeJvgR+hkirCcixiep1ksOT5lYtmC7SfictauZLwdVfgZH5MQ7JameRRpHFh67ineCYlx7v7EG/4TQDDd/ByVnToT6MDWtwkcct93AagscFf01MgqxKR1FBIjarGQUqKDVWNwkxvzrCDutvroAXGOfROA3Uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713248157; c=relaxed/simple; bh=jUPnR8Eh1nwHTyI5wvU5SHFzAhN1eHw5S1/Bwquryzg=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=fCKcpY+g92RF9EWDeJzwGHTy+PPzj34Iuiu/sLofKlaW986sG+9XH+GqBzQ9zzyDP1NEfY54woYpx2CCfcdkNxcEKN3KILOQ4e2rukgXQzoXfAZE9UW8R5RlHlg79Wh1E1xZ0SVx5Nay6Ktziy+LhsRkRMLD58zsSpaZRKQZo6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=T4zthJnQ; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-60cd041665bso68734237b3.0 for ; Mon, 15 Apr 2024 23:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713248156; x=1713852956; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=UJgB8sDKrPml3/XRc3D6gD41xE7ASJL2MP2+Oe/niCE=; b=T4zthJnQjIgsQSTjSiNfDEarAik0KXjq92p6b3EBIeUPznZRCGJ4Ar/gsCIUiWkotW l6t5+Zji2uVxVHC7mPk/vGoTeOHyf2C0WSmpPNhDsudRIp5QrHfIDqmdqcpCPw14lMqs fpGRN4h6vnZWfH0OA56y9WRVmS21SML5rQDx/gXlzLAsoFbwoQk8EixnBRw5d7gYAzSA 2bCM48y7m/rBQWwYisR65iZYGpANvn6zJp4HAm8WNrxTmPeWxmqJT7ztSLIKvz5nlEkJ GLcTiW7Wswmdn7TXiRDFaW/89eOzdOyT9qpb9AobL/xZP+8cVCzay3ZwGrz0oDkY+BF/ RZog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713248156; x=1713852956; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UJgB8sDKrPml3/XRc3D6gD41xE7ASJL2MP2+Oe/niCE=; b=Xk+JdaAxGkzeFkA9oYnvCPW3H92s8Dm8PaaXKjiNv0Xnr0lAYdfxq3qG/iDuCwKYpn vUfFls+wzw10oR/net0t/OA/yB7FkTdnIV6SkVygOrsg3ncTbuUTcpTckXZXRPjUkAfu 2FqB9YfdghRMrLM/BjRuMENZoDUgLow+xh9WeoHlGQTiehL/YDACH3qmwytfxN47R1UT 5W3FqByDxeoXWPO2pJfqrvPhEk27CHs0FmaoLQh4S20J2Q2orgYUwn7i8dDM/3n427/z Oy2ZX+7dNl0WIVtLulwhuScQsbSLal8VT5gNYUrtEePdigjNMqVBv86DjH2WyEBmysGw Tytg== X-Forwarded-Encrypted: i=1; AJvYcCU0TTJbOFDxKGJsKvBU+Ytz7OkpBc78Hn7jShCPZu1bTQ/UKBsqU1VOnyzHW2C3QY0sXFKTLgBrL9pj39uwo8vn+1ayI6KYbJjNhiqh X-Gm-Message-State: AOJu0Yw5QJefuCbH5sQse/IAI6NlROpFoRcGAk8ztVHG18AOs8Bnh/4S qMkTGDwKVIeiFPKHZcFIe7C6xeJeKH0aapHIzu5ockl3mMGGpLmwgQCD7Cejg7pk8C/UgHxcIsb KsBW/fw== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:30c8:f541:acad:b4f7]) (user=irogers job=sendgmr) by 2002:a05:6902:1509:b0:dc2:398d:a671 with SMTP id q9-20020a056902150900b00dc2398da671mr3887166ybu.10.1713248155750; Mon, 15 Apr 2024 23:15:55 -0700 (PDT) Date: Mon, 15 Apr 2024 23:15:21 -0700 In-Reply-To: <20240416061533.921723-1-irogers@google.com> Message-Id: <20240416061533.921723-6-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240416061533.921723-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.683.g7961c838ac-goog Subject: [PATCH v2 05/16] perf tests parse-events: Use branches rather than cache-references From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Atish Patra , linux-riscv@lists.infradead.org, Beeman Strong Content-Type: text/plain; charset="UTF-8" Switch from cache-references to branches in test as Intel has a sysfs event for cache-references and changing the priority for sysfs over legacy causes the test to fail. Signed-off-by: Ian Rogers --- tools/perf/tests/parse-events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index 0b70451451b3..993e482f094c 100644 --- a/tools/perf/tests/parse-events.c +++ b/tools/perf/tests/parse-events.c @@ -942,8 +942,8 @@ static int test__group2(struct evlist *evlist) continue; } if (evsel->core.attr.type == PERF_TYPE_HARDWARE && - test_config(evsel, PERF_COUNT_HW_CACHE_REFERENCES)) { - /* cache-references + :u modifier */ + test_config(evsel, PERF_COUNT_HW_BRANCH_INSTRUCTIONS)) { + /* branches + :u modifier */ TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user); TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel); TEST_ASSERT_VAL("wrong exclude_hv", evsel->core.attr.exclude_hv); @@ -2032,7 +2032,7 @@ static const struct evlist_test test__events[] = { /* 8 */ }, { - .name = "{faults:k,cache-references}:u,cycles:k", + .name = "{faults:k,branches}:u,cycles:k", .check = test__group2, /* 9 */ }, -- 2.44.0.683.g7961c838ac-goog