Received: by 10.223.164.221 with SMTP id h29csp3028307wrb; Wed, 18 Oct 2017 10:51:17 -0700 (PDT) X-Received: by 10.99.121.201 with SMTP id u192mr14312421pgc.69.1508349077335; Wed, 18 Oct 2017 10:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508349077; cv=none; d=google.com; s=arc-20160816; b=zvmY63b3zWK1oSy4zrNQY754WMY/D0iGuUQdB9ze1HvqxWqMecUFF0xYRF0H/3YSf2 niMbqDHhQlRcUITlpAs/TFN7Eftyg4ldbDdJ7lILb5WJqJM0N2Z1ErhG/0HDsaI02Alo 5OzWjmYK76rhknNbpkJZwuPY6n1C5Bg/ZaZJ+pzFRwQcf0lzZhsRkE5fmqUJNBDg53ri WIKke/8Jo2GpyFerZH1q5VfNE2PKy8vbEkeJkl2eZ5+1x8oM6IXt474VRoEB1BpBkBjR AxRc9EwyL1yNz2YbepJ3KDfokj5vTywOiTjc/NH9p96FcPIQbsOioLzOoR0CHVjS6gnB egOg== 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=F4EyURjlLOtDicOxzA16KXLpAvWbfHpe/O4J8LnQ5PI=; b=YdzZCa/4xk1gSJT1pCwwsvxc8sX4ZASqHO/WDwKwVgMMEnrmp2lMwv3XOD16aLP4op Vl76xZiz90vdhVH5/Qkm0GSVsUs8+DUppWoGgiY27UpvkXzQMZXPyrsuXZ6ZXCBok/jq x4HK2RKkfGJKDWwjk7mJpf3WkZcj6izvXL/C0l64YMd060WUtX6g3Hpnj3Xugd+o/S8m Mo+0aiI4674UV9TWs8J03neCk0EZ1pVb26VtAS5zi1tUwkLVYS6TGe4zrsTj317+ULbo mtY8d9GPkb1ffhN0BmlLmCCTTDaKQ3PuVO+QJuuv5NAiJIO+UH+n25Oqjl6PH5lO0R3Z Paiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LrNTFRgZ; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si3389464plt.281.2017.10.18.10.51.03; Wed, 18 Oct 2017 10:51:17 -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=LrNTFRgZ; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750975AbdJRRtb (ORCPT + 99 others); Wed, 18 Oct 2017 13:49:31 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:53996 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbdJRRt3 (ORCPT ); Wed, 18 Oct 2017 13:49:29 -0400 Received: by mail-lf0-f67.google.com with SMTP id l23so6743256lfk.10 for ; Wed, 18 Oct 2017 10:49:29 -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=F4EyURjlLOtDicOxzA16KXLpAvWbfHpe/O4J8LnQ5PI=; b=LrNTFRgZsGKiimS7GVfAKkDGv4zDlHn1ns6v80px2MkaKBXELUPStE6Lodt7xmqMso fZcsGgDVthQvFdc4xMWfOp+Cb52G24VflM3CRdKmR0WNtGF+7efWWRRBI5BZ5ds/7gKI cau8gfp/o14wHa+ZhOBb1CpdEShp8XfhjoDAbK8f87Zr87nI5wEa4Fl6rTpcyv+46GmL 0F4jTZAbqSmyxYA17p+/VRlxrsIb3VQqyCFwlTs3jsgrqhzRjDuWdhzYzN2UJdWqlwje /4kkKTPZ0nwvkzu9Ak+yUNl2Y/47CduuG57KWzs2tZoLiCji6RUGhCQ0ama+LzEWQEXa vzPg== 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=F4EyURjlLOtDicOxzA16KXLpAvWbfHpe/O4J8LnQ5PI=; b=ifZJaFELv/PUW7aturXkJxx1TlU1Ue1x4d2LAKsxvrOFSeqLxxseqgIpk6fdd6UawP aNU9wXwrh3Hmh+sr9Xn/wLFTFE82ERLjZVQyyZvf44Ef0cvYb8snW8rcHJ9Wnzx/D8eq qjRV1nf8DFONBbdYHp4QFHRoPxC5VQRh9lHQIpD0x/NGY1lofWrYyk+Sy92ifL+/1Vtb epmC1Ja9zeP9lLCfHa8UrAMEtWlrxwXJzoxDEmyQ2AHN/TRtm3Nqs31YEcykAOGzwghK 6GfF7EMWNck4geCgejo7/JSco6A05aWacbJqcXLygcbo+h5rDV/OnHCtzaQxr+MVpLZq 9HUA== X-Gm-Message-State: AMCzsaXfwpoYn0ikOerDpTCgMGU2cdZx+qqNDg0ak7S0K9WtmJfZYnpR dBbpsjLYgTZigL9DfOFa4Cr2deiJSPiBcoy6MXU= X-Google-Smtp-Source: ABhQp+SnNEko7tJao1VJ3VTN6Ft8KaoZPWhBHGmi91DoBdXk2EZT1Hszj/ZwLvu+XHBiSuBKcj4eCG3e6I1mu0Oj+Kg= X-Received: by 10.25.17.22 with SMTP id g22mr5867408lfi.183.1508348968584; Wed, 18 Oct 2017 10:49:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.196.198 with HTTP; Wed, 18 Oct 2017 10:49:28 -0700 (PDT) In-Reply-To: <20171016183222.25750-1-ganapatrao.kulkarni@cavium.com> References: <20171016183222.25750-1-ganapatrao.kulkarni@cavium.com> From: Ganapatrao Kulkarni Date: Wed, 18 Oct 2017 23:19:28 +0530 Message-ID: Subject: Re: [PATCH v9 0/5] Add support for ThunderX2 pmu events using json files To: Ganapatrao Kulkarni Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Will Deacon , catalin.marinas@arm.com, mark.rutland@arm.com, Arnaldo Carvalho de Melo , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , jnair@caviumnetworks.com, Zhangshaokun , Jonathan.Cameron@huawei.com, Robert Richter 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, Will, can this be queued to next? On Tue, Oct 17, 2017 at 12:02 AM, Ganapatrao Kulkarni wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > > v9: > - Rebased to [3] and resolved conficts in PATCH 1/5 and reworked PATCH 3/5. > - Added PATCH 5 to fix segmentation fault in perf_pmu__find_map > > [3] https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/log/?h=perf/core > > v8: > - Rename thunderx2 directory to cavium > > v7: > - Addressed some more comments from Will Deacon. > > v6 : Addressed comments [1] [2] > > [1] https://patchwork.kernel.org/patch/9903099/ > [2] https://patchwork.kernel.org/patch/9853899/ > > v5: > - Addressed comments from Arnaldo. > - Rebased to 4.13-rc5 > > v4: > - Rebased to 4.13-rc1 > > v3: > - Addressed comments from Will Deacon and Jayachandran C. > - Rebased to 4.12-rc1 > > v2: > - Updated as per Mark Rutland's suggestions. > - Added provision for get_cpuid_str to get cpu id string > from associated cpus of pmu core device. > > v1: Initial patchset. > > > Ganapatrao Kulkarni (5): > perf utils: passing pmu as a parameter to function get_cpuid_str > perf tools arm64: Add support for get_cpuid_str function. > perf utils: use pmu->is_uncore to detect PMU CORE/UNCORE devices > perf vendor events arm64: Add ThunderX2 implementation defined pmu > core events > perf utils: add check for valid cpuid in function perf_pmu__find_map > > tools/perf/arch/arm64/util/Build | 1 + > tools/perf/arch/arm64/util/header.c | 65 ++++++++++++++++++++++ > tools/perf/arch/powerpc/util/header.c | 2 +- > tools/perf/arch/x86/util/header.c | 2 +- > .../arch/arm64/cavium/thunderx2-imp-def.json | 62 +++++++++++++++++++++ > tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 +++++ > tools/perf/util/header.h | 3 +- > tools/perf/util/metricgroup.c | 4 +- > tools/perf/util/pmu.c | 39 ++++++++----- > tools/perf/util/pmu.h | 2 +- > 10 files changed, 174 insertions(+), 21 deletions(-) > create mode 100644 tools/perf/arch/arm64/util/header.c > create mode 100644 tools/perf/pmu-events/arch/arm64/cavium/thunderx2-imp-def.json > create mode 100644 tools/perf/pmu-events/arch/arm64/mapfile.csv > > -- > 2.9.4 > thanks Ganapat From 1581462844085604062@xxx Tue Oct 17 00:34:56 +0000 2017 X-GM-THRID: 1581462844085604062 X-Gmail-Labels: Inbox,Category Forums