162306a36Sopenharmony_ciWhat:           /sys/bus/event_source/devices/hv_24x7/format
262306a36Sopenharmony_ciDate:           September 2020
362306a36Sopenharmony_ciContact:        Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
462306a36Sopenharmony_ciDescription:    Read-only. Attribute group to describe the magic bits
562306a36Sopenharmony_ci                that go into perf_event_attr.config for a particular pmu.
662306a36Sopenharmony_ci                (See ABI/testing/sysfs-bus-event_source-devices-format).
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci                Each attribute under this group defines a bit range of the
962306a36Sopenharmony_ci                perf_event_attr.config. All supported attributes are listed
1062306a36Sopenharmony_ci                below::
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci				chip = "config:16-31"
1362306a36Sopenharmony_ci				core  = "config:16-31"
1462306a36Sopenharmony_ci				domain = "config:0-3"
1562306a36Sopenharmony_ci				lpar = "config:0-15"
1662306a36Sopenharmony_ci				offset = "config:32-63"
1762306a36Sopenharmony_ci				vcpu = "config:16-31"
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci                For example::
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci		  PM_PB_CYC =  "domain=1,offset=0x80,chip=?,lpar=0x0"
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci		In this event, '?' after chip specifies that
2462306a36Sopenharmony_ci		this value will be provided by user while running this event.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog
2762306a36Sopenharmony_ciDate:		February 2014
2862306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
2962306a36Sopenharmony_ciDescription:
3062306a36Sopenharmony_ci		Provides access to the binary "24x7 catalog" provided by the
3162306a36Sopenharmony_ci		hypervisor on POWER7 and 8 systems. This catalog lists events
3262306a36Sopenharmony_ci		available from the powerpc "hv_24x7" pmu. Its format is
3362306a36Sopenharmony_ci		documented here:
3462306a36Sopenharmony_ci		https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_length
3762306a36Sopenharmony_ciDate:		February 2014
3862306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
3962306a36Sopenharmony_ciDescription:
4062306a36Sopenharmony_ci		A number equal to the length in bytes of the catalog. This is
4162306a36Sopenharmony_ci		also extractable from the provided binary "catalog" sysfs entry.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_version
4462306a36Sopenharmony_ciDate:		February 2014
4562306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4662306a36Sopenharmony_ciDescription:
4762306a36Sopenharmony_ci		Exposes the "version" field of the 24x7 catalog. This is also
4862306a36Sopenharmony_ci		extractable from the provided binary "catalog" sysfs entry.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/sockets
5162306a36Sopenharmony_ciDate:		May 2020
5262306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
5362306a36Sopenharmony_ciDescription:	read only
5462306a36Sopenharmony_ci		This sysfs interface exposes the number of sockets present in the
5562306a36Sopenharmony_ci		system.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/chipspersocket
5862306a36Sopenharmony_ciDate:		May 2020
5962306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
6062306a36Sopenharmony_ciDescription:	read only
6162306a36Sopenharmony_ci		This sysfs interface exposes the number of chips per socket
6262306a36Sopenharmony_ci		present in the system.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/coresperchip
6562306a36Sopenharmony_ciDate:		May 2020
6662306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
6762306a36Sopenharmony_ciDescription:	read only
6862306a36Sopenharmony_ci		This sysfs interface exposes the number of cores per chip
6962306a36Sopenharmony_ci		present in the system.
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ciWhat:		/sys/devices/hv_24x7/cpumask
7262306a36Sopenharmony_ciDate:		July 2020
7362306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
7462306a36Sopenharmony_ciDescription:	read only
7562306a36Sopenharmony_ci		This sysfs file exposes the cpumask which is designated to make
7662306a36Sopenharmony_ci		HCALLs to retrieve hv-24x7 pmu event counter data.
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/event_descs/<event-name>
7962306a36Sopenharmony_ciDate:		February 2014
8062306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
8162306a36Sopenharmony_ciDescription:
8262306a36Sopenharmony_ci		Provides the description of a particular event as provided by
8362306a36Sopenharmony_ci		the firmware. If firmware does not provide a description, no
8462306a36Sopenharmony_ci		file will be created.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci		Note that the event-name lacks the domain suffix appended for
8762306a36Sopenharmony_ci		events in the events/ dir.
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/event_long_descs/<event-name>
9062306a36Sopenharmony_ciDate:		February 2014
9162306a36Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
9262306a36Sopenharmony_ciDescription:
9362306a36Sopenharmony_ci		Provides the "long" description of a particular event as
9462306a36Sopenharmony_ci		provided by the firmware. If firmware does not provide a
9562306a36Sopenharmony_ci		description, no file will be created.
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci		Note that the event-name lacks the domain suffix appended for
9862306a36Sopenharmony_ci		events in the events/ dir.
99