1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef HARDWARE_GOOGLE_PIXEL_PIXELSTATS_TEST_MMMETRICSGOLDENATOMFIELDTYPES_H 18 #define HARDWARE_GOOGLE_PIXEL_PIXELSTATS_TEST_MMMETRICSGOLDENATOMFIELDTYPES_H 19 20 #include "VendorAtomIntValueUtil.h" 21 22 namespace android { 23 namespace hardware { 24 namespace google { 25 namespace pixel { 26 27 namespace mm_metrics_atom_field_test_golden_results { 28 const int PixelMmMetricsPerHour_field_types[]{ 29 longValue, // optional int64 free_pages = 2; 30 longValue, // optional int64 anon_pages = 3; 31 longValue, // optional int64 file_pages = 4; 32 longValue, // optional int64 slab_reclaimable = 5; 33 longValue, // optional int64 zspages = 6; 34 longValue, // optional int64 unevictable = 7; 35 longValue, // optional int64 ion_total_pools = 8; 36 longValue, // optional int64 gpu_memory = 9; 37 longValue, // optional int64 slab_unreclaimable = 10; 38 longValue, // optional int64 psi_cpu_some_total = 11; 39 longValue, // optional int64 psi_io_full_total = 12; 40 longValue, // optional int64 psi_io_some_total = 13; 41 longValue, // optional int64 psi_mem_full_total = 14; 42 longValue, // optional int64 psi_mem_some_total = 15; 43 intValue, // optional int32 psi_cpu_some_avg10_min = 16; 44 intValue, // optional int32 psi_cpu_some_avg10_max = 17; 45 intValue, // optional int32 psi_cpu_some_avg10_avg = 18; 46 intValue, // optional int32 psi_cpu_some_avg60_min = 19; 47 intValue, // optional int32 psi_cpu_some_avg60_max = 20; 48 intValue, // optional int32 psi_cpu_some_avg60_avg = 21; 49 intValue, // optional int32 psi_cpu_some_avg300_min = 22; 50 intValue, // optional int32 psi_cpu_some_avg300_max = 23; 51 intValue, // optional int32 psi_cpu_some_avg300_avg = 24; 52 intValue, // optional int32 psi_io_full_avg10_min = 25; 53 intValue, // optional int32 psi_io_full_avg10_max = 26; 54 intValue, // optional int32 psi_io_full_avg10_avg = 27; 55 intValue, // optional int32 psi_io_full_avg60_min = 28; 56 intValue, // optional int32 psi_io_full_avg60_max = 29; 57 intValue, // optional int32 psi_io_full_avg60_avg = 30; 58 intValue, // optional int32 psi_io_full_avg300_min = 31; 59 intValue, // optional int32 psi_io_full_avg300_max = 32; 60 intValue, // optional int32 psi_io_full_avg300_avg = 33; 61 intValue, // optional int32 psi_io_some_avg10_min = 34; 62 intValue, // optional int32 psi_io_some_avg10_max = 35; 63 intValue, // optional int32 psi_io_some_avg10_avg = 36; 64 intValue, // optional int32 psi_io_some_avg60_min = 37; 65 intValue, // optional int32 psi_io_some_avg60_max = 38; 66 intValue, // optional int32 psi_io_some_avg60_avg = 39; 67 intValue, // optional int32 psi_io_some_avg300_min = 40; 68 intValue, // optional int32 psi_io_some_avg300_max = 41; 69 intValue, // optional int32 psi_io_some_avg300_avg = 42; 70 intValue, // optional int32 psi_mem_full_avg10_min = 43; 71 intValue, // optional int32 psi_mem_full_avg10_max = 44; 72 intValue, // optional int32 psi_mem_full_avg10_avg = 45; 73 intValue, // optional int32 psi_mem_full_avg60_min = 46; 74 intValue, // optional int32 psi_mem_full_avg60_max = 47; 75 intValue, // optional int32 psi_mem_full_avg60_avg = 48; 76 intValue, // optional int32 psi_mem_full_avg300_min = 49; 77 intValue, // optional int32 psi_mem_full_avg300_max = 50; 78 intValue, // optional int32 psi_mem_full_avg300_avg = 51; 79 intValue, // optional int32 psi_mem_some_avg10_min = 52; 80 intValue, // optional int32 psi_mem_some_avg10_max = 53; 81 intValue, // optional int32 psi_mem_some_avg10_avg = 54; 82 intValue, // optional int32 psi_mem_some_avg60_min = 55; 83 intValue, // optional int32 psi_mem_some_avg60_max = 56; 84 intValue, // optional int32 psi_mem_some_avg60_avg = 57; 85 intValue, // optional int32 psi_mem_some_avg300_min = 58; 86 intValue, // optional int32 psi_mem_some_avg300_max = 59; 87 intValue, // optional int32 psi_mem_some_avg300_avg = 60; 88 intValue, // optional int32 version = 61 [deprecated = true]; 89 longValue, // optional int64 shmem_pages = 62; 90 longValue, // optional int64 page_table_pages = 63; 91 longValue, // optional int64 dmabuf_kb = 64; 92 }; 93 94 const int PixelMmMetricsPerDay_field_types[]{ 95 longValue, // optional int64 workingset_refault = 2; /* refault_file */ 96 longValue, // optional int64 pswpin = 3; 97 longValue, // optional int64 pswpout = 4; 98 longValue, // optional int64 allocstall_dma = 5; 99 longValue, // optional int64 allocstall_dma32 = 6; 100 longValue, // optional int64 allocstall_normal = 7; 101 longValue, // optional int64 allocstall_movable = 8; 102 longValue, // optional int64 pgalloc_dma = 9; 103 longValue, // optional int64 pgalloc_dma32 = 10; 104 longValue, // optional int64 pgalloc_normal = 11; 105 longValue, // optional int64 pgalloc_movable = 12; 106 longValue, // optional int64 pgsteal_kswapd = 13; 107 longValue, // optional int64 pgsteal_direct = 14; 108 longValue, // optional int64 pgscan_kswapd = 15; 109 longValue, // optional int64 pgscan_direct = 16; 110 longValue, // optional int64 oom_kill = 17; 111 longValue, // optional int64 pgalloc_high = 18; 112 longValue, // optional int64 pgcache_hit = 19; 113 longValue, // optional int64 pgcache_miss = 20; 114 longValue, // optional int64 kswapd_stime_clks = 21; 115 longValue, // optional int64 kcompactd_stime_clks = 22; 116 longValue, // optional int64 direct_reclaim_native_latency_total_time = 23; 117 longValue, // optional int64 direct_reclaim_native_latency0 = 24; 118 longValue, // optional int64 direct_reclaim_native_latency1 = 25; 119 longValue, // optional int64 direct_reclaim_native_latency2 = 26; 120 longValue, // optional int64 direct_reclaim_native_latency3 = 27; 121 longValue, // optional int64 direct_reclaim_visible_latency_total_time = 28; 122 longValue, // optional int64 direct_reclaim_visible_latency0 = 29; 123 longValue, // optional int64 direct_reclaim_visible_latency1 = 30; 124 longValue, // optional int64 direct_reclaim_visible_latency2 = 31; 125 longValue, // optional int64 direct_reclaim_visible_latency3 = 32; 126 longValue, // optional int64 direct_reclaim_top_latency_total_time = 33; 127 longValue, // optional int64 direct_reclaim_top_latency0 = 34; 128 longValue, // optional int64 direct_reclaim_top_latency1 = 35; 129 longValue, // optional int64 direct_reclaim_top_latency2 = 36; 130 longValue, // optional int64 direct_reclaim_top_latency3 = 37; 131 longValue, // optional int64 direct_reclaim_other_latency_total_time = 38; 132 longValue, // optional int64 direct_reclaim_other_latency0 = 39; 133 longValue, // optional int64 direct_reclaim_other_latency1 = 40; 134 longValue, // optional int64 direct_reclaim_other_latency2 = 41; 135 longValue, // optional int64 direct_reclaim_other_latency3 = 42; 136 longValue, // optional int64 compaction_total_time = 43; 137 longValue, // optional int64 compaction_ev_count0 = 44; 138 longValue, // optional int64 compaction_ev_count1 = 45; 139 longValue, // optional int64 compaction_ev_count2 = 46; 140 longValue, // optional int64 compaction_ev_count3 = 47; 141 longValue, // optional int64 compaction_ev_count4 = 48; 142 longValue, // optional int64 workingset_refault_anon = 49; 143 longValue, // optional int64 workingset_refault_file = 50; 144 longValue, // optional int64 compact_success = 51; 145 longValue, // optional int64 compact_fail = 52; 146 longValue, // optional int64 kswapd_low_wmark_hq = 53; 147 longValue, // optional int64 kswapd_high_wmark_hq = 54; 148 longValue, // optional int64 thp_file_alloc = 55; 149 longValue, // optional int64 thp_zero_page_alloc = 56; 150 longValue, // optional int64 thp_split_page = 57; 151 longValue, // optional int64 thp_migration_split = 58; 152 longValue, // optional int64 thp_deferred_split_page = 59; 153 longValue, // optional int64 version = 60 [deprecated = true]; 154 longValue, // optional int64 cpu_total_time_cs = 61; 155 longValue, // optional int64 cpu_idle_time_cs = 62; 156 longValue, // optional int64 cpu_io_wait_time_cs = 63; 157 longValue, // optional int64 kswapd_pageout_run = 64; 158 }; 159 } // namespace mm_metrics_atom_field_test_golden_results 160 161 } // namespace pixel 162 } // namespace google 163 } // namespace hardware 164 } // namespace android 165 166 #endif // HARDWARE_GOOGLE_PIXEL_PIXELSTATS_TEST_MMMETRICSGOLDENATOMFIELDTYPES_H 167