From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBD91C4363A for ; Wed, 28 Oct 2020 09:37:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BC6224199 for ; Wed, 28 Oct 2020 09:37:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N8CwrbVC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="mFpdcx3z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BC6224199 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:MIME-Version:In-Reply-To:References:To: Subject:From:Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/utQUqSiHIcSqDvbz6g9+u2PHgUxYX/zl+Yug8fquXw=; b=N8CwrbVC+OojAeiimHm8fkEqe Rd/puYmCiWofG926/cC8rbLUJNhCAcvYNw59liuvnlsHdP7Ek7N/r/3CK2/BFXHElzv5R0B0U/Sjq UTbzC530/kxuyjGWPS36C8VRqRhp4PezYGG0a/MWQg8v2kJNFkjj9H1uHNmp31yZ4oeMfubRysqY8 mokBqGJKaafjNDi5R2jMTG9HfEJW6Yxum1jOuEb9OD1zCOsP1zo2X2KfP55jOcrnOLjWN3j23aw4S 4cIYwc+FjWQZdAgvnKHOVgAU+kvbRR5cf7QZbJKUUCs/1dDq/CU+FX7i4r+Re+BtB3pcKK+2Fj5dj KPyhTNDFg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXhrh-0003FI-Du; Wed, 28 Oct 2020 09:35:33 +0000 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5] helo=mx0a-001b2d01.pphosted.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXhrc-0003Et-O3 for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 09:35:31 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09S9Wgu7144314; Wed, 28 Oct 2020 05:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : subject : to : references : in-reply-to : mime-version : message-id : content-type : content-transfer-encoding; s=pp1; bh=psd+OHOYF3+Ht8DKGiCudqcblb2fJY5VAJYYFPUhkHQ=; b=mFpdcx3ziyU5ny6V/yGm0RZYgbXV2bPVwYzmmCSyRN/aWTIQhmWNg8C7A/uDQnPbTbnb E3KMuZpkpkLw4nvXIy3jaMG0xQe2iswZi0BtZB4FcZ5ThemBNQWsSvFuCh2qPtpp4Sxh 5FGsoUvi8NNbFOqZXrEKXgIUcHz0tE/LpRYXjYSXbKw0h3b2TI0WFl/sFg8W4J4VAb8d I9GhWGVt0rntE+NJfSqhxKDzXdBRlBS7z3xEhgNgYY5AwjnnSkqnB2+khi6V3azYZk78 sQOCDDwCqC5rbpA0MdQ50ddk+p8yb2G0dbJVU7kA/dzmnzQvDYD++TX00LY3ZPxM1lSE 3w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 34endjnpv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Oct 2020 05:35:10 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 09S9XDcj149347; Wed, 28 Oct 2020 05:35:09 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 34endjnptv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Oct 2020 05:35:09 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 09S9XCKb022906; Wed, 28 Oct 2020 09:35:07 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06ams.nl.ibm.com with ESMTP id 34cbhh4a87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Oct 2020 09:35:07 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 09S9Z5qG22151652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Oct 2020 09:35:05 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1F225AE051; Wed, 28 Oct 2020 09:35:05 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AD520AE055; Wed, 28 Oct 2020 09:35:04 +0000 (GMT) Received: from localhost (unknown [9.102.2.144]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 28 Oct 2020 09:35:04 +0000 (GMT) Date: Wed, 28 Oct 2020 15:05:03 +0530 From: "Naveen N. Rao" Subject: Re: [PATCH v3 8/9] perf mem: Return NULL for event 'ldst' on PowerPC To: Arnaldo Carvalho de Melo , Alexander Shishkin , Al Grant , =?iso-8859-1?b?QW5kcuk=?= Przywara , Ian Rogers , James Clark , John Garry , Jiri Olsa , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Wei Li , Mark Rutland , Mathieu Poirier , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Kemeng Shi , Will Deacon , Madhavan Srinivasan References: <20201028063813.8562-1-leo.yan@linaro.org> <20201028063813.8562-9-leo.yan@linaro.org> In-Reply-To: <20201028063813.8562-9-leo.yan@linaro.org> MIME-Version: 1.0 User-Agent: astroid/v0.15-13-gb675b421 (https://github.com/astroidmail/astroid) Message-Id: <1603877629.hjro28ddup.naveen@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-10-28_04:2020-10-26, 2020-10-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010280062 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201028_053528_866287_59E14706 X-CRM114-Status: GOOD ( 23.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org [+ Maddy] Leo Yan wrote: > If user specifies event type "ldst", PowerPC's perf_mem_events__name() > will wrongly return the store event name "cpu/mem-stores/". > > This patch changes to return NULL for the event "ldst" on PowerPC. > > Signed-off-by: Leo Yan > --- > tools/perf/arch/powerpc/util/mem-events.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/arch/powerpc/util/mem-events.c b/tools/perf/arch/powerpc/util/mem-events.c > index 07fb5e049488..90c5a0760685 100644 > --- a/tools/perf/arch/powerpc/util/mem-events.c > +++ b/tools/perf/arch/powerpc/util/mem-events.c > @@ -7,6 +7,8 @@ char *perf_mem_events__name(int i) > { > if (i == PERF_MEM_EVENTS__LOAD) > return (char *) "cpu/mem-loads/"; > - > - return (char *) "cpu/mem-stores/"; > + else if (i == PERF_MEM_EVENTS__STORE) > + return (char *) "cpu/mem-stores/"; > + else > + return NULL; > } > -- > 2.17.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel