Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #include "req-gen/_begin.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Based on the document "getPerfCountInfo v1.07"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * #define REQUEST_NAME counter_request_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * #define REQUEST_NUM r_num
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  * #define REQUEST_IDX_KIND starting_index_kind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  * #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  * REQUEST(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)  *	__field(...)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16)  *	__field(...)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17)  *	__array(...)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18)  *	__count(...)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19)  * )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20)  * #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22)  * - starting_index_kind is one of the following, depending on the event:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24)  *   hw_chip_id: hardware chip id or -1 for current hw chip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25)  *   partition_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)  *   sibling_part_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27)  *   phys_processor_idx:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  *   0xffffffffffffffff: or -1, which means it is irrelavant for the event
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  * __count(offset, bytes, name):
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  *	a counter that should be exposed via perf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)  * __field(offset, bytes, name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33)  *	a normal field
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34)  * __array(offset, bytes, name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)  *	an array of bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)  *	@bytes for __count, and __field _must_ be a numeral token
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39)  *	in decimal, not an expression and not in hex.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42)  * TODO:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43)  *	- expose secondary index (if any counter ever uses it, only 0xA0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44)  *	  appears to use it right now, and it doesn't have any counters)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45)  *	- embed versioning info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46)  *	- include counter descriptions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #define REQUEST_NAME dispatch_timebase_by_processor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) #define REQUEST_NUM 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #define REQUEST_IDX_KIND "phys_processor_idx=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) REQUEST(__count(0,	8,	processor_time_in_timebase_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	__field(0x8,	4,	hw_processor_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	__field(0xC,	2,	owning_part_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	__field(0xE,	1,	processor_state)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	__field(0xF,	1,	version)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	__field(0x10,	4,	hw_chip_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	__field(0x14,	4,	phys_module_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	__field(0x18,	4,	primary_affinity_domain_idx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	__field(0x1C,	4,	secondary_affinity_domain_idx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	__field(0x20,	4,	processor_version)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	__field(0x24,	2,	logical_processor_idx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	__field(0x26,	2,	reserved)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	__field(0x28,	4,	processor_id_register)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	__field(0x2C,	4,	phys_processor_idx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) #define REQUEST_NAME entitled_capped_uncapped_donated_idle_timebase_by_partition
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) #define REQUEST_NUM 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) #define REQUEST_IDX_KIND "sibling_part_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) REQUEST(__field(0,	8,	partition_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	__count(0x8,	8,	entitled_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	__count(0x10,	8,	consumed_capped_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	__count(0x18,	8,	consumed_uncapped_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	__count(0x20,	8,	cycles_donated)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	__count(0x28,	8,	purr_idle_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83)  * Not available for counter_info_version >= 0x8, use
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84)  * run_instruction_cycles_by_partition(0x100) instead.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) #define REQUEST_NAME run_instructions_run_cycles_by_partition
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #define REQUEST_NUM 0x30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) #define REQUEST_IDX_KIND "sibling_part_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) REQUEST(__field(0,	8,	partition_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	__count(0x8,	8,	instructions_completed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	__count(0x10,	8,	cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) #define REQUEST_NAME system_performance_capabilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) #define REQUEST_NUM 0x40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) #define REQUEST_IDX_KIND "starting_index=0xffffffff"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) REQUEST(__field(0,	1,	perf_collect_privileged)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	__field(0x1,	1,	capability_mask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	__array(0x2,	0xE,	reserved)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define REQUEST_NAME processor_bus_utilization_abc_links
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define REQUEST_NUM 0x50
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define REQUEST_IDX_KIND "hw_chip_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) REQUEST(__field(0,	4,	hw_chip_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	__array(0x4,	0xC,	reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	__count(0x10,	8,	total_link_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	__count(0x18,	8,	idle_cycles_for_a_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	__count(0x20,	8,	idle_cycles_for_b_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	__count(0x28,	8,	idle_cycles_for_c_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	__array(0x30,	0x20,	reserved2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) #define REQUEST_NAME processor_bus_utilization_wxyz_links
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define REQUEST_NUM 0x60
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define REQUEST_IDX_KIND "hw_chip_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) REQUEST(__field(0,	4,	hw_chip_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	__array(0x4,	0xC,	reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	__count(0x10,	8,	total_link_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	__count(0x18,	8,	idle_cycles_for_w_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	__count(0x20,	8,	idle_cycles_for_x_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	__count(0x28,	8,	idle_cycles_for_y_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	__count(0x30,	8,	idle_cycles_for_z_link)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	__array(0x38,	0x28,	reserved2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define REQUEST_NAME processor_bus_utilization_gx_links
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) #define REQUEST_NUM 0x70
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define REQUEST_IDX_KIND "hw_chip_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) REQUEST(__field(0,	4,	hw_chip_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	__array(0x4,	0xC,	reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	__count(0x10,	8,	gx0_in_address_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	__count(0x18,	8,	gx0_in_data_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	__count(0x20,	8,	gx0_in_retries)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	__count(0x28,	8,	gx0_in_bus_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	__count(0x30,	8,	gx0_in_cycles_total)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	__count(0x38,	8,	gx0_out_address_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	__count(0x40,	8,	gx0_out_data_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	__count(0x48,	8,	gx0_out_retries)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	__count(0x50,	8,	gx0_out_bus_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	__count(0x58,	8,	gx0_out_cycles_total)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	__count(0x60,	8,	gx1_in_address_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	__count(0x68,	8,	gx1_in_data_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	__count(0x70,	8,	gx1_in_retries)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	__count(0x78,	8,	gx1_in_bus_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	__count(0x80,	8,	gx1_in_cycles_total)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	__count(0x88,	8,	gx1_out_address_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	__count(0x90,	8,	gx1_out_data_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	__count(0x98,	8,	gx1_out_retries)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	__count(0xA0,	8,	gx1_out_bus_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	__count(0xA8,	8,	gx1_out_cycles_total)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) #define REQUEST_NAME processor_bus_utilization_mc_links
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define REQUEST_NUM 0x80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) #define REQUEST_IDX_KIND "hw_chip_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) REQUEST(__field(0,	4,	hw_chip_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	__array(0x4,	0xC,	reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	__count(0x10,	8,	mc0_frames)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	__count(0x18,	8,	mc0_reads)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	__count(0x20,	8,	mc0_write)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	__count(0x28,	8,	mc0_total_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	__count(0x30,	8,	mc1_frames)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	__count(0x38,	8,	mc1_reads)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	__count(0x40,	8,	mc1_writes)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	__count(0x48,	8,	mc1_total_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) /* Processor_config (0x90) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) /* Current_processor_frequency (0x91) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) #define REQUEST_NAME processor_core_utilization
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #define REQUEST_NUM 0x94
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) #define REQUEST_IDX_KIND "phys_processor_idx=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) REQUEST(__field(0,	4,	phys_processor_idx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	__field(0x4,	4,	hw_processor_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	__count(0x8,	8,	cycles_across_any_thread)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	__count(0x10,	8,	timebase_at_collection)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	__count(0x18,	8,	purr_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	__count(0x20,	8,	sum_of_cycles_across_all_threads)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	__count(0x28,	8,	instructions_completed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) /* Processor_core_power_mode (0x95) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) /* Affinity_domain_information_by_virtual_processor (0xA0) skipped,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)  *	no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) /* Affinity_domain_information_by_domain (0xB0) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) /* Affinity_domain_information_by_partition (0xB1) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) /* Physical_memory_info (0xC0) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) /* Processor_bus_topology (0xD0) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) #define REQUEST_NAME partition_hypervisor_queuing_times
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #define REQUEST_NUM 0xE0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #define REQUEST_IDX_KIND "partition_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) REQUEST(__field(0,	2, partition_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	__array(0x2,	6, reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	__count(0x8,	8, time_waiting_for_entitlement)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	__count(0x10,	8, times_waited_for_entitlement)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	__count(0x18,	8, time_waiting_for_phys_processor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	__count(0x20,	8, times_waited_for_phys_processor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	__count(0x28,	8, dispatches_on_home_core)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	__count(0x30,	8, dispatches_on_home_primary_affinity_domain)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	__count(0x38,	8, dispatches_on_home_secondary_affinity_domain)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	__count(0x40,	8, dispatches_off_home_secondary_affinity_domain)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	__count(0x48,	8, dispatches_on_dedicated_processor_donating_cycles)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) #define REQUEST_NAME system_hypervisor_times
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) #define REQUEST_NUM 0xF0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) #define REQUEST_IDX_KIND "starting_index=0xffffffff"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) REQUEST(__count(0,	8,	time_spent_to_dispatch_virtual_processors)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	__count(0x8,	8,	time_spent_processing_virtual_processor_timers)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 	__count(0x10,	8,	time_spent_managing_partitions_over_entitlement)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 	__count(0x18,	8,	time_spent_on_system_management)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) #define REQUEST_NAME system_tlbie_count_and_time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) #define REQUEST_NUM 0xF4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) #define REQUEST_IDX_KIND "starting_index=0xffffffff"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) REQUEST(__count(0,	8,	tlbie_instructions_issued)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 	 * FIXME: The spec says the offset here is 0x10, which I suspect
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 	 *	  is wrong.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) 	__count(0x8,	8,	time_spent_issuing_tlbies)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) #define REQUEST_NAME partition_instruction_count_and_time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) #define REQUEST_NUM 0x100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) #define REQUEST_IDX_KIND "partition_id=?"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) #include I(REQUEST_BEGIN)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) REQUEST(__field(0,	2,	partition_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) 	__array(0x2,	0x6,	reserved1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 	__count(0x8,	8,	instructions_performed)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) 	__count(0x10,	8,	time_collected)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) #include I(REQUEST_END)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) /* set_mmcrh (0x80001000) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) /* retrieve_hpmcx (0x80002000) skipped, no counters */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) #include "req-gen/_end.h"