Message ID | 20231211181242.1721059-1-irogers@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7245814vqy; Mon, 11 Dec 2023 10:13:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGM54oGdoUlcDordq0vYRjXoQHbjMbNbfs+Sq8USjSmYvO6aKlyiUDBwlwb3zGrzhEmxD6v X-Received: by 2002:a05:6a20:9782:b0:187:dd5f:93b9 with SMTP id hx2-20020a056a20978200b00187dd5f93b9mr2074939pzc.14.1702318390345; Mon, 11 Dec 2023 10:13:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702318390; cv=none; d=google.com; s=arc-20160816; b=k+SculKqvnoOKACNALtu3lEtQ9gReuPPJlCges/uwcwtQ1bQ6lJDW4mUbVzceT9XD3 C0GhP1jz0Ba4K+oPfukjsjI0dqchFKIC+Xuu9910wH3vIBke5UcdGVxTy7zF1A6E1q8J FyzN63g0nGwlTACn2amqjoWsFa9JY37jBYIV37BYtJvDaebh1YcdLPIpJxevUcXUMyhk 25vZkhq3B+OKz6Ay7XC1c7Xf5cjMj4VMIMoU+bQOM8vKZLOHUUgutugSCEpZY2iDZarG ll6dQkcjsnf83/6n32/gD33REP3PjP98H+x/s+ToiwhHwwSFUSz5lBUgSoDFjA1G+Nhx xH2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=q3zU0Mza8xelLsIrsnPiZI1psCs6jGW5zuolURJTG2A=; fh=ROm3rIlPO6v0uTK2D/onCqUhF8N1BxVQy79pGQiPXxQ=; b=oDRouahEMoLbk94BBJn3R2vSKRuh/bzb5ASBvmMXtFceIjmSTOtsPqQ+mYgkYmQFV3 UVTbzXlqBgwS+EO8cXWpkPuv1Z3dKASSBwbAI3oskYfhnWVQo0/r6msKhepS38s5RmEg Fe1Wiq4wLxplxtGa9CYrzhFBEKfs0qF8xWgDjAuCQlP9HCWKkxr0iNkKmYFNWxffVpa6 4oAfuQJ6PAv9E8daCDYST4n4wXA8V03Zeshqrmsp11sFpHrl4nwANX2ZtEf5l0Yiwpge zha8qDlSJtpwKDpF4QDXitlHxMYacgp6GHhR3ZHrqG33QtltMIj1O7Eozox9gYlmuutv qpTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="qkYC/+W6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n12-20020a65450c000000b005c67bf38064si6202968pgq.354.2023.12.11.10.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 10:13:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="qkYC/+W6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 47BF8809A81C; Mon, 11 Dec 2023 10:13:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345287AbjLKSM5 (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 13:12:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345211AbjLKSM4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 11 Dec 2023 13:12:56 -0500 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1AA95 for <linux-kernel@vger.kernel.org>; Mon, 11 Dec 2023 10:13:02 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5caf61210e3so53678957b3.0 for <linux-kernel@vger.kernel.org>; Mon, 11 Dec 2023 10:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702318382; x=1702923182; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=q3zU0Mza8xelLsIrsnPiZI1psCs6jGW5zuolURJTG2A=; b=qkYC/+W6fAj6/EytOdsO61Mf2TH19e+VrAuC1bTyYHA4e49Fnea4tI5JkTEXVAfZqu A3IU0TFs6TCcChAoHnI1lTf12zG2mM+/R264rSykA2Wg1qTJos8gk6C3xd8RjuqBl496 GruzQ8ScYweLw0sDzKoAKsaSlQRrLjXoWlHrAbiAs4nHXH0/ifZYkQFiVHSjJdr6hbFr HBflecuFmovXV7Q7txoVIHTJ7nH5Lg9JOJBGRK+7P8fJ/dyZT9uUKynLdJzlQmaiS2XC gtfxjNJstDSeXEwAG9bImWO88uwSMAojul7q+tnr9EPej3h5X4N0PsYFKY+ZvXgB8Jy0 O6Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702318382; x=1702923182; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q3zU0Mza8xelLsIrsnPiZI1psCs6jGW5zuolURJTG2A=; b=QYopHh6bymxK8WZzj4xILF638npC6Kal3LcYM0yVSUQdvv1RE8RF2d4KDLHkUUaWaN dCqmlZeGHMkoE2YPLjxogwGI5H8bNTsFPgvuOwizVYR4Zj91pS+v+f+ZxePUGREvjfDZ PErfuLyZwBvQrMkAlBzrpl2hQTPH+4dqgz50mEzVY4mkG7eyyC25bJdjqADNR2tv2vcJ gYT0p2ArGXaKsT5eKBEfUxJ4DNJdAGAXOwgYY9dlJqAJLbfjniyvxImjZoqiGbXSVGrz yG2nIXwDDRVitCp7Xo10eyQkiIoJd6EoGxrSCNPSWHlmAb8NOWexi9O9SjykvyVON0w7 J7Dg== X-Gm-Message-State: AOJu0YzubaOxYu68P04gqVVTu+rRc2y/33Pj0tVBrNXLd7ntBUWjss5m rsGfusvVgtfzbTwU4ZfF6CFKWW0RjgoN X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:7997:94ef:ba9a:d2b6]) (user=irogers job=sendgmr) by 2002:a81:fe04:0:b0:5d2:735c:b9f4 with SMTP id j4-20020a81fe04000000b005d2735cb9f4mr40965ywn.1.1702318382095; Mon, 11 Dec 2023 10:13:02 -0800 (PST) Date: Mon, 11 Dec 2023 10:12:41 -0800 Message-Id: <20231211181242.1721059-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Subject: [PATCH v1] perf stat: Fix hard coded ll miss units From: Ian Rogers <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Kan Liang <kan.liang@linux.intel.com>, John Garry <john.g.garry@oracle.com>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Guillaume Endignoux <guillaumee@google.com> Content-Type: text/plain; charset="UTF-8" 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 howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 10:13:06 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785010208634117749 X-GMAIL-MSGID: 1785010208634117749 |
Series |
[v1] perf stat: Fix hard coded ll miss units
|
|
Commit Message
Ian Rogers
Dec. 11, 2023, 6:12 p.m. UTC
Copy-paste error where LL cache misses are reported as l1i.
Suggested-by: Guillaume Endignoux <guillaumee@google.com>
Fixes: 0a57b910807a ("perf stat: Use counts rather than saved_value")
Signed-off-by: Ian Rogers <irogers@google.com>
---
tools/perf/util/stat-shadow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Dec 11, 2023 at 10:13 AM Ian Rogers <irogers@google.com> wrote: > > Copy-paste error where LL cache misses are reported as l1i. > > Suggested-by: Guillaume Endignoux <guillaumee@google.com> > Fixes: 0a57b910807a ("perf stat: Use counts rather than saved_value") > Signed-off-by: Ian Rogers <irogers@google.com> Ping. Trivial 1 character fix but no reviews :-( Thanks, Ian > --- > tools/perf/util/stat-shadow.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c > index 1c5c3eeba4cf..e31426167852 100644 > --- a/tools/perf/util/stat-shadow.c > +++ b/tools/perf/util/stat-shadow.c > @@ -264,7 +264,7 @@ static void print_ll_miss(struct perf_stat_config *config, > static const double color_ratios[3] = {20.0, 10.0, 5.0}; > > print_ratio(config, evsel, aggr_idx, misses, out, STAT_LL_CACHE, color_ratios, > - "of all L1-icache accesses"); > + "of all LL-cache accesses"); > } > > static void print_dtlb_miss(struct perf_stat_config *config, > -- > 2.43.0.472.g3155946c3a-goog >
On 2024-01-02 2:34 p.m., Ian Rogers wrote: > On Mon, Dec 11, 2023 at 10:13 AM Ian Rogers <irogers@google.com> wrote: >> >> Copy-paste error where LL cache misses are reported as l1i. >> >> Suggested-by: Guillaume Endignoux <guillaumee@google.com> >> Fixes: 0a57b910807a ("perf stat: Use counts rather than saved_value") >> Signed-off-by: Ian Rogers <irogers@google.com> > Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Thanks, Kan > Ping. Trivial 1 character fix but no reviews :-( > > Thanks, > Ian > >> --- >> tools/perf/util/stat-shadow.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c >> index 1c5c3eeba4cf..e31426167852 100644 >> --- a/tools/perf/util/stat-shadow.c >> +++ b/tools/perf/util/stat-shadow.c >> @@ -264,7 +264,7 @@ static void print_ll_miss(struct perf_stat_config *config, >> static const double color_ratios[3] = {20.0, 10.0, 5.0}; >> >> print_ratio(config, evsel, aggr_idx, misses, out, STAT_LL_CACHE, color_ratios, >> - "of all L1-icache accesses"); >> + "of all LL-cache accesses"); >> } >> >> static void print_dtlb_miss(struct perf_stat_config *config, >> -- >> 2.43.0.472.g3155946c3a-goog >> >
Em Tue, Jan 02, 2024 at 03:01:55PM -0500, Liang, Kan escreveu: > > > On 2024-01-02 2:34 p.m., Ian Rogers wrote: > > On Mon, Dec 11, 2023 at 10:13 AM Ian Rogers <irogers@google.com> wrote: > >> > >> Copy-paste error where LL cache misses are reported as l1i. > >> > >> Suggested-by: Guillaume Endignoux <guillaumee@google.com> > >> Fixes: 0a57b910807a ("perf stat: Use counts rather than saved_value") > >> Signed-off-by: Ian Rogers <irogers@google.com> > > > > Reviewed-by: Kan Liang <kan.liang@linux.intel.com> Thanks, applied to perf-tools-next. - Arnaldo > Thanks, > Kan > > > Ping. Trivial 1 character fix but no reviews :-( > > > > Thanks, > > Ian > > > >> --- > >> tools/perf/util/stat-shadow.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c > >> index 1c5c3eeba4cf..e31426167852 100644 > >> --- a/tools/perf/util/stat-shadow.c > >> +++ b/tools/perf/util/stat-shadow.c > >> @@ -264,7 +264,7 @@ static void print_ll_miss(struct perf_stat_config *config, > >> static const double color_ratios[3] = {20.0, 10.0, 5.0}; > >> > >> print_ratio(config, evsel, aggr_idx, misses, out, STAT_LL_CACHE, color_ratios, > >> - "of all L1-icache accesses"); > >> + "of all LL-cache accesses"); > >> } > >> > >> static void print_dtlb_miss(struct perf_stat_config *config, > >> -- > >> 2.43.0.472.g3155946c3a-goog > >> > >
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c index 1c5c3eeba4cf..e31426167852 100644 --- a/tools/perf/util/stat-shadow.c +++ b/tools/perf/util/stat-shadow.c @@ -264,7 +264,7 @@ static void print_ll_miss(struct perf_stat_config *config, static const double color_ratios[3] = {20.0, 10.0, 5.0}; print_ratio(config, evsel, aggr_idx, misses, out, STAT_LL_CACHE, color_ratios, - "of all L1-icache accesses"); + "of all LL-cache accesses"); } static void print_dtlb_miss(struct perf_stat_config *config,