linux-stable/drivers/nvdimm
Kajol Jain 0fab1ba6ad drivers/nvdimm: Add perf interface to expose nvdimm performance stats
A common interface is added to get performance stats reporting
support for nvdimm devices. Added interface defines supported
event list, config fields for the event attributes and their
corresponding bit values which are exported via sysfs.

Interface also added support for pmu register/unregister functions,
cpu hotplug feature along with macros for handling events addition
via sysfs. It adds attribute groups for format, cpumask and events
to the pmu structure.

User could use the standard perf tool to access perf events exposed
via nvdimm pmu.

[Declare pmu functions in nd.h file to resolve implicit-function-declaration
warning and make hotplug function static as reported by kernel test robot]

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com>
Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Link: https://lore.kernel.org/all/202202241242.zqzGkguy-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Madhavan Srinivasan <maddy@in.ibm.com>
Link: https://lore.kernel.org/r/20220225143024.47947-3-kjain@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2022-03-09 17:50:42 -08:00
..
badrange.c mm/memremap_pages: convert to 'struct range' 2020-10-13 18:38:28 -07:00
blk.c nvdimm/blk: add error handling support for add_disk() 2021-11-04 05:48:49 -06:00
btt.c for-5.16/drivers-2021-11-09 2021-11-09 11:24:08 -08:00
btt.h nvdimm-btt: convert to blk_alloc_disk/blk_cleanup_disk 2021-06-01 07:42:23 -06:00
btt_devs.c libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
bus.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
claim.c libnvdimm: Cleanup include of badblocks.h 2020-12-15 21:47:45 -08:00
core.c cxl for v5.16 2021-11-08 11:49:48 -08:00
dax_devs.c libnvdimm: Move attribute groups to device type 2019-11-17 09:17:38 -08:00
dimm.c libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
dimm_devs.c libnvdimm: Export nvdimm shutdown helper, nvdimm_delete() 2021-06-15 16:47:22 -07:00
e820.c libnvdimm/e820: Retrieve and populate correct 'target_node' info 2020-02-18 10:28:05 -08:00
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
label.c libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
label.h libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
Makefile drivers/nvdimm: Add perf interface to expose nvdimm performance stats 2022-03-09 17:50:42 -08:00
namespace_devs.c libnvdimm/label: Add a helper for nlabel validation 2021-09-21 13:44:55 -07:00
nd-core.h libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
nd.h libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
nd_perf.c drivers/nvdimm: Add perf interface to expose nvdimm performance stats 2022-03-09 17:50:42 -08:00
nd_virtio.c
of_pmem.c powerpc/pmem: Initialize pmem device on newer hardware 2020-07-16 13:00:23 +10:00
pfn.h libnvdimm/namespace: Enforce memremap_compat_align() 2020-03-17 12:23:21 -07:00
pfn_devs.c libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
pmem.c dax: remove the copy_from_iter and copy_to_iter methods 2021-12-18 08:04:53 -08:00
pmem.h
region.c libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
region_devs.c libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC 2021-04-09 21:56:01 -07:00
security.c libnvdimm for 5.9 2020-08-11 10:59:19 -07:00
virtio_pmem.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_pmem.h