Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3173494rwb; Thu, 29 Sep 2022 22:50:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XpwHseyz9G3zozDVBFzvpI04thVwx/Vn7MSwWcNMr3YRAnmdCMU1VF1dsFl+j2qfrKzge X-Received: by 2002:a17:902:f70e:b0:178:8895:d1fb with SMTP id h14-20020a170902f70e00b001788895d1fbmr7251051plo.166.1664517036088; Thu, 29 Sep 2022 22:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664517036; cv=none; d=google.com; s=arc-20160816; b=majuvGFGHsHLnTIGBYaSZb0bLp7jl3qrdee3V8dgK4ll18WVxi8R1ia5374yohKbQj mkBPTqJPw417VYGViRf/f2ZZb02bEArAO+29Qkywoxx3050TSAFkgCvDRtJ066rj412u yz3er+Tg9ttzC/pSWj5vwHrkg3zxly0hVbVkewzn90aDaM6S7ZTQS2AuyHYy3AD3bbsn SMQByNugGyPBimYikHymKrfoS98iXNWEEvHw9OWOdzK3826isd6ZPI6kx2BpBS1Fb4yJ 8M9hYjaVxyBMv+SgQhJ7EFqH5V+4lmQS/EPuo/286wOHj0E75AwWycJRPZywoZOJPT/Z rLxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=6RM89Byu2LpMlB032kAwVuhcqo3t7ahKn4wTlqPwd5U=; b=RPFIorfxQ31MQB9HESMJ/Gg3Ip+6BpTbFn033PX1cqdhBPBFO6tlMs2qD2Wf96SN40 Ka6IwRdaiY8GJ1jNtFqXBoZ++6XjsUmwY8RX6oeSMKhptZEw6rCX/nv/O9BF4PEl1v59 ap4jea7nZQNt00hv+IRl+gOWw1iqCETaELuV4ea+DphMl9UndsFcp9pqAkDiQ66a1msx vBz0nwFjHSc5HXQsKsodmXMEGvSRtDILK65d2SCFfNaZLyzg8IZYoVMfSqwwwAQ1LWgR GsweEtUQexDhla8bbKCI7SDajkZ/Gk+Zmtb8Sb8eXyX4hk+tan4RxIMc6erK9SECY2/4 X/0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902f78700b0016c058d72b2si1814168pln.238.2022.09.29.22.50.21; Thu, 29 Sep 2022 22:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230240AbiI3FJT (ORCPT + 99 others); Fri, 30 Sep 2022 01:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiI3FJR (ORCPT ); Fri, 30 Sep 2022 01:09:17 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44CAD1E76BA; Thu, 29 Sep 2022 22:09:15 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id w13so3698462oiw.8; Thu, 29 Sep 2022 22:09:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=6RM89Byu2LpMlB032kAwVuhcqo3t7ahKn4wTlqPwd5U=; b=UL/vEGGlKuK6SlP7pTvrZtS+ktrR2DQ3LEva2sDd3/emiVL6FfpLTDoLcQeDy5Pn7g l4J0ke/GDtvj62VrFLRX2iMM7/A7tf2zFcL4CxLYp97iGBhO44TABl/Tk3ZjT8svBhdM xl6N71agm51ScRKJWpRk5IVl8S/9U/SXhBlD4NYiROEY+a/fKJ8pCpGTnk7WGOHRbENA w6GDHsNU+2YKSdVNkFQseIYCF0mVcVz63pWmuQqqYTbq0HvhvHjQjv4zF+qeqVaUUYjR cazlVeDboiBfu0dSOW1LMzmHSjL2z5WsQH+btEm4ioogJDCAHtRvgXAQOdz1WQ5Zn9mI 9hUw== X-Gm-Message-State: ACrzQf2RYD/b/CQBfkNCFQd0PbAId30uILfXfX/X98x/SmHPy8AVlF0A iOMq6ad7eEqQCKoJTRgb7arQC6wfnjsC1IeKe/U= X-Received: by 2002:a05:6808:1a09:b0:350:107b:f89a with SMTP id bk9-20020a0568081a0900b00350107bf89amr3222806oib.218.1664514554592; Thu, 29 Sep 2022 22:09:14 -0700 (PDT) MIME-Version: 1.0 References: <20220928095805.596-1-ravi.bangoria@amd.com> <20220928095805.596-5-ravi.bangoria@amd.com> In-Reply-To: <20220928095805.596-5-ravi.bangoria@amd.com> From: Namhyung Kim Date: Thu, 29 Sep 2022 22:09:03 -0700 Message-ID: Subject: Re: [PATCH v3 04/15] perf/x86/amd: Support PERF_SAMPLE_{WEIGHT|WEIGHT_STRUCT} To: Ravi Bangoria Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Stephane Eranian , Ian Rogers , Joe Mario , Leo Yan , alisaidi@amazon.com, Andi Kleen , Kan Liang , dave.hansen@linux.intel.com, "H. Peter Anvin" , Ingo Molnar , Mark Rutland , Alexander Shishkin , Thomas Gleixner , Borislav Petkov , x86@kernel.org, linux-perf-users , linux-kernel , Sandipan Das , ananth.narayan@amd.com, Kim Phillips , santosh.shukla@amd.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 28, 2022 at 2:59 AM Ravi Bangoria wrote: > > IbsDcMissLat indicates the number of clock cycles from when a miss is > detected in the data cache to when the data was delivered to the core. > Similarly, IbsTagToRetCtr provides number of cycles from when the op > was tagged to when the op was retired. Consider these fields for > sample->weight. > > Signed-off-by: Ravi Bangoria > --- > Note: > While opening a new event, perf tool starts with a set of attributes > and goes on reverting some attributes in a predefined order until it > succeeds or run out or all attempts. Here, 1st attempt includes both > WEIGHT_STRUCT and exclude_guest which always fails because IBS does > not support guest filtering. The problem however is, perf reverts > WEIGHT_STRUCT but keeps trying with exclude_guest. Thus, although, > this patch enables WEIGHT_STRUCT support from kernel, using it from > the perf tool needs more changes(not included in this series). Yeah, it'd be nice if kernel could expose more pmu capabilities like no-exclude then tools can skip setting it for them. Thanks, Namhyung