Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp873745ybh; Wed, 11 Mar 2020 12:33:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuP5OLPh3zuC7oknLx2JnYQIferIl2cYXnhyd+7ugZS7QSOvkM3HFWt5pSzr4NLd6ECAMZ4 X-Received: by 2002:a9d:264a:: with SMTP id a68mr3582321otb.176.1583955208141; Wed, 11 Mar 2020 12:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583955208; cv=none; d=google.com; s=arc-20160816; b=rNKxxgwMxL0j+oDUmypuQMM3LLWErcRiQUxEVqPVje/s5NevZ2bzOV++lJX1GrOY8b DM5hEcDKaDnyzI7fYGK7K/g1FmhMlylS0ttgsAC2aK8gv03tzQnWlwh3/8v3C0L4EPqe eKu1HwgolCiM0IHIj6yefl7OOMEZ88wOStXKQsFyL6pNFJQVCCS+C72tcXVy4IS7YaQH 4K9lO97HjmWSEbh8lq4cLMeXtTZ8Gk2RTigCmOK8MhZ6OW9N36GNT4mqFW+WG0Mhk3fp ddU+IreNEhxfamPzBRIk+ETG4uXJe/JmaGOTnGeAfCGuV8VB9xApHhoSJ5324hiUxapW x1RQ== 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=LKraGJ30l6Da9gHXvZPSp4wo2q6s17TXGOTZwSnizRM=; b=NDPlhvN8CAJaMj6/59ZN0HeZt3eOTGmXaXqmE1ts0BuSf2Vpem9CpVdmMg4B8veSPg MygY9aH9gj/3YvGFe10V7MG8ad5wgz45pAprhrrtvzP6emyx73J17FFuZ23jmxliLu59 DJTjHdOFotnM4UVp8L7Jnch1wadZG1XxyT6G0WnGcMtPXp8p9fM5gK/WoxG0UUfQuoep ujIgDiRhckxdaXjub0pK9bvtxxEKcfRfo/434cD+SLUHKkACTbw6tnLlSDzRj2UL4LK8 mZMNcig7suTyjd7H+06qx2ORICxRpMwe+MBMjHAZXdekiDZ99CXQRrDlMpK/oP5OkuUs XhTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZRa0WWvz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si1792800otk.315.2020.03.11.12.33.14; Wed, 11 Mar 2020 12:33:28 -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=@google.com header.s=20161025 header.b=ZRa0WWvz; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731222AbgCKTck (ORCPT + 99 others); Wed, 11 Mar 2020 15:32:40 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:41717 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731165AbgCKTcj (ORCPT ); Wed, 11 Mar 2020 15:32:39 -0400 Received: by mail-yw1-f68.google.com with SMTP id p124so3162938ywc.8 for ; Wed, 11 Mar 2020 12:32:38 -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=LKraGJ30l6Da9gHXvZPSp4wo2q6s17TXGOTZwSnizRM=; b=ZRa0WWvzWQ7vbhoCUSCiE+Xpnyn0r9X4j+VOZY5z0moAgoqNi7XrIrbvdOGZLoPStZ t73/+8vK2zz/7Sh+YYuj8fHZZ3FvfEkXr6S9rYt7Ocx5uwZ/jttu0ZmY6lDF4hBC0sXu RTFy9i9geyhj4B0j0J1TMco4guXl0g6ScFtbUdddNz65nOwp+Tj4KuGah5rZn7yD5Rip nEJhat4np3znLve8DajoGUAaFw8E/zVSfQ8ONil21IEam4PVvzEjr7iYRP+6KxiOUnLs Khqge9cA25XyxZdxn421HLHv3XL3BJR/eI7EJ1GdIvQIWL5pL6/nNTdMvucoFOejfkzH yvNw== 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=LKraGJ30l6Da9gHXvZPSp4wo2q6s17TXGOTZwSnizRM=; b=SnNt2Nj6p4Ei+37+6+ZBtkYtqqzCSXWQbkfQ2cnaTudeIAFLd/avWQMqnvKLu5QpUi yRIqa7jKzRzFWzDQCcFaxVepYyhWMmMvu5lCkqhmAEztJMB6uvoCvJu6TxeHwu7HfYXr PsAk64n13CpFmaJv8dwKgZq+fwWCsjfb0DIX7cdSiOy+jXxkP1GE/4TBYwj089KB7hVH 7oq09lhAwSg8/Z8KGxwej2WViayKOh3FbcBQJBGtivSJVdwnw0slW8CRc2Dx6GQqQOb3 XHmRqWz+4BUBGc7Ml1M7cEC7MP8H8YwC4jP5/EpbXni7rvXIiOoT585VBjbo0zv3k+wk tzZg== X-Gm-Message-State: ANhLgQ3C8zG6uUkL+zj7wvOmL2NZDhpUjWiUymY/kxv+RWBF3S+hHyEr xmYEnNPH6QQjjcHjkwOKV0sywDiiG2pT9AbmCq4UMg== X-Received: by 2002:a25:c482:: with SMTP id u124mr4859412ybf.286.1583955157918; Wed, 11 Mar 2020 12:32:37 -0700 (PDT) MIME-Version: 1.0 References: <20200310185003.57344-1-irogers@google.com> <20200310195915.GA1676879@tassilo.jf.intel.com> <20200311161320.GA254105@krava> In-Reply-To: <20200311161320.GA254105@krava> From: Ian Rogers Date: Wed, 11 Mar 2020 12:32:26 -0700 Message-ID: Subject: Re: [PATCH] perf tools: add support for lipfm4 To: Jiri Olsa Cc: Stephane Eranian , Andi Kleen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Yonghong Song , Andrii Nakryiko , Greg Kroah-Hartman , Thomas Gleixner , Igor Lubashev , Alexey Budankov , Florian Fainelli , Adrian Hunter , Jiwei Sun , yuzhoujian , Kan Liang , Jin Yao , Leo Yan , John Garry , LKML , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org 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 Wed, Mar 11, 2020 at 9:13 AM Jiri Olsa wrote: > > On Tue, Mar 10, 2020 at 02:39:23PM -0700, Stephane Eranian wrote: > > On Tue, Mar 10, 2020 at 12:59 PM Andi Kleen wrote: > > > > > > On Tue, Mar 10, 2020 at 11:50:03AM -0700, Ian Rogers wrote: > > > > This patch links perf with the libpfm4 library. > > > > This library contains all the hardware event tables for all > > > > processors supported by perf_events. This is a helper library > > > > that help convert from a symbolic event name to the event > > > > encoding required by the underlying kernel interface. This > > > > library is open-source and available from: http://perfmon2.sf.net. > > > > > > For most CPUs the builtin perf JSON event support should make > > > this redundant. > > > > > We decided to post this patch to propose an alternative to the JSON > > file approach. It could be an option during the build. > > The libpfm4 library has been around for 15 years now. Therefore, it > > supports a lot of processors core and uncore and it is very portable. > > The key value add I see is that this is a library that can be, and has > > been, used by tool developers directly in their apps. It can > > work with more than Linux perf_events interface. It is not tied to the > > interface. It has well defined and documented entry points. > > We do use libpfm4 extensively at Google in both the perf tool and > > applications. The PAPI toolkit also relies on this library. > > > > I don't see this as competing with the JSON approach. It is just an > > option I'd like to offer to users especially those familiar > > with it in their apps. > > I dont mind having it, in fact I found really old email where I'm > asking Peter about that ;-) and he wasn't very keen about that: > https://lore.kernel.org/lkml/1312806326.10488.30.camel@twins/ > > not sure what was the actual reason at that time and if anything > changed since.. Peter? > > btw I can't apply even that v2 on latest Arnaldo's branch > > jirka Thanks Jiri, the patches were done on tip.git/master, perhaps there is a conflict with the Documents Makefile due to adding better man page dates? I'll try to repro building on https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/ on the perf/core branch unless you have a different suggestion? I also noticed a warning crept into the Makefile.config in the v2 patch set that should be removed. Ian