1724142f8SWu HaoWhat:		/sys/bus/event_source/devices/dfl_fmeX/format
2724142f8SWu HaoDate:		April 2020
3724142f8SWu HaoKernelVersion:  5.8
4724142f8SWu HaoContact:	Wu Hao <hao.wu@intel.com>
5724142f8SWu HaoDescription:	Read-only. Attribute group to describe the magic bits
6724142f8SWu Hao		that go into perf_event_attr.config for a particular pmu.
7724142f8SWu Hao		(See ABI/testing/sysfs-bus-event_source-devices-format).
8724142f8SWu Hao
9724142f8SWu Hao		Each attribute under this group defines a bit range of the
10724142f8SWu Hao		perf_event_attr.config. All supported attributes are listed
11002a9c2fSMauro Carvalho Chehab		below::
12724142f8SWu Hao
13724142f8SWu Hao		    event  = "config:0-11"  - event ID
14724142f8SWu Hao		    evtype = "config:12-15" - event type
15724142f8SWu Hao		    portid = "config:16-23" - event source
16724142f8SWu Hao
17002a9c2fSMauro Carvalho Chehab		For example::
18724142f8SWu Hao
19724142f8SWu Hao		    fab_mmio_read = "event=0x06,evtype=0x02,portid=0xff"
20724142f8SWu Hao
21724142f8SWu Hao		It shows this fab_mmio_read is a fabric type (0x02) event with
22724142f8SWu Hao		0x06 local event id for overall monitoring (portid=0xff).
23724142f8SWu Hao
24724142f8SWu HaoWhat:		/sys/bus/event_source/devices/dfl_fmeX/cpumask
25724142f8SWu HaoDate:		April 2020
26724142f8SWu HaoKernelVersion:  5.8
27724142f8SWu HaoContact:	Wu Hao <hao.wu@intel.com>
28724142f8SWu HaoDescription:	Read-only. This file always returns cpu which the PMU is bound
29724142f8SWu Hao		for access to all fme pmu performance monitoring events.
30724142f8SWu Hao
31724142f8SWu HaoWhat:		/sys/bus/event_source/devices/dfl_fmeX/events
32724142f8SWu HaoDate:		April 2020
33724142f8SWu HaoKernelVersion:  5.8
34724142f8SWu HaoContact:	Wu Hao <hao.wu@intel.com>
35724142f8SWu HaoDescription:	Read-only. Attribute group to describe performance monitoring
36724142f8SWu Hao		events specific to fme. Each attribute in this group describes
37724142f8SWu Hao		a single performance monitoring event supported by this fme pmu.
38724142f8SWu Hao		The name of the file is the name of the event.
39724142f8SWu Hao		(See ABI/testing/sysfs-bus-event_source-devices-events).
40724142f8SWu Hao
41724142f8SWu Hao		All supported performance monitoring events are listed below.
42724142f8SWu Hao
43002a9c2fSMauro Carvalho Chehab		Basic events (evtype=0x00)::
44724142f8SWu Hao
45724142f8SWu Hao		    clock = "event=0x00,evtype=0x00,portid=0xff"
46724142f8SWu Hao
47002a9c2fSMauro Carvalho Chehab		Cache events (evtype=0x01)::
48724142f8SWu Hao
49724142f8SWu Hao		    cache_read_hit      = "event=0x00,evtype=0x01,portid=0xff"
50724142f8SWu Hao		    cache_read_miss     = "event=0x01,evtype=0x01,portid=0xff"
51724142f8SWu Hao		    cache_write_hit     = "event=0x02,evtype=0x01,portid=0xff"
52724142f8SWu Hao		    cache_write_miss    = "event=0x03,evtype=0x01,portid=0xff"
53724142f8SWu Hao		    cache_hold_request  = "event=0x05,evtype=0x01,portid=0xff"
54724142f8SWu Hao		    cache_data_write_port_contention =
55724142f8SWu Hao		                          "event=0x06,evtype=0x01,portid=0xff"
56724142f8SWu Hao		    cache_tag_write_port_contention =
57724142f8SWu Hao		                          "event=0x07,evtype=0x01,portid=0xff"
58724142f8SWu Hao		    cache_tx_req_stall  = "event=0x08,evtype=0x01,portid=0xff"
59724142f8SWu Hao		    cache_rx_req_stall  = "event=0x09,evtype=0x01,portid=0xff"
60724142f8SWu Hao		    cache_eviction      = "event=0x0a,evtype=0x01,portid=0xff"
61724142f8SWu Hao
62002a9c2fSMauro Carvalho Chehab		Fabric events (evtype=0x02)::
63724142f8SWu Hao
64724142f8SWu Hao		    fab_pcie0_read       = "event=0x00,evtype=0x02,portid=0xff"
65724142f8SWu Hao		    fab_pcie0_write      = "event=0x01,evtype=0x02,portid=0xff"
66724142f8SWu Hao		    fab_pcie1_read       = "event=0x02,evtype=0x02,portid=0xff"
67724142f8SWu Hao		    fab_pcie1_write      = "event=0x03,evtype=0x02,portid=0xff"
68724142f8SWu Hao		    fab_upi_read         = "event=0x04,evtype=0x02,portid=0xff"
69724142f8SWu Hao		    fab_upi_write        = "event=0x05,evtype=0x02,portid=0xff"
70724142f8SWu Hao		    fab_mmio_read        = "event=0x06,evtype=0x02,portid=0xff"
71724142f8SWu Hao		    fab_mmio_write       = "event=0x07,evtype=0x02,portid=0xff"
72724142f8SWu Hao		    fab_port_pcie0_read  = "event=0x00,evtype=0x02,portid=?"
73724142f8SWu Hao		    fab_port_pcie0_write = "event=0x01,evtype=0x02,portid=?"
74724142f8SWu Hao		    fab_port_pcie1_read  = "event=0x02,evtype=0x02,portid=?"
75724142f8SWu Hao		    fab_port_pcie1_write = "event=0x03,evtype=0x02,portid=?"
76724142f8SWu Hao		    fab_port_upi_read    = "event=0x04,evtype=0x02,portid=?"
77724142f8SWu Hao		    fab_port_upi_write   = "event=0x05,evtype=0x02,portid=?"
78724142f8SWu Hao		    fab_port_mmio_read   = "event=0x06,evtype=0x02,portid=?"
79724142f8SWu Hao		    fab_port_mmio_write  = "event=0x07,evtype=0x02,portid=?"
80724142f8SWu Hao
81002a9c2fSMauro Carvalho Chehab		VTD events (evtype=0x03)::
82724142f8SWu Hao
83724142f8SWu Hao		    vtd_port_read_transaction  = "event=0x00,evtype=0x03,portid=?"
84724142f8SWu Hao		    vtd_port_write_transaction = "event=0x01,evtype=0x03,portid=?"
85724142f8SWu Hao		    vtd_port_devtlb_read_hit   = "event=0x02,evtype=0x03,portid=?"
86724142f8SWu Hao		    vtd_port_devtlb_write_hit  = "event=0x03,evtype=0x03,portid=?"
87724142f8SWu Hao		    vtd_port_devtlb_4k_fill    = "event=0x04,evtype=0x03,portid=?"
88724142f8SWu Hao		    vtd_port_devtlb_2m_fill    = "event=0x05,evtype=0x03,portid=?"
89724142f8SWu Hao		    vtd_port_devtlb_1g_fill    = "event=0x06,evtype=0x03,portid=?"
90724142f8SWu Hao
91002a9c2fSMauro Carvalho Chehab		VTD SIP events (evtype=0x04)::
92724142f8SWu Hao
93724142f8SWu Hao		    vtd_sip_iotlb_4k_hit  = "event=0x00,evtype=0x04,portid=0xff"
94724142f8SWu Hao		    vtd_sip_iotlb_2m_hit  = "event=0x01,evtype=0x04,portid=0xff"
95724142f8SWu Hao		    vtd_sip_iotlb_1g_hit  = "event=0x02,evtype=0x04,portid=0xff"
96724142f8SWu Hao		    vtd_sip_slpwc_l3_hit  = "event=0x03,evtype=0x04,portid=0xff"
97724142f8SWu Hao		    vtd_sip_slpwc_l4_hit  = "event=0x04,evtype=0x04,portid=0xff"
98724142f8SWu Hao		    vtd_sip_rcc_hit       = "event=0x05,evtype=0x04,portid=0xff"
99724142f8SWu Hao		    vtd_sip_iotlb_4k_miss = "event=0x06,evtype=0x04,portid=0xff"
100724142f8SWu Hao		    vtd_sip_iotlb_2m_miss = "event=0x07,evtype=0x04,portid=0xff"
101724142f8SWu Hao		    vtd_sip_iotlb_1g_miss = "event=0x08,evtype=0x04,portid=0xff"
102724142f8SWu Hao		    vtd_sip_slpwc_l3_miss = "event=0x09,evtype=0x04,portid=0xff"
103724142f8SWu Hao		    vtd_sip_slpwc_l4_miss = "event=0x0a,evtype=0x04,portid=0xff"
104724142f8SWu Hao		    vtd_sip_rcc_miss      = "event=0x0b,evtype=0x04,portid=0xff"
105