Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp629860pxv; Fri, 9 Jul 2021 05:56:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY7DFWHdG+K3eCjoInenjucdWtampD7LNuY4yUAerk5Ou6CrYmZ571sLSztT9i3sDSbUOP X-Received: by 2002:a05:6402:58:: with SMTP id f24mr47929998edu.234.1625835418407; Fri, 09 Jul 2021 05:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625835418; cv=none; d=google.com; s=arc-20160816; b=MK5ELwzQclJvh7tSFJ9fJo6I0C0sgOzBRJwVNw/nitGrchZIZxkDJke2CDrDIOGIhC zYEcClXe/3nNcQHZ8tVYWG5Cy0SHSjyYZKo8VN39if+TWlnjvlUsaidMukpKX6MHxxhu 5j84LnaBBQG3KNl/y2f9KIpGHmWVYy70qN0xzR+Z4w0AKREqOlhg/ZpJFuusaPeqRfHc h4lSXV3Y7VPQkwRSDltzslmWDzWokgLlww/d/gTaUZIyFmwIh6dKSQ9UoH7ge8s8Uhlo V/te52NtUlMyW+nlfq+vpLlGON8BlSfxEii3wV1HobshmuSAIlSSXG8nOd9IRWvQmyJM sH3w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q8xXv0eArWieBViJ/9BAEj2ohVlEe05XC5HqPC+UM6s=; b=vwRI3giTGBfeaZTOZy4TUZqN78MwzjzUuPVDAeWTvpzNbuB2+ahfrtC+7ELNEd2Sz8 ZTDblCi1hxtj9zEJRYuxvfOu/Jym/WnpFwtzR10xbb20z2Ul31NwwAaFzZVAxYUNS/kf 5BFeN/gXHar/gNZF4XXFloiZnbXquBpS8Rg1T+Zbd7sP7fTjibts5K2z72boHWTX8mGg 3V1rqeCPPV/9DywG8pVZl1Yn+8VsVDXkc5lnwY/zzfTAzzNcetWDVyLv1lZvjI+8iuXA 56Ye/SxbrOt+13ZxdII2EbYWwcwrE0XpteXxDGMkdBmCy5sGWSmPoYtGFIeZwY+WcOO9 S9CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gCc+tS7Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hw7si7303160ejc.405.2021.07.09.05.56.35; Fri, 09 Jul 2021 05:56:58 -0700 (PDT) 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=pass header.i=@kernel.org header.s=k20201202 header.b=gCc+tS7Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231453AbhGIMyt (ORCPT + 99 others); Fri, 9 Jul 2021 08:54:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:46148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhGIMyt (ORCPT ); Fri, 9 Jul 2021 08:54:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D15736138C; Fri, 9 Jul 2021 12:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625835126; bh=Wtc6at4EMqah+8lowzdqgZUoTzKBCQyUdjkUDeV9SJQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gCc+tS7QS3rSYo8B2Ur55ib22wyOTkpQDcFL5F2FC+3CF19rilIMwARhbSOqWLb+z ZIK1Ro8VA5kAUEnoM1SbxupTej9e9FJ6lFmxT+PMiwf0s6y1ZOKJIod2BB4/fglcoJ 7fmDmpDbjdUpUUMAkb9Zv/TDA3Vo2DIALPBw9MJQxXEHGCQfVrEejdB4b93IELSIRV edEvrIAOg/SBu5oBsKNJ2Qs+lxijAlZmS/rlgqYOyzg3LH0OFFlwfKa1taJSGvW9BI QqywldFABFDFabVuie/Ywug8SWCMo8lMiUMPPwpXnde4SZS74h3TOFqt6PsgPWJObL H6NQ3ZY4EynhQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 567B040B1A; Fri, 9 Jul 2021 09:52:03 -0300 (-03) Date: Fri, 9 Jul 2021 09:52:03 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: "Liang, Kan" , Ingo Molnar , Jiri Olsa , linux-kernel , Yao Jin , Kan Liang Subject: Re: [PATCH] perf stat: Add Topdown metrics L2 events as default events Message-ID: References: <1625760169-18396-1-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 08, 2021 at 10:31:34PM -0700, Namhyung Kim escreveu: > On Thu, Jul 8, 2021 at 9:04 AM wrote: > > With the patch: > > $ perf stat sleep 1 > > Performance counter stats for 'sleep 1': > > 0.59 msec task-clock # 0.001 CPUs utilized > > 1 context-switches # 1.687 K/sec > > 0 cpu-migrations # 0.000 /sec > > 76 page-faults # 128.198 K/sec > > 1,405,318 cycles # 2.371 GHz > > 1,471,136 instructions # 1.05 insn per cycle > > 310,132 branches # 523.136 M/sec > > 10,435 branch-misses # 3.36% of all branches > > 8,431,908 slots # 14.223 G/sec > > 1,554,116 topdown-retiring # 18.4% retiring > > 1,289,585 topdown-bad-spec # 15.2% bad speculation > > 2,810,636 topdown-fe-bound # 33.2% frontend bound > > 2,810,636 topdown-be-bound # 33.2% backend bound > > 231,464 topdown-heavy-ops # 2.7% heavy operations # 15.6% light operations > > 1,223,453 topdown-br-mispredict # 14.5% branch mispredict # 0.8% machine clears > > 1,884,779 topdown-fetch-lat # 22.3% fetch latency # 10.9% fetch bandwidth > > 1,454,917 topdown-mem-bound # 17.2% memory bound # 16.0% Core bound > > 1.001179699 seconds time elapsed > > 0.000000000 seconds user > > 0.001238000 seconds sys > > Reviewed-by: Andi Kleen > > Signed-off-by: Kan Liang > Acked-by: Namhyung Kim Thanks, applied. - Arnaldo