Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1645108ybd; Wed, 26 Jun 2019 22:28:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyZKwzzKunLIg4Vygpxo3ZMDHTDdvgYJW5wM/KKhDqxQ75LMXVKoPYgae3rOIfd1fx6YeQ X-Received: by 2002:a63:c006:: with SMTP id h6mr1850122pgg.285.1561613335823; Wed, 26 Jun 2019 22:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561613335; cv=none; d=google.com; s=arc-20160816; b=G49oEA0A8Ro11bOOUjYzqpkFPZ1TVpNSViI+yuUYe3vyV2KKG5q2ycwJ5Sb42N1s8w Hqal7/iEp5IMApwQUwKarKQ9AHO16V1735qAjmapHXxLi/dhDeTEVELoWCfp3nGbOlnl P0cCLpBU3MUKzmEuNqbBG7sbCTXzlu+3d7jLAeGSOPhfbT3vzzA/KR6uOTrBiZ3wKtOJ 35oJIxrYZj19w5RrjlnBLOGOOxdi8szjAPWLPsqAkrinw6HK3xldT4psCRQYtKcKCnv7 9S/sPKsGm715hfxVIiRkMzsVG183HLvvquqnHFH2FIZs753KMZ9jXKQ/IlmRtEwwGXzh xBvA== 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=D4jc394LN5ChpMzs40tFXH876q4ZeJP+u2Li6PaTg9Y=; b=BvtQs6MYbK/4F28yB5g7Bi+q6kqzCn9Z8LAq59DwIYQsi/2TpT6MLMeMGKXucXl9AF 9f8d6QWMf1N6p1O6pTtkD2zaMRnt6VEIHLRDZBZ1kCUGPFjfsSd8rwTSXpQ3Bf1n8esS c6YDFw/F8sOYp3hKoRU8yYkhvUb/e2jXpCta269mVRV6cJmIMdiGIjRiY7+vFpzO5BXH t1KKLv+mq+7yEZ7LOEZppIA0JVsJMzqFp7kMkFjohksDhpn3B4N77dcNs6QhcnN6klqG jxziq70kZfLQdfzViM+SQ7G4s9x5DK0QqbYWIC02fXtcGkxyaAIJkwRd85G09zLhQnOx gFaA== 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 l191si1257928pgd.35.2019.06.26.22.28.39; Wed, 26 Jun 2019 22:28:55 -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; 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 S1726432AbfF0F0m (ORCPT + 99 others); Thu, 27 Jun 2019 01:26:42 -0400 Received: from mga17.intel.com ([192.55.52.151]:36381 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfF0F0l (ORCPT ); Thu, 27 Jun 2019 01:26:41 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 22:26:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="183367026" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by fmsmga001.fm.intel.com with ESMTP; 26 Jun 2019 22:26:38 -0700 From: Wu Hao To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, gregkh@linuxfoundation.org, atull@kernel.org, Wu Hao Subject: [PATCH v4 0/2] add performance reporting support to FPGA DFL drivers Date: Thu, 27 Jun 2019 13:09:53 +0800 Message-Id: <1561612195-6081-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 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 splitted from patchset[1] for better review, and version 3 patch could be found here[2]. Please note that this patchset needs to be applied on top of patchset[3][4]. 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) [1]https://lkml.org/lkml/2019/5/27/11 [2]https://lkml.org/lkml/2019/5/27/18 [3]https://lkml.org/lkml/2019/6/27/29 [4]https://lkml.org/lkml/2019/6/27/49 Wu Hao (1): fpga: dfl: fme: add performance reporting support Xu Yilun (1): Documentation: fpga: dfl: add description for performance reporting support Documentation/fpga/dfl.txt | 83 +++++ drivers/fpga/Makefile | 1 + drivers/fpga/dfl-fme-main.c | 4 + drivers/fpga/dfl-fme-perf.c | 871 ++++++++++++++++++++++++++++++++++++++++++++ drivers/fpga/dfl-fme.h | 2 + 5 files changed, 961 insertions(+) create mode 100644 drivers/fpga/dfl-fme-perf.c -- 1.8.3.1