xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:           /sys/bus/event_source/devices/hv_24x7/format
2*4882a593SmuzhiyunDate:           September 2020
3*4882a593SmuzhiyunContact:        Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4*4882a593SmuzhiyunDescription:    Read-only. Attribute group to describe the magic bits
5*4882a593Smuzhiyun                that go into perf_event_attr.config for a particular pmu.
6*4882a593Smuzhiyun                (See ABI/testing/sysfs-bus-event_source-devices-format).
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun                Each attribute under this group defines a bit range of the
9*4882a593Smuzhiyun                perf_event_attr.config. All supported attributes are listed
10*4882a593Smuzhiyun                below::
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun				chip = "config:16-31"
13*4882a593Smuzhiyun				core  = "config:16-31"
14*4882a593Smuzhiyun				domain = "config:0-3"
15*4882a593Smuzhiyun				lpar = "config:0-15"
16*4882a593Smuzhiyun				offset = "config:32-63"
17*4882a593Smuzhiyun				vcpu = "config:16-31"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun                For example::
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun		  PM_PB_CYC =  "domain=1,offset=0x80,chip=?,lpar=0x0"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun		In this event, '?' after chip specifies that
24*4882a593Smuzhiyun		this value will be provided by user while running this event.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog
27*4882a593SmuzhiyunDate:		February 2014
28*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
29*4882a593SmuzhiyunDescription:
30*4882a593Smuzhiyun		Provides access to the binary "24x7 catalog" provided by the
31*4882a593Smuzhiyun		hypervisor on POWER7 and 8 systems. This catalog lists events
32*4882a593Smuzhiyun		available from the powerpc "hv_24x7" pmu. Its format is
33*4882a593Smuzhiyun		documented here:
34*4882a593Smuzhiyun		https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_length
37*4882a593SmuzhiyunDate:		February 2014
38*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
39*4882a593SmuzhiyunDescription:
40*4882a593Smuzhiyun		A number equal to the length in bytes of the catalog. This is
41*4882a593Smuzhiyun		also extractable from the provided binary "catalog" sysfs entry.
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_24x7/interface/catalog_version
44*4882a593SmuzhiyunDate:		February 2014
45*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
46*4882a593SmuzhiyunDescription:
47*4882a593Smuzhiyun		Exposes the "version" field of the 24x7 catalog. This is also
48*4882a593Smuzhiyun		extractable from the provided binary "catalog" sysfs entry.
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunWhat:		/sys/devices/hv_24x7/interface/sockets
51*4882a593SmuzhiyunDate:		May 2020
52*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
53*4882a593SmuzhiyunDescription:	read only
54*4882a593Smuzhiyun		This sysfs interface exposes the number of sockets present in the
55*4882a593Smuzhiyun		system.
56*4882a593Smuzhiyun
57*4882a593SmuzhiyunWhat:		/sys/devices/hv_24x7/interface/chipspersocket
58*4882a593SmuzhiyunDate:		May 2020
59*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
60*4882a593SmuzhiyunDescription:	read only
61*4882a593Smuzhiyun		This sysfs interface exposes the number of chips per socket
62*4882a593Smuzhiyun		present in the system.
63*4882a593Smuzhiyun
64*4882a593SmuzhiyunWhat:		/sys/devices/hv_24x7/interface/coresperchip
65*4882a593SmuzhiyunDate:		May 2020
66*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
67*4882a593SmuzhiyunDescription:	read only
68*4882a593Smuzhiyun		This sysfs interface exposes the number of cores per chip
69*4882a593Smuzhiyun		present in the system.
70*4882a593Smuzhiyun
71*4882a593SmuzhiyunWhat:		/sys/devices/hv_24x7/cpumask
72*4882a593SmuzhiyunDate:		July 2020
73*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
74*4882a593SmuzhiyunDescription:	read only
75*4882a593Smuzhiyun		This sysfs file exposes the cpumask which is designated to make
76*4882a593Smuzhiyun		HCALLs to retrieve hv-24x7 pmu event counter data.
77*4882a593Smuzhiyun
78*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_24x7/event_descs/<event-name>
79*4882a593SmuzhiyunDate:		February 2014
80*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
81*4882a593SmuzhiyunDescription:
82*4882a593Smuzhiyun		Provides the description of a particular event as provided by
83*4882a593Smuzhiyun		the firmware. If firmware does not provide a description, no
84*4882a593Smuzhiyun		file will be created.
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun		Note that the event-name lacks the domain suffix appended for
87*4882a593Smuzhiyun		events in the events/ dir.
88*4882a593Smuzhiyun
89*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_24x7/event_long_descs/<event-name>
90*4882a593SmuzhiyunDate:		February 2014
91*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
92*4882a593SmuzhiyunDescription:
93*4882a593Smuzhiyun		Provides the "long" description of a particular event as
94*4882a593Smuzhiyun		provided by the firmware. If firmware does not provide a
95*4882a593Smuzhiyun		description, no file will be created.
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun		Note that the event-name lacks the domain suffix appended for
98*4882a593Smuzhiyun		events in the events/ dir.
99