18c2ecf20Sopenharmony_ciWhat:           /sys/bus/event_source/devices/hv_24x7/format
28c2ecf20Sopenharmony_ciDate:           September 2020
38c2ecf20Sopenharmony_ciContact:        Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
48c2ecf20Sopenharmony_ciDescription:    Read-only. Attribute group to describe the magic bits
58c2ecf20Sopenharmony_ci                that go into perf_event_attr.config for a particular pmu.
68c2ecf20Sopenharmony_ci                (See ABI/testing/sysfs-bus-event_source-devices-format).
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci                Each attribute under this group defines a bit range of the
98c2ecf20Sopenharmony_ci                perf_event_attr.config. All supported attributes are listed
108c2ecf20Sopenharmony_ci                below::
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci				chip = "config:16-31"
138c2ecf20Sopenharmony_ci				core  = "config:16-31"
148c2ecf20Sopenharmony_ci				domain = "config:0-3"
158c2ecf20Sopenharmony_ci				lpar = "config:0-15"
168c2ecf20Sopenharmony_ci				offset = "config:32-63"
178c2ecf20Sopenharmony_ci				vcpu = "config:16-31"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci                For example::
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci		  PM_PB_CYC =  "domain=1,offset=0x80,chip=?,lpar=0x0"
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci		In this event, '?' after chip specifies that
248c2ecf20Sopenharmony_ci		this value will be provided by user while running this event.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog
278c2ecf20Sopenharmony_ciDate:		February 2014
288c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
298c2ecf20Sopenharmony_ciDescription:
308c2ecf20Sopenharmony_ci		Provides access to the binary "24x7 catalog" provided by the
318c2ecf20Sopenharmony_ci		hypervisor on POWER7 and 8 systems. This catalog lists events
328c2ecf20Sopenharmony_ci		available from the powerpc "hv_24x7" pmu. Its format is
338c2ecf20Sopenharmony_ci		documented here:
348c2ecf20Sopenharmony_ci		https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_length
378c2ecf20Sopenharmony_ciDate:		February 2014
388c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
398c2ecf20Sopenharmony_ciDescription:
408c2ecf20Sopenharmony_ci		A number equal to the length in bytes of the catalog. This is
418c2ecf20Sopenharmony_ci		also extractable from the provided binary "catalog" sysfs entry.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_version
448c2ecf20Sopenharmony_ciDate:		February 2014
458c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
468c2ecf20Sopenharmony_ciDescription:
478c2ecf20Sopenharmony_ci		Exposes the "version" field of the 24x7 catalog. This is also
488c2ecf20Sopenharmony_ci		extractable from the provided binary "catalog" sysfs entry.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/sockets
518c2ecf20Sopenharmony_ciDate:		May 2020
528c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
538c2ecf20Sopenharmony_ciDescription:	read only
548c2ecf20Sopenharmony_ci		This sysfs interface exposes the number of sockets present in the
558c2ecf20Sopenharmony_ci		system.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/chipspersocket
588c2ecf20Sopenharmony_ciDate:		May 2020
598c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
608c2ecf20Sopenharmony_ciDescription:	read only
618c2ecf20Sopenharmony_ci		This sysfs interface exposes the number of chips per socket
628c2ecf20Sopenharmony_ci		present in the system.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciWhat:		/sys/devices/hv_24x7/interface/coresperchip
658c2ecf20Sopenharmony_ciDate:		May 2020
668c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
678c2ecf20Sopenharmony_ciDescription:	read only
688c2ecf20Sopenharmony_ci		This sysfs interface exposes the number of cores per chip
698c2ecf20Sopenharmony_ci		present in the system.
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciWhat:		/sys/devices/hv_24x7/cpumask
728c2ecf20Sopenharmony_ciDate:		July 2020
738c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
748c2ecf20Sopenharmony_ciDescription:	read only
758c2ecf20Sopenharmony_ci		This sysfs file exposes the cpumask which is designated to make
768c2ecf20Sopenharmony_ci		HCALLs to retrieve hv-24x7 pmu event counter data.
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/event_descs/<event-name>
798c2ecf20Sopenharmony_ciDate:		February 2014
808c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
818c2ecf20Sopenharmony_ciDescription:
828c2ecf20Sopenharmony_ci		Provides the description of a particular event as provided by
838c2ecf20Sopenharmony_ci		the firmware. If firmware does not provide a description, no
848c2ecf20Sopenharmony_ci		file will be created.
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci		Note that the event-name lacks the domain suffix appended for
878c2ecf20Sopenharmony_ci		events in the events/ dir.
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ciWhat:		/sys/bus/event_source/devices/hv_24x7/event_long_descs/<event-name>
908c2ecf20Sopenharmony_ciDate:		February 2014
918c2ecf20Sopenharmony_ciContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
928c2ecf20Sopenharmony_ciDescription:
938c2ecf20Sopenharmony_ci		Provides the "long" description of a particular event as
948c2ecf20Sopenharmony_ci		provided by the firmware. If firmware does not provide a
958c2ecf20Sopenharmony_ci		description, no file will be created.
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci		Note that the event-name lacks the domain suffix appended for
988c2ecf20Sopenharmony_ci		events in the events/ dir.
99