Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4127690ybv; Mon, 10 Feb 2020 12:56:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyxkElbyghaq3l6ZB4Ix/QEXK205ChuESf9zO/COu8b7aKrxoQK6MJQaVfxf2+WnND1/iSj X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr2491819oti.32.1581368202588; Mon, 10 Feb 2020 12:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581368202; cv=none; d=google.com; s=arc-20160816; b=Dg36FhHyodNQ0S9PHbE8EsupA+wVHK8vbn00CN92c9jOfbsatzQdkUcMlccBIyr6gs gcZ1H6AMb4DEuhdqUJi10kUvzSFZER8Y6XeNIGLyKFhDgss5yeTL/mN5HASAZwvkjtqj b5DGN3tbKliEBcG3nrO0DLPcUAQb821R4Sgb7G/b8pBHossM2QWtNznWd+6COpH1iRoC W1Hlm7AsMBW2zBrA4gYnxW8kGTXGFnHywudNsQoePVTrH51tg/BwHyvph9nLt3qdAO5R 1PnZVAs82QJvoFwe0uAIq/xF7d2V7BdGhX+vYAMsNcJvpnJch66XsTSlPugfhZUwKaIi Yvgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DE8AhCqSBJZmW64gHcXoQ1XouzlVKxlCsFlHYYN0yMU=; b=FsxCJhRDLbxhBYCXiEEb6RerHAKMbcELfxhVv+ny99aDgQtvFYuHZF13ggLXACn+lM VI2Eh3yXF5+fkS9pGsJ9OXsHhEa/Qk6ctTFqqi95hKWlEXFRyWaQYnNYROZ+p3GcMvcD 6ObEaNUrlEgU3ON0MuIFkGNbT2b7QlMfI9ihpS6LBa6yA4m7znfvchEpQGikKy9KMjjs +pbQ6IQqy+F4QrnKTr5FoMxVwJ97w5ylTQZkDK7qG61scUFGucKtgTSDGuBrtA6rFF72 hKD7aXD3QQDejJq+0RGhW2yCVbtygEoHZ4ci9vcFVMGxB0A8EdqWYxnUtZIIKqRwSYcM TIXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PNHzMZzG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si767749otn.117.2020.02.10.12.56.29; Mon, 10 Feb 2020 12:56:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PNHzMZzG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727330AbgBJU4T (ORCPT + 99 others); Mon, 10 Feb 2020 15:56:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:44378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgBJU4T (ORCPT ); Mon, 10 Feb 2020 15:56:19 -0500 Received: from localhost (unknown [104.132.1.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03CF320715; Mon, 10 Feb 2020 20:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581368179; bh=XCaEk4AdMscuCIsfWqjQ6jxocwU0q3rPW8RgAU4hDEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PNHzMZzG1ARQhWBIv0yUDMr6OkJkpLDpCXFMHwXLYyqqrNa2YPR4cge58/XUUN9Rq hmx36I3lSVP3vzVZmr5SQPP/Q4BWZWRLmFM+F8HCm+YVjH6eVg1yqXfeJYCZ3x8JVc nVRNmd4VTLVOsSziz+5UTlJZMFBTBaVXrWFZyqnI= Date: Mon, 10 Feb 2020 12:56:18 -0800 From: Greg KH To: Wu Hao Cc: mdf@kernel.org, will@kernel.org, mark.rutland@arm.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, atull@kernel.org, yilun.xu@intel.com, Luwei Kang Subject: Re: [PATCH v7 2/2] fpga: dfl: fme: add performance reporting support Message-ID: <20200210205618.GA1347752@kroah.com> References: <1581306469-22629-1-git-send-email-hao.wu@intel.com> <1581306469-22629-3-git-send-email-hao.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1581306469-22629-3-git-send-email-hao.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 11:47:49AM +0800, Wu Hao wrote: > +What: /sys/bus/event_source/devices/fmeX/format > +Date: February 2020 > +KernelVersion: 5.7 > +Contact: Wu Hao > +Description: Read-only. Attribute group to describe the magic bits > + that go into perf_event_attr.config for a particular pmu. > + (See ABI/testing/sysfs-bus-event_source-devices-format). > + > + Each attribute under this group defines a bit range of the > + perf_event_attr.config. All supported attributes are listed > + below. > + > + event = "config:0-11" - event ID > + evtype = "config:12-15" - event type > + portid = "config:16-23" - event source > + > + For example, > + > + fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff" Are perf sysfs files always this bad "multiple values per file"? Or is that unique to this driver? If not unique, do you have specific examples in the kernel that currently do this today? > +static struct attribute *fme_perf_events_attrs_empty[] = { > + NULL, Huh? > +}; > + > +static struct attribute_group fme_perf_events_group = { > + .name = "events", > + .attrs = fme_perf_events_attrs_empty, You create an empty directory? Why? What goes in here? very odd... greg k-h