Skip to content

Instantly share code, notes, and snippets.

@linux-riscv-bot
Created March 27, 2025 21:13
pw947874-p14031388
WARNING: line length of 115 exceeds 100 columns
#80: FILE: tools/perf/pmu-events/empty-pmu-events.c:23:
+/* offset=5 */ "duration_time\000tool\000Wall clock interval time in nanoseconds\000config=1\000\00000\000\000\000"
WARNING: line length of 110 exceeds 100 columns
#81: FILE: tools/perf/pmu-events/empty-pmu-events.c:24:
+/* offset=79 */ "user_time\000tool\000User (non-kernel) time in nanoseconds\000config=2\000\00000\000\000\000"
WARNING: line length of 109 exceeds 100 columns
#82: FILE: tools/perf/pmu-events/empty-pmu-events.c:25:
+/* offset=147 */ "system_time\000tool\000System/kernel time in nanoseconds\000config=3\000\00000\000\000\000"
WARNING: line length of 117 exceeds 100 columns
#83: FILE: tools/perf/pmu-events/empty-pmu-events.c:26:
+/* offset=213 */ "has_pmem\000tool\0001 if persistent memory installed otherwise 0\000config=4\000\00000\000\000\000"
WARNING: line length of 186 exceeds 100 columns
#84: FILE: tools/perf/pmu-events/empty-pmu-events.c:27:
+/* offset=287 */ "num_cores\000tool\000Number of cores. A core consists of 1 or more thread, with each thread being associated with a logical Linux CPU\000config=5\000\00000\000\000\000"
WARNING: line length of 144 exceeds 100 columns
#85: FILE: tools/perf/pmu-events/empty-pmu-events.c:28:
+/* offset=430 */ "num_cpus\000tool\000Number of logical Linux CPUs. There may be multiple such CPUs on a core\000config=6\000\00000\000\000\000"
WARNING: line length of 158 exceeds 100 columns
#86: FILE: tools/perf/pmu-events/empty-pmu-events.c:29:
+/* offset=531 */ "num_cpus_online\000tool\000Number of online logical Linux CPUs. There may be multiple such CPUs on a core\000config=7\000\00000\000\000\000"
WARNING: line length of 117 exceeds 100 columns
#87: FILE: tools/perf/pmu-events/empty-pmu-events.c:30:
+/* offset=646 */ "num_dies\000tool\000Number of dies. Each die has 1 or more cores\000config=8\000\00000\000\000\000"
WARNING: line length of 127 exceeds 100 columns
#88: FILE: tools/perf/pmu-events/empty-pmu-events.c:31:
+/* offset=720 */ "num_packages\000tool\000Number of packages. Each package has 1 or more die\000config=9\000\00000\000\000\000"
WARNING: line length of 151 exceeds 100 columns
#89: FILE: tools/perf/pmu-events/empty-pmu-events.c:32:
+/* offset=804 */ "slots\000tool\000Number of functional units that in parallel can execute parts of an instruction\000config=0xa\000\00000\000\000\000"
WARNING: line length of 148 exceeds 100 columns
#90: FILE: tools/perf/pmu-events/empty-pmu-events.c:33:
+/* offset=912 */ "smt_on\000tool\0001 if simultaneous multithreading (aka hyperthreading) is enable otherwise 0\000config=0xb\000\00000\000\000\000"
WARNING: line length of 141 exceeds 100 columns
#91: FILE: tools/perf/pmu-events/empty-pmu-events.c:34:
+/* offset=1017 */ "system_tsc_freq\000tool\000The amount a Time Stamp Counter (TSC) increases per second\000config=0xc\000\00000\000\000\000"
WARNING: line length of 104 exceeds 100 columns
#93: FILE: tools/perf/pmu-events/empty-pmu-events.c:36:
+/* offset=1127 */ "bp_l1_btb_correct\000branch\000L1 BTB Correction\000event=0x8a\000\00000\000\000\000"
WARNING: line length of 104 exceeds 100 columns
#94: FILE: tools/perf/pmu-events/empty-pmu-events.c:37:
+/* offset=1187 */ "bp_l2_btb_correct\000branch\000L2 BTB Correction\000event=0x8b\000\00000\000\000\000"
WARNING: line length of 140 exceeds 100 columns
#95: FILE: tools/perf/pmu-events/empty-pmu-events.c:38:
+/* offset=1247 */ "l3_cache_rd\000cache\000L3 cache access, read\000event=0x40\000\00000\000Attributable Level 3 cache access, read\000\000"
WARNING: line length of 147 exceeds 100 columns
#96: FILE: tools/perf/pmu-events/empty-pmu-events.c:39:
+/* offset=1343 */ "segment_reg_loads.any\000other\000Number of segment register loads\000event=6,period=200000,umask=0x80\000\00000\000\0000,1\000"
WARNING: line length of 178 exceeds 100 columns
#97: FILE: tools/perf/pmu-events/empty-pmu-events.c:40:
+/* offset=1446 */ "dispatch_blocked.any\000other\000Memory cluster signals to block micro-op dispatch for any reason\000event=9,period=200000,umask=0x20\000\00000\000\0000,1\000"
WARNING: line length of 163 exceeds 100 columns
#98: FILE: tools/perf/pmu-events/empty-pmu-events.c:41:
+/* offset=1580 */ "eist_trans\000other\000Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions\000event=0x3a,period=200000\000\00000\000\0000,1\000"
WARNING: line length of 131 exceeds 100 columns
#100: FILE: tools/perf/pmu-events/empty-pmu-events.c:43:
+/* offset=1714 */ "uncore_hisi_ddrc.flux_wcmd\000uncore\000DDRC write commands\000event=2\000\00000\000DDRC write commands\000\000"
WARNING: line length of 279 exceeds 100 columns
#102: FILE: tools/perf/pmu-events/empty-pmu-events.c:45:
+/* offset=1813 */ "unc_cbo_xsnp_response.miss_eviction\000uncore\000A cross-core snoop resulted from L3 Eviction which misses in some processor core\000event=0x22,umask=0x81\000\00000\000A cross-core snoop resulted from L3 Eviction which misses in some processor core\0000,1\000"
WARNING: line length of 110 exceeds 100 columns
#103: FILE: tools/perf/pmu-events/empty-pmu-events.c:46:
+/* offset=2048 */ "event-hyphen\000uncore\000UNC_CBO_HYPHEN\000event=0xe0\000\00000\000UNC_CBO_HYPHEN\000\000"
WARNING: line length of 116 exceeds 100 columns
#104: FILE: tools/perf/pmu-events/empty-pmu-events.c:47:
+/* offset=2114 */ "event-two-hyph\000uncore\000UNC_CBO_TWO_HYPH\000event=0xc0\000\00000\000UNC_CBO_TWO_HYPH\000\000"
WARNING: line length of 125 exceeds 100 columns
#106: FILE: tools/perf/pmu-events/empty-pmu-events.c:49:
+/* offset=2200 */ "uncore_hisi_l3c.rd_hit_cpipe\000uncore\000Total read hits\000event=7\000\00000\000Total read hits\000\000"
WARNING: line length of 140 exceeds 100 columns
#108: FILE: tools/perf/pmu-events/empty-pmu-events.c:51:
+/* offset=2305 */ "uncore_imc_free_running.cache_miss\000uncore\000Total cache misses\000event=0x12\000\00000\000Total cache misses\000\000"
WARNING: line length of 123 exceeds 100 columns
#110: FILE: tools/perf/pmu-events/empty-pmu-events.c:53:
+/* offset=2412 */ "uncore_imc.cache_hits\000uncore\000Total cache hits\000event=0x34\000\00000\000Total cache hits\000\000"
WARNING: line length of 118 exceeds 100 columns
#112: FILE: tools/perf/pmu-events/empty-pmu-events.c:55:
+/* offset=2510 */ "sys_ddr_pmu.write_cycles\000uncore\000ddr write-cycles event\000event=0x2b\000v8\00000\000\000\000"
WARNING: line length of 119 exceeds 100 columns
#114: FILE: tools/perf/pmu-events/empty-pmu-events.c:57:
+/* offset=2603 */ "sys_ccn_pmu.read_cycles\000uncore\000ccn read-cycles event\000config=0x2c\0000x01\00000\000\000\000"
WARNING: line length of 185 exceeds 100 columns
#116: FILE: tools/perf/pmu-events/empty-pmu-events.c:59:
+/* offset=2697 */ "sys_cmn_pmu.hnf_cache_miss\000uncore\000Counts total cache misses in first lookup result (high priority)\000eventid=1,type=5\000(434|436|43c|43a).*\00000\000\000\000"
WARNING: line length of 113 exceeds 100 columns
#118: FILE: tools/perf/pmu-events/empty-pmu-events.c:61:
+/* offset=2860 */ "IPC\000group1\000inst_retired.any / cpu_clk_unhalted.thread\000\000\000\000\000\000\000\00000"
WARNING: line length of 216 exceeds 100 columns
#119: FILE: tools/perf/pmu-events/empty-pmu-events.c:62:
+/* offset=2923 */ "Frontend_Bound_SMT\000\000idq_uops_not_delivered.core / (4 * (cpu_clk_unhalted.thread / 2 * (1 + cpu_clk_unhalted.one_thread_active / cpu_clk_unhalted.ref_xclk)))\000\000\000\000\000\000\000\00000"
WARNING: line length of 116 exceeds 100 columns
#120: FILE: tools/perf/pmu-events/empty-pmu-events.c:63:
+/* offset=3089 */ "dcache_miss_cpi\000\000l1d\\-loads\\-misses / inst_retired.any\000\000\000\000\000\000\000\00000"
WARNING: line length of 119 exceeds 100 columns
#121: FILE: tools/perf/pmu-events/empty-pmu-events.c:64:
+/* offset=3153 */ "icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_retired.any\000\000\000\000\000\000\000\00000"
WARNING: line length of 121 exceeds 100 columns
#122: FILE: tools/perf/pmu-events/empty-pmu-events.c:65:
+/* offset=3220 */ "cache_miss_cycles\000group1\000dcache_miss_cpi + icache_miss_cycles\000\000\000\000\000\000\000\00000"
WARNING: line length of 144 exceeds 100 columns
#123: FILE: tools/perf/pmu-events/empty-pmu-events.c:66:
+/* offset=3291 */ "DCache_L2_All_Hits\000\000l2_rqsts.demand_data_rd_hit + l2_rqsts.pf_hit + l2_rqsts.rfo_hit\000\000\000\000\000\000\000\00000"
WARNING: line length of 184 exceeds 100 columns
#124: FILE: tools/perf/pmu-events/empty-pmu-events.c:67:
+/* offset=3385 */ "DCache_L2_All_Miss\000\000max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + l2_rqsts.pf_miss + l2_rqsts.rfo_miss\000\000\000\000\000\000\000\00000"
WARNING: line length of 114 exceeds 100 columns
#125: FILE: tools/perf/pmu-events/empty-pmu-events.c:68:
+/* offset=3519 */ "DCache_L2_All\000\000DCache_L2_All_Hits + DCache_L2_All_Miss\000\000\000\000\000\000\000\00000"
WARNING: line length of 118 exceeds 100 columns
#126: FILE: tools/perf/pmu-events/empty-pmu-events.c:69:
+/* offset=3583 */ "DCache_L2_Hits\000\000d_ratio(DCache_L2_All_Hits, DCache_L2_All)\000\000\000\000\000\000\000\00000"
WARNING: line length of 120 exceeds 100 columns
#127: FILE: tools/perf/pmu-events/empty-pmu-events.c:70:
+/* offset=3651 */ "DCache_L2_Misses\000\000d_ratio(DCache_L2_All_Miss, DCache_L2_All)\000\000\000\000\000\000\000\00000"
WARNING: line length of 121 exceeds 100 columns
#131: FILE: tools/perf/pmu-events/empty-pmu-events.c:74:
+/* offset=3785 */ "L1D_Cache_Fill_BW\000\00064 * l1d.replacement / 1e9 / duration_time\000\000\000\000\000\000\000\00000"
WARNING: line length of 111 exceeds 100 columns
#147: FILE: tools/perf/pmu-events/empty-pmu-events.c:78:
+{ 5 }, /* duration_time\000tool\000Wall clock interval time in nanoseconds\000config=1\000\00000\000\000\000 */
WARNING: line length of 113 exceeds 100 columns
#148: FILE: tools/perf/pmu-events/empty-pmu-events.c:79:
+{ 213 }, /* has_pmem\000tool\0001 if persistent memory installed otherwise 0\000config=4\000\00000\000\000\000 */
WARNING: line length of 182 exceeds 100 columns
#149: FILE: tools/perf/pmu-events/empty-pmu-events.c:80:
+{ 287 }, /* num_cores\000tool\000Number of cores. A core consists of 1 or more thread, with each thread being associated with a logical Linux CPU\000config=5\000\00000\000\000\000 */
WARNING: line length of 140 exceeds 100 columns
#150: FILE: tools/perf/pmu-events/empty-pmu-events.c:81:
+{ 430 }, /* num_cpus\000tool\000Number of logical Linux CPUs. There may be multiple such CPUs on a core\000config=6\000\00000\000\000\000 */
WARNING: line length of 154 exceeds 100 columns
#151: FILE: tools/perf/pmu-events/empty-pmu-events.c:82:
+{ 531 }, /* num_cpus_online\000tool\000Number of online logical Linux CPUs. There may be multiple such CPUs on a core\000config=7\000\00000\000\000\000 */
WARNING: line length of 113 exceeds 100 columns
#152: FILE: tools/perf/pmu-events/empty-pmu-events.c:83:
+{ 646 }, /* num_dies\000tool\000Number of dies. Each die has 1 or more cores\000config=8\000\00000\000\000\000 */
WARNING: line length of 123 exceeds 100 columns
#153: FILE: tools/perf/pmu-events/empty-pmu-events.c:84:
+{ 720 }, /* num_packages\000tool\000Number of packages. Each package has 1 or more die\000config=9\000\00000\000\000\000 */
WARNING: line length of 147 exceeds 100 columns
#154: FILE: tools/perf/pmu-events/empty-pmu-events.c:85:
+{ 804 }, /* slots\000tool\000Number of functional units that in parallel can execute parts of an instruction\000config=0xa\000\00000\000\000\000 */
WARNING: line length of 144 exceeds 100 columns
#155: FILE: tools/perf/pmu-events/empty-pmu-events.c:86:
+{ 912 }, /* smt_on\000tool\0001 if simultaneous multithreading (aka hyperthreading) is enable otherwise 0\000config=0xb\000\00000\000\000\000 */
WARNING: line length of 105 exceeds 100 columns
#156: FILE: tools/perf/pmu-events/empty-pmu-events.c:87:
+{ 147 }, /* system_time\000tool\000System/kernel time in nanoseconds\000config=3\000\00000\000\000\000 */
WARNING: line length of 137 exceeds 100 columns
#157: FILE: tools/perf/pmu-events/empty-pmu-events.c:88:
+{ 1017 }, /* system_tsc_freq\000tool\000The amount a Time Stamp Counter (TSC) increases per second\000config=0xc\000\00000\000\000\000 */
WARNING: line length of 106 exceeds 100 columns
#158: FILE: tools/perf/pmu-events/empty-pmu-events.c:89:
+{ 79 }, /* user_time\000tool\000User (non-kernel) time in nanoseconds\000config=2\000\00000\000\000\000 */
WARNING: line length of 174 exceeds 100 columns
#174: FILE: tools/perf/pmu-events/empty-pmu-events.c:104:
+{ 1446 }, /* dispatch_blocked.any\000other\000Memory cluster signals to block micro-op dispatch for any reason\000event=9,period=200000,umask=0x20\000\00000\000\0000,1\000 */
WARNING: line length of 159 exceeds 100 columns
#175: FILE: tools/perf/pmu-events/empty-pmu-events.c:105:
+{ 1580 }, /* eist_trans\000other\000Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions\000event=0x3a,period=200000\000\00000\000\0000,1\000 */
WARNING: line length of 136 exceeds 100 columns
#176: FILE: tools/perf/pmu-events/empty-pmu-events.c:106:
+{ 1247 }, /* l3_cache_rd\000cache\000L3 cache access, read\000event=0x40\000\00000\000Attributable Level 3 cache access, read\000\000 */
WARNING: line length of 143 exceeds 100 columns
#177: FILE: tools/perf/pmu-events/empty-pmu-events.c:107:
+{ 1343 }, /* segment_reg_loads.any\000other\000Number of segment register loads\000event=6,period=200000,umask=0x80\000\00000\000\0000,1\000 */
WARNING: line length of 127 exceeds 100 columns
#181: FILE: tools/perf/pmu-events/empty-pmu-events.c:110:
+{ 1714 }, /* uncore_hisi_ddrc.flux_wcmd\000uncore\000DDRC write commands\000event=2\000\00000\000DDRC write commands\000\000 */
WARNING: line length of 121 exceeds 100 columns
#185: FILE: tools/perf/pmu-events/empty-pmu-events.c:113:
+{ 2200 }, /* uncore_hisi_l3c.rd_hit_cpipe\000uncore\000Total read hits\000event=7\000\00000\000Total read hits\000\000 */
WARNING: line length of 106 exceeds 100 columns
#191: FILE: tools/perf/pmu-events/empty-pmu-events.c:116:
+{ 2048 }, /* event-hyphen\000uncore\000UNC_CBO_HYPHEN\000event=0xe0\000\00000\000UNC_CBO_HYPHEN\000\000 */
WARNING: line length of 112 exceeds 100 columns
#192: FILE: tools/perf/pmu-events/empty-pmu-events.c:117:
+{ 2114 }, /* event-two-hyph\000uncore\000UNC_CBO_TWO_HYPH\000event=0xc0\000\00000\000UNC_CBO_TWO_HYPH\000\000 */
WARNING: line length of 275 exceeds 100 columns
#193: FILE: tools/perf/pmu-events/empty-pmu-events.c:118:
+{ 1813 }, /* unc_cbo_xsnp_response.miss_eviction\000uncore\000A cross-core snoop resulted from L3 Eviction which misses in some processor core\000event=0x22,umask=0x81\000\00000\000A cross-core snoop resulted from L3 Eviction which misses in some processor core\0000,1\000 */
WARNING: line length of 119 exceeds 100 columns
#197: FILE: tools/perf/pmu-events/empty-pmu-events.c:121:
+{ 2412 }, /* uncore_imc.cache_hits\000uncore\000Total cache hits\000event=0x34\000\00000\000Total cache hits\000\000 */
WARNING: line length of 136 exceeds 100 columns
#201: FILE: tools/perf/pmu-events/empty-pmu-events.c:124:
+{ 2305 }, /* uncore_imc_free_running.cache_miss\000uncore\000Total cache misses\000event=0x12\000\00000\000Total cache misses\000\000 */
WARNING: please, no spaces at the start of a line
#210: FILE: tools/perf/pmu-events/empty-pmu-events.c:132:
+ .pmu_name = { 1114 /* default_core\000 */ },$
WARNING: please, no spaces at the start of a line
#216: FILE: tools/perf/pmu-events/empty-pmu-events.c:137:
+ .pmu_name = { 1699 /* hisi_sccl,ddrc\000 */ },$
WARNING: please, no spaces at the start of a line
#222: FILE: tools/perf/pmu-events/empty-pmu-events.c:142:
+ .pmu_name = { 2186 /* hisi_sccl,l3c\000 */ },$
WARNING: please, no spaces at the start of a line
#228: FILE: tools/perf/pmu-events/empty-pmu-events.c:147:
+ .pmu_name = { 1801 /* uncore_cbox\000 */ },$
WARNING: please, no spaces at the start of a line
#234: FILE: tools/perf/pmu-events/empty-pmu-events.c:152:
+ .pmu_name = { 2401 /* uncore_imc\000 */ },$
WARNING: please, no spaces at the start of a line
#240: FILE: tools/perf/pmu-events/empty-pmu-events.c:157:
+ .pmu_name = { 2281 /* uncore_imc_free_running\000 */ },$
WARNING: line length of 110 exceeds 100 columns
#261: FILE: tools/perf/pmu-events/empty-pmu-events.c:163:
+{ 3519 }, /* DCache_L2_All\000\000DCache_L2_All_Hits + DCache_L2_All_Miss\000\000\000\000\000\000\000\00000 */
WARNING: line length of 140 exceeds 100 columns
#262: FILE: tools/perf/pmu-events/empty-pmu-events.c:164:
+{ 3291 }, /* DCache_L2_All_Hits\000\000l2_rqsts.demand_data_rd_hit + l2_rqsts.pf_hit + l2_rqsts.rfo_hit\000\000\000\000\000\000\000\00000 */
WARNING: line length of 180 exceeds 100 columns
#263: FILE: tools/perf/pmu-events/empty-pmu-events.c:165:
+{ 3385 }, /* DCache_L2_All_Miss\000\000max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + l2_rqsts.pf_miss + l2_rqsts.rfo_miss\000\000\000\000\000\000\000\00000 */
WARNING: line length of 114 exceeds 100 columns
#264: FILE: tools/perf/pmu-events/empty-pmu-events.c:166:
+{ 3583 }, /* DCache_L2_Hits\000\000d_ratio(DCache_L2_All_Hits, DCache_L2_All)\000\000\000\000\000\000\000\00000 */
WARNING: line length of 116 exceeds 100 columns
#265: FILE: tools/perf/pmu-events/empty-pmu-events.c:167:
+{ 3651 }, /* DCache_L2_Misses\000\000d_ratio(DCache_L2_All_Miss, DCache_L2_All)\000\000\000\000\000\000\000\00000 */
WARNING: line length of 212 exceeds 100 columns
#266: FILE: tools/perf/pmu-events/empty-pmu-events.c:168:
+{ 2923 }, /* Frontend_Bound_SMT\000\000idq_uops_not_delivered.core / (4 * (cpu_clk_unhalted.thread / 2 * (1 + cpu_clk_unhalted.one_thread_active / cpu_clk_unhalted.ref_xclk)))\000\000\000\000\000\000\000\00000 */
WARNING: line length of 109 exceeds 100 columns
#267: FILE: tools/perf/pmu-events/empty-pmu-events.c:169:
+{ 2860 }, /* IPC\000group1\000inst_retired.any / cpu_clk_unhalted.thread\000\000\000\000\000\000\000\00000 */
WARNING: line length of 117 exceeds 100 columns
#268: FILE: tools/perf/pmu-events/empty-pmu-events.c:170:
+{ 3785 }, /* L1D_Cache_Fill_BW\000\00064 * l1d.replacement / 1e9 / duration_time\000\000\000\000\000\000\000\00000 */
WARNING: line length of 117 exceeds 100 columns
#272: FILE: tools/perf/pmu-events/empty-pmu-events.c:174:
+{ 3220 }, /* cache_miss_cycles\000group1\000dcache_miss_cpi + icache_miss_cycles\000\000\000\000\000\000\000\00000 */
WARNING: line length of 112 exceeds 100 columns
#273: FILE: tools/perf/pmu-events/empty-pmu-events.c:175:
+{ 3089 }, /* dcache_miss_cpi\000\000l1d\\-loads\\-misses / inst_retired.any\000\000\000\000\000\000\000\00000 */
WARNING: line length of 115 exceeds 100 columns
#274: FILE: tools/perf/pmu-events/empty-pmu-events.c:176:
+{ 3153 }, /* icache_miss_cycles\000\000l1i\\-loads\\-misses / inst_retired.any\000\000\000\000\000\000\000\00000 */
WARNING: please, no spaces at the start of a line
#283: FILE: tools/perf/pmu-events/empty-pmu-events.c:184:
+ .pmu_name = { 1114 /* default_core\000 */ },$
WARNING: line length of 115 exceeds 100 columns
#289: FILE: tools/perf/pmu-events/empty-pmu-events.c:189:
+{ 2603 }, /* sys_ccn_pmu.read_cycles\000uncore\000ccn read-cycles event\000config=0x2c\0000x01\00000\000\000\000 */
WARNING: line length of 181 exceeds 100 columns
#293: FILE: tools/perf/pmu-events/empty-pmu-events.c:192:
+{ 2697 }, /* sys_cmn_pmu.hnf_cache_miss\000uncore\000Counts total cache misses in first lookup result (high priority)\000eventid=1,type=5\000(434|436|43c|43a).*\00000\000\000\000 */
WARNING: line length of 114 exceeds 100 columns
#297: FILE: tools/perf/pmu-events/empty-pmu-events.c:195:
+{ 2510 }, /* sys_ddr_pmu.write_cycles\000uncore\000ddr write-cycles event\000event=0x2b\000v8\00000\000\000\000 */
WARNING: please, no spaces at the start of a line
#306: FILE: tools/perf/pmu-events/empty-pmu-events.c:203:
+ .pmu_name = { 2584 /* uncore_sys_ccn_pmu\000 */ },$
WARNING: please, no spaces at the start of a line
#312: FILE: tools/perf/pmu-events/empty-pmu-events.c:208:
+ .pmu_name = { 2678 /* uncore_sys_cmn_pmu\000 */ },$
WARNING: please, no spaces at the start of a line
#318: FILE: tools/perf/pmu-events/empty-pmu-events.c:213:
+ .pmu_name = { 2491 /* uncore_sys_ddr_pmu\000 */ },$
ERROR: code indent should use tabs where possible
#328: FILE: tools/perf/pmu-events/empty-pmu-events.c:232:
+ const struct compact_pmu_event *entries;$
WARNING: please, no spaces at the start of a line
#328: FILE: tools/perf/pmu-events/empty-pmu-events.c:232:
+ const struct compact_pmu_event *entries;$
ERROR: code indent should use tabs where possible
#329: FILE: tools/perf/pmu-events/empty-pmu-events.c:233:
+ size_t length;$
WARNING: please, no spaces at the start of a line
#329: FILE: tools/perf/pmu-events/empty-pmu-events.c:233:
+ size_t length;$
ERROR: code indent should use tabs where possible
#339: FILE: tools/perf/pmu-events/empty-pmu-events.c:249:
+ struct pmu_layouts_table layout_table;$
WARNING: please, no spaces at the start of a line
#339: FILE: tools/perf/pmu-events/empty-pmu-events.c:249:
+ struct pmu_layouts_table layout_table;$
ERROR: trailing statements should be on next line
#355: FILE: tools/perf/pmu-events/empty-pmu-events.c:328:
+ while (*p++);
ERROR: trailing statements should be on next line
#369: FILE: tools/perf/pmu-events/empty-pmu-events.c:366:
+ while (*p++);
ERROR: open brace '{' following function definitions go on the next line
#384: FILE: tools/perf/pmu-events/empty-pmu-events.c:529:
+int pmu_layouts_table__for_each_layout(const struct pmu_layouts_table *table,
+ pmu_layout_iter_fn fn,
+ void *data) {
ERROR: code indent should use tabs where possible
#385: FILE: tools/perf/pmu-events/empty-pmu-events.c:530:
+ pmu_layout_iter_fn fn,$
CHECK: Alignment should match open parenthesis
#385: FILE: tools/perf/pmu-events/empty-pmu-events.c:530:
+int pmu_layouts_table__for_each_layout(const struct pmu_layouts_table *table,
+ pmu_layout_iter_fn fn,
WARNING: please, no spaces at the start of a line
#385: FILE: tools/perf/pmu-events/empty-pmu-events.c:530:
+ pmu_layout_iter_fn fn,$
ERROR: code indent should use tabs where possible
#386: FILE: tools/perf/pmu-events/empty-pmu-events.c:531:
+ void *data) {$
WARNING: please, no spaces at the start of a line
#386: FILE: tools/perf/pmu-events/empty-pmu-events.c:531:
+ void *data) {$
ERROR: code indent should use tabs where possible
#387: FILE: tools/perf/pmu-events/empty-pmu-events.c:532:
+ for (size_t i = 0; i < table->length; i++) {$
WARNING: please, no spaces at the start of a line
#387: FILE: tools/perf/pmu-events/empty-pmu-events.c:532:
+ for (size_t i = 0; i < table->length; i++) {$
ERROR: code indent should use tabs where possible
#388: FILE: tools/perf/pmu-events/empty-pmu-events.c:533:
+ struct pmu_layout pm;$
WARNING: please, no spaces at the start of a line
#388: FILE: tools/perf/pmu-events/empty-pmu-events.c:533:
+ struct pmu_layout pm;$
ERROR: code indent should use tabs where possible
#389: FILE: tools/perf/pmu-events/empty-pmu-events.c:534:
+ int ret;$
WARNING: please, no spaces at the start of a line
#389: FILE: tools/perf/pmu-events/empty-pmu-events.c:534:
+ int ret;$
ERROR: code indent should use tabs where possible
#391: FILE: tools/perf/pmu-events/empty-pmu-events.c:536:
+ decompress_layout(table->entries[i].offset, &pm);$
WARNING: please, no spaces at the start of a line
#391: FILE: tools/perf/pmu-events/empty-pmu-events.c:536:
+ decompress_layout(table->entries[i].offset, &pm);$
ERROR: code indent should use tabs where possible
#392: FILE: tools/perf/pmu-events/empty-pmu-events.c:537:
+ ret = fn(&pm, data);$
WARNING: please, no spaces at the start of a line
#392: FILE: tools/perf/pmu-events/empty-pmu-events.c:537:
+ ret = fn(&pm, data);$
ERROR: code indent should use tabs where possible
#393: FILE: tools/perf/pmu-events/empty-pmu-events.c:538:
+ if (ret)$
WARNING: please, no spaces at the start of a line
#393: FILE: tools/perf/pmu-events/empty-pmu-events.c:538:
+ if (ret)$
ERROR: code indent should use tabs where possible
#394: FILE: tools/perf/pmu-events/empty-pmu-events.c:539:
+ return ret;$
WARNING: please, no spaces at the start of a line
#394: FILE: tools/perf/pmu-events/empty-pmu-events.c:539:
+ return ret;$
ERROR: code indent should use tabs where possible
#395: FILE: tools/perf/pmu-events/empty-pmu-events.c:540:
+ }$
WARNING: please, no spaces at the start of a line
#395: FILE: tools/perf/pmu-events/empty-pmu-events.c:540:
+ }$
ERROR: code indent should use tabs where possible
#396: FILE: tools/perf/pmu-events/empty-pmu-events.c:541:
+ return 0;$
WARNING: please, no spaces at the start of a line
#396: FILE: tools/perf/pmu-events/empty-pmu-events.c:541:
+ return 0;$
ERROR: code indent should use tabs where possible
#408: FILE: tools/perf/pmu-events/empty-pmu-events.c:638:
+ const struct pmu_layouts_table *table = NULL;$
WARNING: please, no spaces at the start of a line
#408: FILE: tools/perf/pmu-events/empty-pmu-events.c:638:
+ const struct pmu_layouts_table *table = NULL;$
ERROR: code indent should use tabs where possible
#409: FILE: tools/perf/pmu-events/empty-pmu-events.c:639:
+ struct perf_cpu cpu = {-1};$
WARNING: please, no spaces at the start of a line
#409: FILE: tools/perf/pmu-events/empty-pmu-events.c:639:
+ struct perf_cpu cpu = {-1};$
ERROR: code indent should use tabs where possible
#410: FILE: tools/perf/pmu-events/empty-pmu-events.c:640:
+ char *cpuid = get_cpuid_allow_env_override(cpu);$
WARNING: please, no spaces at the start of a line
#410: FILE: tools/perf/pmu-events/empty-pmu-events.c:640:
+ char *cpuid = get_cpuid_allow_env_override(cpu);$
ERROR: code indent should use tabs where possible
#411: FILE: tools/perf/pmu-events/empty-pmu-events.c:641:
+ int i;$
WARNING: please, no spaces at the start of a line
#411: FILE: tools/perf/pmu-events/empty-pmu-events.c:641:
+ int i;$
ERROR: code indent should use tabs where possible
#413: FILE: tools/perf/pmu-events/empty-pmu-events.c:643:
+ /* on some platforms which uses cpus map, cpuid can be NULL for$
ERROR: code indent should use tabs where possible
#414: FILE: tools/perf/pmu-events/empty-pmu-events.c:644:
+ * PMUs other than CORE PMUs.$
ERROR: code indent should use tabs where possible
#415: FILE: tools/perf/pmu-events/empty-pmu-events.c:645:
+ */$
ERROR: code indent should use tabs where possible
#416: FILE: tools/perf/pmu-events/empty-pmu-events.c:646:
+ if (!cpuid)$
WARNING: please, no spaces at the start of a line
#416: FILE: tools/perf/pmu-events/empty-pmu-events.c:646:
+ if (!cpuid)$
ERROR: code indent should use tabs where possible
#417: FILE: tools/perf/pmu-events/empty-pmu-events.c:647:
+ return NULL;$
WARNING: please, no spaces at the start of a line
#417: FILE: tools/perf/pmu-events/empty-pmu-events.c:647:
+ return NULL;$
ERROR: code indent should use tabs where possible
#419: FILE: tools/perf/pmu-events/empty-pmu-events.c:649:
+ i = 0;$
WARNING: please, no spaces at the start of a line
#419: FILE: tools/perf/pmu-events/empty-pmu-events.c:649:
+ i = 0;$
ERROR: code indent should use tabs where possible
#420: FILE: tools/perf/pmu-events/empty-pmu-events.c:650:
+ for (;;) {$
WARNING: please, no spaces at the start of a line
#420: FILE: tools/perf/pmu-events/empty-pmu-events.c:650:
+ for (;;) {$
ERROR: code indent should use tabs where possible
#421: FILE: tools/perf/pmu-events/empty-pmu-events.c:651:
+ const struct pmu_events_map *map = &pmu_events_map[i++];$
WARNING: please, no spaces at the start of a line
#421: FILE: tools/perf/pmu-events/empty-pmu-events.c:651:
+ const struct pmu_events_map *map = &pmu_events_map[i++];$
ERROR: code indent should use tabs where possible
#422: FILE: tools/perf/pmu-events/empty-pmu-events.c:652:
+ if (!map->arch)$
WARNING: Missing a blank line after declarations
#422: FILE: tools/perf/pmu-events/empty-pmu-events.c:652:
+ const struct pmu_events_map *map = &pmu_events_map[i++];
+ if (!map->arch)
WARNING: please, no spaces at the start of a line
#422: FILE: tools/perf/pmu-events/empty-pmu-events.c:652:
+ if (!map->arch)$
ERROR: code indent should use tabs where possible
#423: FILE: tools/perf/pmu-events/empty-pmu-events.c:653:
+ break;$
WARNING: please, no spaces at the start of a line
#423: FILE: tools/perf/pmu-events/empty-pmu-events.c:653:
+ break;$
ERROR: code indent should use tabs where possible
#425: FILE: tools/perf/pmu-events/empty-pmu-events.c:655:
+ if (!strcmp_cpuid_str(map->cpuid, cpuid)) {$
WARNING: please, no spaces at the start of a line
#425: FILE: tools/perf/pmu-events/empty-pmu-events.c:655:
+ if (!strcmp_cpuid_str(map->cpuid, cpuid)) {$
ERROR: code indent should use tabs where possible
#426: FILE: tools/perf/pmu-events/empty-pmu-events.c:656:
+ table = &map->layout_table;$
WARNING: please, no spaces at the start of a line
#426: FILE: tools/perf/pmu-events/empty-pmu-events.c:656:
+ table = &map->layout_table;$
ERROR: code indent should use tabs where possible
#427: FILE: tools/perf/pmu-events/empty-pmu-events.c:657:
+ break;$
WARNING: please, no spaces at the start of a line
#427: FILE: tools/perf/pmu-events/empty-pmu-events.c:657:
+ break;$
ERROR: code indent should use tabs where possible
#428: FILE: tools/perf/pmu-events/empty-pmu-events.c:658:
+ }$
WARNING: please, no spaces at the start of a line
#428: FILE: tools/perf/pmu-events/empty-pmu-events.c:658:
+ }$
ERROR: code indent should use tabs where possible
#429: FILE: tools/perf/pmu-events/empty-pmu-events.c:659:
+ }$
WARNING: please, no spaces at the start of a line
#429: FILE: tools/perf/pmu-events/empty-pmu-events.c:659:
+ }$
ERROR: code indent should use tabs where possible
#430: FILE: tools/perf/pmu-events/empty-pmu-events.c:660:
+ free(cpuid);$
WARNING: please, no spaces at the start of a line
#430: FILE: tools/perf/pmu-events/empty-pmu-events.c:660:
+ free(cpuid);$
ERROR: code indent should use tabs where possible
#431: FILE: tools/perf/pmu-events/empty-pmu-events.c:661:
+ return table;$
WARNING: please, no spaces at the start of a line
#431: FILE: tools/perf/pmu-events/empty-pmu-events.c:661:
+ return table;$
CHECK: Please use a blank line after function/struct/union/enum declarations
#441: FILE: tools/perf/pmu-events/empty-pmu-events.c:685:
}
+const struct pmu_layouts_table *find_core_layouts_table(const char *arch, const char *cpuid)
ERROR: code indent should use tabs where possible
#443: FILE: tools/perf/pmu-events/empty-pmu-events.c:687:
+ for (const struct pmu_events_map *tables = &pmu_events_map[0];$
WARNING: please, no spaces at the start of a line
#443: FILE: tools/perf/pmu-events/empty-pmu-events.c:687:
+ for (const struct pmu_events_map *tables = &pmu_events_map[0];$
ERROR: code indent should use tabs where possible
#444: FILE: tools/perf/pmu-events/empty-pmu-events.c:688:
+ tables->arch;$
WARNING: please, no spaces at the start of a line
#444: FILE: tools/perf/pmu-events/empty-pmu-events.c:688:
+ tables->arch;$
ERROR: code indent should use tabs where possible
#445: FILE: tools/perf/pmu-events/empty-pmu-events.c:689:
+ tables++) {$
WARNING: please, no spaces at the start of a line
#445: FILE: tools/perf/pmu-events/empty-pmu-events.c:689:
+ tables++) {$
ERROR: code indent should use tabs where possible
#446: FILE: tools/perf/pmu-events/empty-pmu-events.c:690:
+ if (!strcmp(tables->arch, arch) && !strcmp_cpuid_str(tables->cpuid, cpuid))$
WARNING: please, no spaces at the start of a line
#446: FILE: tools/perf/pmu-events/empty-pmu-events.c:690:
+ if (!strcmp(tables->arch, arch) && !strcmp_cpuid_str(tables->cpuid, cpuid))$
ERROR: code indent should use tabs where possible
#447: FILE: tools/perf/pmu-events/empty-pmu-events.c:691:
+ return &tables->layout_table;$
WARNING: please, no spaces at the start of a line
#447: FILE: tools/perf/pmu-events/empty-pmu-events.c:691:
+ return &tables->layout_table;$
ERROR: code indent should use tabs where possible
#448: FILE: tools/perf/pmu-events/empty-pmu-events.c:692:
+ }$
WARNING: please, no spaces at the start of a line
#448: FILE: tools/perf/pmu-events/empty-pmu-events.c:692:
+ }$
ERROR: code indent should use tabs where possible
#449: FILE: tools/perf/pmu-events/empty-pmu-events.c:693:
+ return NULL;$
WARNING: please, no spaces at the start of a line
#449: FILE: tools/perf/pmu-events/empty-pmu-events.c:693:
+ return NULL;$
ERROR: that open brace { should be on the previous line
#458: FILE: tools/perf/pmu-events/empty-pmu-events.c:723:
+int pmu_for_each_core_layout(pmu_layout_iter_fn fn, void *data)
+{
ERROR: code indent should use tabs where possible
#460: FILE: tools/perf/pmu-events/empty-pmu-events.c:725:
+ for (const struct pmu_events_map *tables = &pmu_events_map[0];$
WARNING: please, no spaces at the start of a line
#460: FILE: tools/perf/pmu-events/empty-pmu-events.c:725:
+ for (const struct pmu_events_map *tables = &pmu_events_map[0];$
ERROR: code indent should use tabs where possible
#461: FILE: tools/perf/pmu-events/empty-pmu-events.c:726:
+ tables->arch;$
WARNING: please, no spaces at the start of a line
#461: FILE: tools/perf/pmu-events/empty-pmu-events.c:726:
+ tables->arch;$
ERROR: code indent should use tabs where possible
#462: FILE: tools/perf/pmu-events/empty-pmu-events.c:727:
+ tables++) {$
WARNING: please, no spaces at the start of a line
#462: FILE: tools/perf/pmu-events/empty-pmu-events.c:727:
+ tables++) {$
ERROR: code indent should use tabs where possible
#463: FILE: tools/perf/pmu-events/empty-pmu-events.c:728:
+ int ret = pmu_layouts_table__for_each_layout(&tables->layout_table, fn, data);$
WARNING: please, no spaces at the start of a line
#463: FILE: tools/perf/pmu-events/empty-pmu-events.c:728:
+ int ret = pmu_layouts_table__for_each_layout(&tables->layout_table, fn, data);$
ERROR: code indent should use tabs where possible
#465: FILE: tools/perf/pmu-events/empty-pmu-events.c:730:
+ if (ret)$
WARNING: please, no spaces at the start of a line
#465: FILE: tools/perf/pmu-events/empty-pmu-events.c:730:
+ if (ret)$
ERROR: code indent should use tabs where possible
#466: FILE: tools/perf/pmu-events/empty-pmu-events.c:731:
+ return ret;$
WARNING: please, no spaces at the start of a line
#466: FILE: tools/perf/pmu-events/empty-pmu-events.c:731:
+ return ret;$
ERROR: code indent should use tabs where possible
#467: FILE: tools/perf/pmu-events/empty-pmu-events.c:732:
+ }$
WARNING: please, no spaces at the start of a line
#467: FILE: tools/perf/pmu-events/empty-pmu-events.c:732:
+ }$
ERROR: code indent should use tabs where possible
#468: FILE: tools/perf/pmu-events/empty-pmu-events.c:733:
+ return 0;$
WARNING: please, no spaces at the start of a line
#468: FILE: tools/perf/pmu-events/empty-pmu-events.c:733:
+ return 0;$
CHECK: Alignment should match open parenthesis
#939: FILE: tools/perf/pmu-events/pmu-events.h:118:
+int pmu_layouts_table__for_each_layout(const struct pmu_layouts_table *table,
+ pmu_layout_iter_fn fn,
total: 54 errors, 134 warnings, 3 checks, 881 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
NOTE: Whitespace errors detected.
You may wish to use scripts/cleanpatch or scripts/cleanfile
Commit 31e172a06e07 ("perf pmu-events: Add functions in jevent.py to parse counter and event info for hardware aware grouping") has style problems, please review.
NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
CHECK: Alignment should match open parenthesis
CHECK: Please use a blank line after function/struct/union/enum declarations
ERROR: code indent should use tabs where possible
ERROR: open brace '{' following function definitions go on the next line
ERROR: that open brace { should be on the previous line
ERROR: trailing statements should be on next line
WARNING: Missing a blank line after declarations
WARNING: line length of 104 exceeds 100 columns
WARNING: line length of 105 exceeds 100 columns
WARNING: line length of 106 exceeds 100 columns
WARNING: line length of 109 exceeds 100 columns
WARNING: line length of 110 exceeds 100 columns
WARNING: line length of 111 exceeds 100 columns
WARNING: line length of 112 exceeds 100 columns
WARNING: line length of 113 exceeds 100 columns
WARNING: line length of 114 exceeds 100 columns
WARNING: line length of 115 exceeds 100 columns
WARNING: line length of 116 exceeds 100 columns
WARNING: line length of 117 exceeds 100 columns
WARNING: line length of 118 exceeds 100 columns
WARNING: line length of 119 exceeds 100 columns
WARNING: line length of 120 exceeds 100 columns
WARNING: line length of 121 exceeds 100 columns
WARNING: line length of 123 exceeds 100 columns
WARNING: line length of 125 exceeds 100 columns
WARNING: line length of 127 exceeds 100 columns
WARNING: line length of 131 exceeds 100 columns
WARNING: line length of 136 exceeds 100 columns
WARNING: line length of 137 exceeds 100 columns
WARNING: line length of 140 exceeds 100 columns
WARNING: line length of 141 exceeds 100 columns
WARNING: line length of 143 exceeds 100 columns
WARNING: line length of 144 exceeds 100 columns
WARNING: line length of 147 exceeds 100 columns
WARNING: line length of 148 exceeds 100 columns
WARNING: line length of 151 exceeds 100 columns
WARNING: line length of 154 exceeds 100 columns
WARNING: line length of 158 exceeds 100 columns
WARNING: line length of 159 exceeds 100 columns
WARNING: line length of 163 exceeds 100 columns
WARNING: line length of 174 exceeds 100 columns
WARNING: line length of 178 exceeds 100 columns
WARNING: line length of 180 exceeds 100 columns
WARNING: line length of 181 exceeds 100 columns
WARNING: line length of 182 exceeds 100 columns
WARNING: line length of 184 exceeds 100 columns
WARNING: line length of 185 exceeds 100 columns
WARNING: line length of 186 exceeds 100 columns
WARNING: line length of 212 exceeds 100 columns
WARNING: line length of 216 exceeds 100 columns
WARNING: line length of 275 exceeds 100 columns
WARNING: line length of 279 exceeds 100 columns
WARNING: please, no spaces at the start of a line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment