xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:           /sys/bus/event_source/devices/hv_gpci/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				counter_info_version  = "config:16-23"
13*4882a593Smuzhiyun				length  = "config:24-31"
14*4882a593Smuzhiyun				partition_id  = "config:32-63"
15*4882a593Smuzhiyun				request = "config:0-31"
16*4882a593Smuzhiyun				sibling_part_id = "config:32-63"
17*4882a593Smuzhiyun				hw_chip_id = "config:32-63"
18*4882a593Smuzhiyun				offset = "config:32-63"
19*4882a593Smuzhiyun				phys_processor_idx = "config:32-63"
20*4882a593Smuzhiyun				secondary_index = "config:0-15"
21*4882a593Smuzhiyun				starting_index = "config:32-63"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun                For example::
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun		  processor_core_utilization_instructions_completed = "request=0x94,
26*4882a593Smuzhiyun					phys_processor_idx=?,counter_info_version=0x8,
27*4882a593Smuzhiyun					length=8,offset=0x18"
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		In this event, '?' after phys_processor_idx specifies this value
30*4882a593Smuzhiyun		this value will be provided by user while running this event.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/collect_privileged
33*4882a593SmuzhiyunDate:		February 2014
34*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
35*4882a593SmuzhiyunDescription:
36*4882a593Smuzhiyun		'0' if the hypervisor is configured to forbid access to event
37*4882a593Smuzhiyun		counters being accumulated by other guests and to physical
38*4882a593Smuzhiyun		domain event counters.
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun		'1' if that access is allowed.
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/ga
43*4882a593SmuzhiyunDate:		February 2014
44*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
45*4882a593SmuzhiyunDescription:
46*4882a593Smuzhiyun		0 or 1. Indicates whether we have access to "GA" events (listed
47*4882a593Smuzhiyun		in arch/powerpc/perf/hv-gpci.h).
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/expanded
50*4882a593SmuzhiyunDate:		February 2014
51*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
52*4882a593SmuzhiyunDescription:
53*4882a593Smuzhiyun		0 or 1. Indicates whether we have access to "EXPANDED" events (listed
54*4882a593Smuzhiyun		in arch/powerpc/perf/hv-gpci.h).
55*4882a593Smuzhiyun
56*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/lab
57*4882a593SmuzhiyunDate:		February 2014
58*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
59*4882a593SmuzhiyunDescription:
60*4882a593Smuzhiyun		0 or 1. Indicates whether we have access to "LAB" events (listed
61*4882a593Smuzhiyun		in arch/powerpc/perf/hv-gpci.h).
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/version
64*4882a593SmuzhiyunDate:		February 2014
65*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
66*4882a593SmuzhiyunDescription:
67*4882a593Smuzhiyun		A number indicating the version of the gpci interface that the
68*4882a593Smuzhiyun		hypervisor reports supporting.
69*4882a593Smuzhiyun
70*4882a593SmuzhiyunWhat:		/sys/bus/event_source/devices/hv_gpci/interface/kernel_version
71*4882a593SmuzhiyunDate:		February 2014
72*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
73*4882a593SmuzhiyunDescription:
74*4882a593Smuzhiyun		A number indicating the latest version of the gpci interface
75*4882a593Smuzhiyun		that the kernel is aware of.
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunWhat:		/sys/devices/hv_gpci/cpumask
78*4882a593SmuzhiyunDate:		October 2020
79*4882a593SmuzhiyunContact:	Linux on PowerPC Developer List <linuxppc-dev@lists.ozlabs.org>
80*4882a593SmuzhiyunDescription:	read only
81*4882a593Smuzhiyun		This sysfs file exposes the cpumask which is designated to make
82*4882a593Smuzhiyun		HCALLs to retrieve hv-gpci pmu event counter data.
83