1 What: /sys/bus/event_source/devices/hv_gpci/format
3 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
4 Description: Read-only. Attribute group to describe the magic bits
5 that go into perf_event_attr.config for a particular pmu.
6 (See ABI/testing/sysfs-bus-event_source-devices-format).
8 Each attribute under this group defines a bit range of the
9 perf_event_attr.config. All supported attributes are listed
12 counter_info_version = "config:16-23"
13 length = "config:24-31"
14 partition_id = "config:32-63"
15 request = "config:0-31"
16 sibling_part_id = "config:32-63"
17 hw_chip_id = "config:32-63"
18 offset = "config:32-63"
19 phys_processor_idx = "config:32-63"
20 secondary_index = "config:0-15"
21 starting_index = "config:32-63"
25 processor_core_utilization_instructions_completed = "request=0x94,
26 phys_processor_idx=?,counter_info_version=0x8,
29 In this event, '?' after phys_processor_idx specifies this value
30 this value will be provided by user while running this event.
32 What: /sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
34 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
36 '0' if the hypervisor is configured to forbid access to event
37 counters being accumulated by other guests and to physical
38 domain event counters.
40 '1' if that access is allowed.
42 What: /sys/bus/event_source/devices/hv_gpci/interface/ga
44 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
46 0 or 1. Indicates whether we have access to "GA" events (listed
47 in arch/powerpc/perf/hv-gpci.h).
49 What: /sys/bus/event_source/devices/hv_gpci/interface/expanded
51 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
53 0 or 1. Indicates whether we have access to "EXPANDED" events (listed
54 in arch/powerpc/perf/hv-gpci.h).
56 What: /sys/bus/event_source/devices/hv_gpci/interface/lab
58 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
60 0 or 1. Indicates whether we have access to "LAB" events (listed
61 in arch/powerpc/perf/hv-gpci.h).
63 What: /sys/bus/event_source/devices/hv_gpci/interface/version
65 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
67 A number indicating the version of the gpci interface that the
68 hypervisor reports supporting.
70 What: /sys/bus/event_source/devices/hv_gpci/interface/kernel_version
72 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
74 A number indicating the latest version of the gpci interface
75 that the kernel is aware of.
77 What: /sys/devices/hv_gpci/cpumask
79 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
80 Description: read only
81 This sysfs file exposes the cpumask which is designated to make
82 HCALLs to retrieve hv-gpci pmu event counter data.
84 What: /sys/devices/hv_gpci/interface/processor_bus_topology
86 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
87 Description: admin read only
88 This sysfs file exposes the system topology information by making HCALL
89 H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
90 PROCESSOR_BUS_TOPOLOGY(0xD0).
92 * This sysfs file will be created only for power10 and above platforms.
94 * User needs root privileges to read data from this sysfs file.
96 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
97 "H_AUTHORITY" or "H_PARAMETER" as the return type.
99 HCALL with return error type "H_AUTHORITY" can be resolved during
100 runtime by setting "Enable Performance Information Collection" option.
102 * The end user reading this sysfs file must decode the content as per
103 underlying platform/firmware.
105 Possible error codes while reading this sysfs file:
107 * "-EPERM" : Partition is not permitted to retrieve performance information,
108 required to set "Enable Performance Information Collection" option.
110 * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
111 or because of some hardware error. Refer to getPerfCountInfo documentation for
114 * "-EFBIG" : System information exceeds PAGE_SIZE.
116 What: /sys/devices/hv_gpci/interface/processor_config
118 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
119 Description: admin read only
120 This sysfs file exposes the system topology information by making HCALL
121 H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
122 PROCESSOR_CONFIG(0x90).
124 * This sysfs file will be created only for power10 and above platforms.
126 * User needs root privileges to read data from this sysfs file.
128 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
129 "H_AUTHORITY" or "H_PARAMETER" as the return type.
131 HCALL with return error type "H_AUTHORITY" can be resolved during
132 runtime by setting "Enable Performance Information Collection" option.
134 * The end user reading this sysfs file must decode the content as per
135 underlying platform/firmware.
137 Possible error codes while reading this sysfs file:
139 * "-EPERM" : Partition is not permitted to retrieve performance information,
140 required to set "Enable Performance Information Collection" option.
142 * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
143 or because of some hardware error. Refer to getPerfCountInfo documentation for
146 * "-EFBIG" : System information exceeds PAGE_SIZE.
148 What: /sys/devices/hv_gpci/interface/affinity_domain_via_virtual_processor
150 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
151 Description: admin read only
152 This sysfs file exposes the system topology information by making HCALL
153 H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
154 AFFINITY_DOMAIN_INFORMATION_BY_VIRTUAL_PROCESSOR(0xA0).
156 * This sysfs file will be created only for power10 and above platforms.
158 * User needs root privileges to read data from this sysfs file.
160 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
161 "H_AUTHORITY" or "H_PARAMETER" as the return type.
163 HCALL with return error type "H_AUTHORITY" can be resolved during
164 runtime by setting "Enable Performance Information Collection" option.
166 * The end user reading this sysfs file must decode the content as per
167 underlying platform/firmware.
169 Possible error codes while reading this sysfs file:
171 * "-EPERM" : Partition is not permitted to retrieve performance information,
172 required to set "Enable Performance Information Collection" option.
174 * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
175 or because of some hardware error. Refer to getPerfCountInfo documentation for
178 * "-EFBIG" : System information exceeds PAGE_SIZE.
180 What: /sys/devices/hv_gpci/interface/affinity_domain_via_domain
182 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
183 Description: admin read only
184 This sysfs file exposes the system topology information by making HCALL
185 H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
186 AFFINITY_DOMAIN_INFORMATION_BY_DOMAIN(0xB0).
188 * This sysfs file will be created only for power10 and above platforms.
190 * User needs root privileges to read data from this sysfs file.
192 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
193 "H_AUTHORITY" or "H_PARAMETER" as the return type.
195 HCALL with return error type "H_AUTHORITY" can be resolved during
196 runtime by setting "Enable Performance Information Collection" option.
198 * The end user reading this sysfs file must decode the content as per
199 underlying platform/firmware.
201 Possible error codes while reading this sysfs file:
203 * "-EPERM" : Partition is not permitted to retrieve performance information,
204 required to set "Enable Performance Information Collection" option.
206 * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
207 or because of some hardware error. Refer to getPerfCountInfo documentation for
210 * "-EFBIG" : System information exceeds PAGE_SIZE.
212 What: /sys/devices/hv_gpci/interface/affinity_domain_via_partition
214 Contact: Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
215 Description: admin read only
216 This sysfs file exposes the system topology information by making HCALL
217 H_GET_PERF_COUNTER_INFO. The HCALL is made with counter request value
218 AFFINITY_DOMAIN_INFORMATION_BY_PARTITION(0xB1).
220 * This sysfs file will be created only for power10 and above platforms.
222 * User needs root privileges to read data from this sysfs file.
224 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
225 "H_AUTHORITY" or "H_PARAMETER" as the return type.
227 HCALL with return error type "H_AUTHORITY" can be resolved during
228 runtime by setting "Enable Performance Information Collection" option.
230 * The end user reading this sysfs file must decode the content as per
231 underlying platform/firmware.
233 Possible error codes while reading this sysfs file:
235 * "-EPERM" : Partition is not permitted to retrieve performance information,
236 required to set "Enable Performance Information Collection" option.
238 * "-EIO" : Can't retrieve system information because of invalid buffer length/invalid address
239 or because of some hardware error. Refer to getPerfCountInfo documentation for
242 * "-EFBIG" : System information exceeds PAGE_SIZE.