Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1073959pxk; Thu, 3 Sep 2020 22:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz9HpuLwz1TYu1ygm7CjEbXRlWwhGDzmMJEX8p0ZOepCWKuhjW1xRrtIYJLM4RIAwi+anM X-Received: by 2002:aa7:d5d2:: with SMTP id d18mr2657519eds.115.1599198647260; Thu, 03 Sep 2020 22:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599198647; cv=none; d=google.com; s=arc-20160816; b=ffEJZObtQc1uR7Oim9j4Q1pf92EMLLRrDp5PgHY7NhP+kfAIXYl8VTCOMTIggoL8ql ffpIkzAM7+59SW0oPmpBJsoZ8qEI0JtXUmYsbBa2xEUnEAk1jR16C9/3wxhB1DDkn4Bx QdzSpj1UiXKJ0czYPFi9JZXM6l0Gms3GpH7c9qZaIu2iE+ubk3NlMA6IXVXvKTaY7x2S 2ppsAC7DQVVkp27HaqnJukbNXxSTFMMVUcsmMVScGyuJjJYxPmSAOLIK6BTPT9ds//vI FhLhzJNWBqejxKsuKsOzNaFOGE7ud3oJtPAT799uDAJC2XCUt9As4yEVa+/nX/0scQZa G5wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hgnV0PJQclKDTkxAfG3hekBCTTnrND7+WP2P78WYx4I=; b=gGLa5cs6m7J2VpM61l4DTnzDnE293++qp7BQhMlQBtoxUO7pYOojc8V3wRpyhg6zrL dgdgVrxbr2o7TJyFs6XUZ6V4B2+SjSSkOcm9tYh7rcvMsmsJ+mh5aF4GfeteR7Y3nQJk S8xLW8cIP5oC7YMxYlPJyIp7m+tlA2ODrDsOeVrOX4kj2J7v9mMyPMCbbM7lhFH2VQ0S /CkuNRQb/6KfdiOnkfOzDStDOZV+Nacrvyf11gwqBbeGAhOShLK4gLjWaa4nNEvCoch+ Vn5u4Gx6Zdb7tj5IUl+442ESK/KuiSuggAhHoIhQQqZQD2uh+dBYbN79efSnzime6g41 p6TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gWNQdR+4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si3449269ejw.12.2020.09.03.22.50.24; Thu, 03 Sep 2020 22:50:47 -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=@google.com header.s=20161025 header.b=gWNQdR+4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbgIDFsa (ORCPT + 99 others); Fri, 4 Sep 2020 01:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgIDFs3 (ORCPT ); Fri, 4 Sep 2020 01:48:29 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21EA3C061244 for ; Thu, 3 Sep 2020 22:48:28 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id g4so5450213wrs.5 for ; Thu, 03 Sep 2020 22:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hgnV0PJQclKDTkxAfG3hekBCTTnrND7+WP2P78WYx4I=; b=gWNQdR+4V1WQ9kufk2M2A9iCehCi3ywVll+q5zq5gCxuHXHN1Ni3IwzRbp03VYPQon /yB1xoN7z+51HJOZaJ+19v+JPgAbBcUSIHTPYwmqpR22o2enjRXCvn5Jsb4FRPBLUKBz t4uogQyNNW9FnkImLSypRnvkFucfB5dlDAQzOfn8NcEbQXTuYX8NKHNpC7k3Gj/ld8hE GLYgqw3bm0pnm53224MrWis7rzEP51FOTiW/w72vlCyduMxXhr4/KFErIFuKMsq7r+wn 5vNwvaQQP69O6H5X/dYrL9lJB9UfNTUoq6DXsmlcwsRA5PwfgMKN58urt2JBOCA42P+q zAEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hgnV0PJQclKDTkxAfG3hekBCTTnrND7+WP2P78WYx4I=; b=V1mp7HqxT5HfPHY22S854ddnBLngYhXMlfCktrn4DkAmBLLCQ1e5PMq7jVSwlgdNEx hraoVtaB6Ltqw2iO9elN2yVeIi1/zR7l4zU28nt/4/wv/5bsmRLenEhqlYvmkxpW7aVS H7wH7izzkfvsn7LrG21eA/Va2RkwFmQ5LDjSSxOpQWTRgu4+gaHf+jniAiA+0QRWFY0i bDpPRMIzLJpTxq6eJffwoWYToKyVhHQdMe11HUIqNqgwztPmT4NcxyInN5Y7nY4EXVph bwmIrtU+1fmiOL44zeE3wVGpW2X0Xyx6Synvf4Irn/i1Bh21Jo4ikZhzRtsNNC8SBBBk LGVg== X-Gm-Message-State: AOAM530bJMSYFufXYdwy+26bRSIeoHRQ/IiayQeS6oO9v9V+PAYj3Q1g dId3kH0rdoM0jS7xPrEVAM6Gy4WYU4M53QhKa6gisw== X-Received: by 2002:adf:82b1:: with SMTP id 46mr6337985wrc.271.1599198506705; Thu, 03 Sep 2020 22:48:26 -0700 (PDT) MIME-Version: 1.0 References: <20200901220944.277505-1-kim.phillips@amd.com> <20200901220944.277505-3-kim.phillips@amd.com> <7a0b893d-8f65-6423-3818-5dafc880dca1@amd.com> In-Reply-To: <7a0b893d-8f65-6423-3818-5dafc880dca1@amd.com> From: Ian Rogers Date: Thu, 3 Sep 2020 22:48:15 -0700 Message-ID: Subject: Re: [PATCH 3/4] perf vendor events amd: Add recommended events To: Kim Phillips Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Vijay Thakkar , Andi Kleen , John Garry , Kan Liang , Yunfeng Ye , Jin Yao , =?UTF-8?Q?Martin_Li=C5=A1ka?= , Borislav Petkov , Jon Grimm , Martin Jambor , Michael Petlan , William Cohen , Stephane Eranian , linux-perf-users , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 3, 2020 at 11:27 AM Kim Phillips wrote: > > On 9/3/20 1:19 AM, Ian Rogers wrote: > > On Tue, Sep 1, 2020 at 3:10 PM Kim Phillips wrote: > >> The nps1_die_to_dram event may need perf stat's --metric-no-group > >> switch if the number of available data fabric counters is less > >> than the number it uses (8). > > > > These are really excellent additions! Does: > > "MetricConstraint": "NO_NMI_WATCHDOG" > > solve the grouping issue? Perhaps the MetricConstraint needs to be > > named more generically to cover this case as it seems sub-optimal to > > require the use of --metric-no-group. > > That metric uses data fabric (DFPMC/amd_df) events, not Core PMC > events, which the watchdog uses, so NO_NMI_WATCHDOG wouldn't have > an effect. The event is defined as an approximation anyway. > > I'll have to get back to you on the other items. > > Thanks for your review! NP, more nits than anything else. Acked-by: Ian Rogers Thanks, Ian > Kim