Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3293916ybv; Sun, 9 Feb 2020 20:09:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyoptYNrhxwpJUC3NpQ0Da8uP7U3d0Kf7OUsl8cCKAWbIe2oKDpvsA1Dod3/ghDjINt3yiF X-Received: by 2002:a05:6808:a83:: with SMTP id q3mr9893691oij.0.1581307787143; Sun, 09 Feb 2020 20:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581307787; cv=none; d=google.com; s=arc-20160816; b=R57zKsjaEFnRp8QrF6GOmBeET2aRf7YCwph7fst/4hxC4TWTtoPsM64lyBhqJbbNzM 6XC06DqcCY4VqqlaihYoHApTcrzoniOpiFFaKqr0+1Q6kaPsj97iZeqaPVlPkI62T90j q8TvVm13pI22JdWjjDZS6CTm8UvctTG5LrbJAtGtBtYn4xr04RuKfNEYYKw0GvJ47Y8T QoEJtWJDgvvR4DoMuUGGAsCFWm7w5H6Ociv35go11ZIbI22vUh6uNDSn6kz/LkE/bvAs ymF+Tk+9Mlh95h2g0Dw79EDFcbX3BuE8bfnXZknjI+MtDMKZSHqj4RBFs0bh2pirBcCI CJ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Xgv77kJMZkgg0mxfrLQQLgW1T+rs5ApHLeQGbOOvK6k=; b=z5g4SCkJn7aF4meKD5zqq/U37m/0wBy5xk4J4F5h3aQFBXVasqKN52JggaHBpUknOc XhQRQZz/0HGpy2YUIiGa7P1+6YGJXIOYlfKndwlugQFwWCJTDzvcMnAfU92Iy38uN8L1 TLcJrGVpAR5V6PWbzs7kje/EJHzPWbTJxGauYoX1/Tfp8xvL6JBtsbm6BmYlg5dqk3Ih BzWCr4flp2zOdD1OJXRVfzTYKdo5AaF9YmxMTLFvewqY1nRUhH1gEa/AApCyU4JRatxD +urdOoBoMjReWSgEQZrFiJEtJxADsGXh+mnOJGuYR7CHIXsw7hztLovV3PC0ORmmi5Ne NSWw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f14si4019147otf.178.2020.02.09.20.09.34; Sun, 09 Feb 2020 20:09:47 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbgBJEJb (ORCPT + 99 others); Sun, 9 Feb 2020 23:09:31 -0500 Received: from mga14.intel.com ([192.55.52.115]:30804 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbgBJEJb (ORCPT ); Sun, 9 Feb 2020 23:09:31 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2020 20:09:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,423,1574150400"; d="scan'208";a="251069331" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by orsmga002.jf.intel.com with ESMTP; 09 Feb 2020 20:09:27 -0800 From: Wu Hao To: mdf@kernel.org, will@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, atull@kernel.org, yilun.xu@intel.com, Wu Hao Subject: [PATCH v7 0/2] add performance reporting support to FPGA DFL drivers Date: Mon, 10 Feb 2020 11:47:47 +0800 Message-Id: <1581306469-22629-1-git-send-email-hao.wu@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patchset adds performance reporting support for FPGA DFL drivers. It introduces one pmu to expose userspace interfaces via standard perf API. User could use standard perf tool to access perf events exposed via pmu. This patchset is generated based on 5.6-rc1. Main changes from v6: - add a new ABI/testing/ sysfs documentation in patch #2. - fix a warning reported by kbuild in patch #2. Main changes from v5: - use dev_ext_attribute instead of fme_perf_event_attr. - use is_visible function to decide which events to expose per hardware capability, and add event_init checking for all events. Main changes from v4: - rebase and clean up. - update Kconfig for PERF_EVENTS dependency. Main changes from v3: - add more descriptions in doc, including how to use perf tool for these hardware counters. (patch #1) - use standard perf API instead of sysfs entries. (patch #2) Wu Hao (1): fpga: dfl: fme: add performance reporting support Xu Yilun (1): Documentation: fpga: dfl: add description for performance reporting support .../ABI/testing/sysfs-bus-event_source-devices-fme | 105 +++ Documentation/fpga/dfl.rst | 83 ++ drivers/fpga/Kconfig | 2 +- drivers/fpga/Makefile | 1 + drivers/fpga/dfl-fme-main.c | 4 + drivers/fpga/dfl-fme-perf.c | 943 +++++++++++++++++++++ drivers/fpga/dfl-fme.h | 2 + drivers/fpga/dfl.h | 2 + 8 files changed, 1141 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-fme create mode 100644 drivers/fpga/dfl-fme-perf.c -- 1.8.3.1