Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5270762imm; Tue, 31 Jul 2018 08:12:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeK8ILQDi59hgC69OmB/Xw11d0jqNmwOISxfeGtAvj2QvZitiz92AxwZE4YzJgMMw16f7id X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr20417869pla.156.1533049936875; Tue, 31 Jul 2018 08:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533049936; cv=none; d=google.com; s=arc-20160816; b=o90A/861lMG35j7RRYwU2oWDz2mTcbB3l+h0n+pFRWSD9CW8yK+vsu2d4SbgDIVGRU yU7zfgS1F2Q5DZmhOuaowvEqeUbcY04gXYZ1kzOYVZRhgOOzWBhtR/e8bgy9eurp4Eha wI7fFKfmRTFZmxw+p4ABicu3ig9hwvutvJZ5XK+F3wnNSshqEwOFeL4yY869rngV4y5U Bqw3H5vo1A5L4vjFV2ydYqDtP79xvHbd1vKQj1NV0I4s84EgghE6a3nkqIc2sx8ymfPl 80P9pofVKFL7CCdvsaiNKaXf63ZPPsMLtZXCC8Ij/IdPBEGrY1Uta6bdk3yHMvUW//m8 E8Bg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sbU84qR9p+ckrPPjiQWNlhCjaT2KFj49dIL/8wYrRLc=; b=s6srPzR9YQ+6PvzvfF4bFNxHXtBp61FBllmT2frnr8UvOnQpAZYn2mMRXhB7Gakfrv GO5NutKF6tYpP3gPZHolJUWqJ2fAuxIJCZCJ2gm6rsIWsgec2qDYerbyI6wK3I7Q4dgb 0orofjTHPNqVbOn89Ckwp0oRPls6ddLozWBBQ1WKlSHmtiqUibbyC+jAPnuCTCC9BL9D n8oKdoXULlfPId5nFFY6f3XXIH8MZ48ASevFxjOdGrJt1b/4Yiy3SNZ+QXxfGhZxcYyz CzHcDLupxKSb2q/wdO7LASGAjq3oBF1fFGWsRz39ukM2h1MQP965SOpaUJrdITwdXt2R /Vhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IHa3YaO2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si12980379plb.400.2018.07.31.08.12.01; Tue, 31 Jul 2018 08:12:16 -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=@gmail.com header.s=20161025 header.b=IHa3YaO2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732522AbeGaQvj (ORCPT + 99 others); Tue, 31 Jul 2018 12:51:39 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:43579 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727322AbeGaQvi (ORCPT ); Tue, 31 Jul 2018 12:51:38 -0400 Received: by mail-oi0-f67.google.com with SMTP id b15-v6so28562646oib.10 for ; Tue, 31 Jul 2018 08:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sbU84qR9p+ckrPPjiQWNlhCjaT2KFj49dIL/8wYrRLc=; b=IHa3YaO2GjuR51O3UmBDnkbXxVpsAx/vxceI1CTXD95eurkzULsRy5Ex3Qc6cgWUhc MQ2tfPO1arQOFwfQI1yeFAx+5EfINB2/GDsJkygNmiq37UBjMNuBc8vqBMi6pCAw3qjV Htl9vcnMbDi/kcIUartcVnoXBcIavPpWRO+E9EBPloLIUt6cst9DtMI0Endd1Tz6iTes ex0JUcNYFW8HxiQbLGGMoDu3kmPItNiDrykGiCCNYXmmT4Kmcq4Gc5kjihFXTqZoXUh5 r3FSi8ZHcAtbn/e1pmq1I84+oJE7VwCZPihkfOjmFatkjjveb42pTvVkdmS4+INoaJ1b Sy8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sbU84qR9p+ckrPPjiQWNlhCjaT2KFj49dIL/8wYrRLc=; b=oAP5W/aIm2zmFyeMJLoY6Z7mlxgN3zmqGdfDXsIiijQrBKEckJK1TunoMGd2aEpWQm IOWHgDL8tZt4KG9ZeuBHXoA8J7JfUy1WCOxEirNbCsL9qgbYYB4/RU/WxyxKKc5b5Uzv pE3JrOSozsYb6P8ZGcARrq1Q6RxmZSGe76T8B53EJJGB0X/cmJO2YxD59Z2gv11dVy+Z seilgnZWj9OBH2J8pPtb1lDQIYl4Zstvf4Mex5gFxNcsuiTqvmddS4NsYpMje4l+7ZHm QirDWgnRXZEI5MdOeNC5J5vVXG91+p1hPmk+A4pVqlR4BxRmtpP2TUm2Vv4qP/YhdwIx BSJw== X-Gm-Message-State: AOUpUlHBDaip4Qr/QjHyjJ9CTqmmTmqocJwHkl0R7gKX5RHFy0AakNbt 62TKEQ7nyG9gxRJgrMU2tcGAamE141DjoK458/M= X-Received: by 2002:aca:4e50:: with SMTP id c77-v6mr20962635oib.254.1533049852353; Tue, 31 Jul 2018 08:10:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7702:0:0:0:0:0 with HTTP; Tue, 31 Jul 2018 08:10:51 -0700 (PDT) In-Reply-To: <20180731142835.GC4909@kernel.org> References: <20180731100251.23575-1-ganapatrao.kulkarni@cavium.com> <20180731142835.GC4909@kernel.org> From: Ganapatrao Kulkarni Date: Tue, 31 Jul 2018 20:40:51 +0530 Message-ID: Subject: Re: [PATCH] perf vendor events arm64: Update ThunderX2 implementation defined pmu core events To: Arnaldo Carvalho de Melo Cc: Ganapatrao Kulkarni , LKML , linux-arm-kernel@lists.infradead.org, Alexander Shishkin , Jiri Olsa , namhyung@kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Mark Rutland , jnair@caviumnetworks.com, Robert Richter , Vadim.Lomovtsev@cavium.com, Jan.Glauber@cavium.com 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 Hi Arnaldo, On Tue, Jul 31, 2018 at 7:58 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 31, 2018 at 03:32:51PM +0530, Ganapatrao Kulkarni escreveu: >> Signed-off-by: Ganapatrao Kulkarni > > Can you please consider to provide an example of such counters being > used, i.e. with a simple C synthetic test that causes these events to > take place, then run it via 'perf stat' to show that indeed, they are > being programmed and read correctly? > > Ideally for all of them, but if that becomes too burdensome, for a few > of them? It may be tedious for all, certainly I will provide the test results/log for some of them(as many as possible). > > Thanks, > > - Arnaldo > >> --- >> .../arch/arm64/cavium/thunderx2/core-imp-def.json | 87 +++++++++++++++++++++- >> 1 file changed, 84 insertions(+), 3 deletions(-) >> >> diff --git a/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json b/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json >> index bc03c06..752e47e 100644 >> --- a/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json >> +++ b/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json >> @@ -12,6 +12,21 @@ >> "ArchStdEvent": "L1D_CACHE_REFILL_WR", >> }, >> { >> + "ArchStdEvent": "L1D_CACHE_REFILL_INNER", >> + }, >> + { >> + "ArchStdEvent": "L1D_CACHE_REFILL_OUTER", >> + }, >> + { >> + "ArchStdEvent": "L1D_CACHE_WB_VICTIM", >> + }, >> + { >> + "ArchStdEvent": "L1D_CACHE_WB_CLEAN", >> + }, >> + { >> + "ArchStdEvent": "L1D_CACHE_INVAL", >> + }, >> + { >> "ArchStdEvent": "L1D_TLB_REFILL_RD", >> }, >> { >> @@ -24,9 +39,75 @@ >> "ArchStdEvent": "L1D_TLB_WR", >> }, >> { >> + "ArchStdEvent": "L2D_TLB_REFILL_RD", >> + }, >> + { >> + "ArchStdEvent": "L2D_TLB_REFILL_WR", >> + }, >> + { >> + "ArchStdEvent": "L2D_TLB_RD", >> + }, >> + { >> + "ArchStdEvent": "L2D_TLB_WR", >> + }, >> + { >> "ArchStdEvent": "BUS_ACCESS_RD", >> - }, >> - { >> + }, >> + { >> "ArchStdEvent": "BUS_ACCESS_WR", >> - } >> + }, >> + { >> + "ArchStdEvent": "MEM_ACCESS_RD", >> + }, >> + { >> + "ArchStdEvent": "MEM_ACCESS_WR", >> + }, >> + { >> + "ArchStdEvent": "UNALIGNED_LD_SPEC", >> + }, >> + { >> + "ArchStdEvent": "UNALIGNED_ST_SPEC", >> + }, >> + { >> + "ArchStdEvent": "UNALIGNED_LDST_SPEC", >> + }, >> + { >> + "ArchStdEvent": "EXC_UNDEF", >> + }, >> + { >> + "ArchStdEvent": "EXC_SVC", >> + }, >> + { >> + "ArchStdEvent": "EXC_PABORT", >> + }, >> + { >> + "ArchStdEvent": "EXC_DABORT", >> + }, >> + { >> + "ArchStdEvent": "EXC_IRQ", >> + }, >> + { >> + "ArchStdEvent": "EXC_FIQ", >> + }, >> + { >> + "ArchStdEvent": "EXC_SMC", >> + }, >> + { >> + "ArchStdEvent": "EXC_HVC", >> + }, >> + { >> + "ArchStdEvent": "EXC_TRAP_PABORT", >> + }, >> + { >> + "ArchStdEvent": "EXC_TRAP_DABORT", >> + }, >> + { >> + "ArchStdEvent": "EXC_TRAP_OTHER", >> + }, >> + { >> + "ArchStdEvent": "EXC_TRAP_IRQ", >> + }, >> + { >> + "ArchStdEvent": "EXC_TRAP_FIQ", >> + } >> ] >> -- >> 2.9.4 thanks Ganapat