Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1197209ybg; Fri, 18 Oct 2019 13:37:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf5u9HNhKl3grloTe1xmUefdWlE6zjlKL51LBgXfnl+XSOTdX9NbzZz2job6s5nmeJDCVm X-Received: by 2002:aa7:c556:: with SMTP id s22mr11862360edr.105.1571431077463; Fri, 18 Oct 2019 13:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571431077; cv=none; d=google.com; s=arc-20160816; b=Hb9vdh15RNnLUph+1KJZUow4IUKVSzQv3XM5MbjOAwLAlGIE+0JeXeWrli2uN17BR+ q4R1+8E4HNyJDtOCenDdY0rbZKGDq7gOTpjHxe4l1gRJQDPGZrcL5HyCOniryGZg+qWI g79IX2O90241O7LEhVFievAP7zpFxH8gZ9LvhNEO450JB0Vk+l+iSFZavSShQuSEHDgt fXdNhfq8FH2plWPeKrLGzMjakRtEE90F+MAZ8RZ0IC9pZ8QwYpbip6uXsl6zdo6ihi59 snHv2uSZPdUOLHNiNIfKI6x2n6isq3QbnCNjmQ+zyWjlGHhaJ8UrSFkIzF1ZNvg6GqVh Pzqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L0UgIPZXlTnC6QT5RsMuOGzsm7dQuj8nJ2XZuE8Z1RY=; b=b1NadeqZSWj/K9hoqc369ytIJGgW5tRHh+LK4+JdSz8ReHUFrmeKCvwXlWEbQDs9ic aUI3ZwvJyU82e4+GUZHwA3IAvV+HtiBuvaq4lVH/kWYj7JYE0Mh9eloCYEKiaP10WFJZ aW1A1kOkw9GUdCtwIJO+n2Ur+BDf5zQXK5GOUsP87abZOfw7se6iV6ku7vILxVWNPLyX qTBJqx7JpCycAmxL4U4ZWPio8tBz+WqH8ne2TY2IwoJ48iTzqqQXC2cDQDuccQ4qLq4e PZ/DetxL+IE5VKYVaOdMo4l9hosZgr4HLRHa/CUB7xLoj/HiYCLfnjHMr1K2Pv11wNv7 La1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nTBMsaYs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f17si6233068edf.328.2019.10.18.13.37.34; Fri, 18 Oct 2019 13:37:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nTBMsaYs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2393883AbfJQPr5 (ORCPT + 99 others); Thu, 17 Oct 2019 11:47:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732271AbfJQPr5 (ORCPT ); Thu, 17 Oct 2019 11:47:57 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7210420869; Thu, 17 Oct 2019 15:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571327276; bh=Na2Nvhl68xsqY/U1vzcF8y2RoUFJ7tB0brqS8GUuIDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nTBMsaYsj30+pvrvhsp5QMa9LHG/KT/wnaeWiosKOwEZwGC+bmFOedbNB8Dqc9NQY c9VZYT5ZEy3xT/lud+/9DZyEDKsXI9OMgr8RXJ8CgHpPyddwRVe/Znv/cOnqT8kH8l +vUOjRyx2SzPb3fuHh8F4WPfYg9JOqsSH6/4mqCM= Date: Thu, 17 Oct 2019 16:47:51 +0100 From: Will Deacon To: Ganapatrao Kulkarni Cc: John Garry , Ganapatrao Prabhakerrao Kulkarni , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "corbet@lwn.net" , Jan Glauber , Jayachandran Chandrasekharan Nair , Robert Richter , Zhangshaokun Subject: Re: [PATCH v6 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. Message-ID: <20191017154750.jgn6e3465qrsu53e@willie-the-truck> References: <1571218608-15933-1-git-send-email-gkulkarni@marvell.com> <1571218608-15933-3-git-send-email-gkulkarni@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 12:38:51PM +0530, Ganapatrao Kulkarni wrote: > On Wed, Oct 16, 2019 at 7:01 PM John Garry wrote: > > > +TX2_EVENT_ATTR(req_pktsent, CCPI2_EVENT_REQ_PKT_SENT); > > > +TX2_EVENT_ATTR(snoop_pktsent, CCPI2_EVENT_SNOOP_PKT_SENT); > > > +TX2_EVENT_ATTR(data_pktsent, CCPI2_EVENT_DATA_PKT_SENT); > > > +TX2_EVENT_ATTR(gic_pktsent, CCPI2_EVENT_GIC_PKT_SENT); > > > + > > > +static struct attribute *ccpi2_pmu_events_attrs[] = { > > > + &tx2_pmu_event_attr_req_pktsent.attr.attr, > > > + &tx2_pmu_event_attr_snoop_pktsent.attr.attr, > > > + &tx2_pmu_event_attr_data_pktsent.attr.attr, > > > + &tx2_pmu_event_attr_gic_pktsent.attr.attr, > > > + NULL, > > > +}; > > > > Hi Ganapatrao, > > > > Have you considered adding these as uncore pmu-events in the perf tool? > > > At the moment no, since the number of events exposed/listed are very few. Then sounds like a perfect time to nip it in the bud before the list grows ;) If you can manage with these things in userspace, then I agree with John that it would be preferential to do it that way. It also offers more flexibility if we get the metricgroup stuff working properly (I think it's buggered for big/little atm). Will