1b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0 285c51c51SRalf Baechle #include <linux/cpumask.h> 385c51c51SRalf Baechle #include <linux/debugfs.h> 485c51c51SRalf Baechle #include <linux/fs.h> 585c51c51SRalf Baechle #include <linux/init.h> 685c51c51SRalf Baechle #include <linux/percpu.h> 785c51c51SRalf Baechle #include <linux/types.h> 875dcfc1dSPaul Burton #include <asm/debug.h> 985c51c51SRalf Baechle #include <asm/fpu_emulator.h> 1085c51c51SRalf Baechle #include <asm/local.h> 1185c51c51SRalf Baechle 1285c51c51SRalf Baechle DEFINE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); 1385c51c51SRalf Baechle 1485c51c51SRalf Baechle static int fpuemu_stat_get(void *data, u64 *val) 1585c51c51SRalf Baechle { 1685c51c51SRalf Baechle int cpu; 1785c51c51SRalf Baechle unsigned long sum = 0; 1885c51c51SRalf Baechle 1985c51c51SRalf Baechle for_each_online_cpu(cpu) { 2085c51c51SRalf Baechle struct mips_fpu_emulator_stats *ps; 2185c51c51SRalf Baechle local_t *pv; 2285c51c51SRalf Baechle 2385c51c51SRalf Baechle ps = &per_cpu(fpuemustats, cpu); 2485c51c51SRalf Baechle pv = (void *)ps + (unsigned long)data; 2585c51c51SRalf Baechle sum += local_read(pv); 2685c51c51SRalf Baechle } 2785c51c51SRalf Baechle *val = sum; 2885c51c51SRalf Baechle return 0; 2985c51c51SRalf Baechle } 3085c51c51SRalf Baechle DEFINE_SIMPLE_ATTRIBUTE(fops_fpuemu_stat, fpuemu_stat_get, NULL, "%llu\n"); 3185c51c51SRalf Baechle 32454854acSAleksandar Markovic /* 33454854acSAleksandar Markovic * Used to obtain names for a debugfs instruction counter, given field name 34454854acSAleksandar Markovic * in fpuemustats structure. For example, for input "cmp_sueq_d", the output 35454854acSAleksandar Markovic * would be "cmp.sueq.d". This is needed since dots are not allowed to be 36454854acSAleksandar Markovic * used in structure field names, and are, on the other hand, desired to be 37454854acSAleksandar Markovic * used in debugfs item names to be clearly associated to corresponding 38454854acSAleksandar Markovic * MIPS FPU instructions. 39454854acSAleksandar Markovic */ 40454854acSAleksandar Markovic static void adjust_instruction_counter_name(char *out_name, char *in_name) 41454854acSAleksandar Markovic { 42454854acSAleksandar Markovic int i = 0; 43454854acSAleksandar Markovic 44454854acSAleksandar Markovic strcpy(out_name, in_name); 45454854acSAleksandar Markovic while (in_name[i] != '\0') { 46454854acSAleksandar Markovic if (out_name[i] == '_') 47454854acSAleksandar Markovic out_name[i] = '.'; 48454854acSAleksandar Markovic i++; 49454854acSAleksandar Markovic } 50454854acSAleksandar Markovic } 51454854acSAleksandar Markovic 5225ad8db6SAleksandar Markovic static int fpuemustats_clear_show(struct seq_file *s, void *unused) 5325ad8db6SAleksandar Markovic { 5425ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).emulated, 0); 5525ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).loads, 0); 5625ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).stores, 0); 5725ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).branches, 0); 5825ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).cp1ops, 0); 5925ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).cp1xops, 0); 6025ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).errors, 0); 6125ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ieee754_inexact, 0); 6225ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ieee754_underflow, 0); 6325ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ieee754_overflow, 0); 6425ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ieee754_zerodiv, 0); 6525ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ieee754_invalidop, 0); 6625ad8db6SAleksandar Markovic __this_cpu_write((fpuemustats).ds_emul, 0); 6725ad8db6SAleksandar Markovic 68454854acSAleksandar Markovic __this_cpu_write((fpuemustats).abs_s, 0); 69454854acSAleksandar Markovic __this_cpu_write((fpuemustats).abs_d, 0); 70454854acSAleksandar Markovic __this_cpu_write((fpuemustats).add_s, 0); 71454854acSAleksandar Markovic __this_cpu_write((fpuemustats).add_d, 0); 72454854acSAleksandar Markovic __this_cpu_write((fpuemustats).bc1eqz, 0); 73454854acSAleksandar Markovic __this_cpu_write((fpuemustats).bc1nez, 0); 74454854acSAleksandar Markovic __this_cpu_write((fpuemustats).ceil_w_s, 0); 75454854acSAleksandar Markovic __this_cpu_write((fpuemustats).ceil_w_d, 0); 76454854acSAleksandar Markovic __this_cpu_write((fpuemustats).ceil_l_s, 0); 77454854acSAleksandar Markovic __this_cpu_write((fpuemustats).ceil_l_d, 0); 78454854acSAleksandar Markovic __this_cpu_write((fpuemustats).class_s, 0); 79454854acSAleksandar Markovic __this_cpu_write((fpuemustats).class_d, 0); 80454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_af_s, 0); 81454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_af_d, 0); 82454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_eq_s, 0); 83454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_eq_d, 0); 84454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_le_s, 0); 85454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_le_d, 0); 86454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_lt_s, 0); 87454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_lt_d, 0); 88454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ne_s, 0); 89454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ne_d, 0); 90454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_or_s, 0); 91454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_or_d, 0); 92454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ueq_s, 0); 93454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ueq_d, 0); 94454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ule_s, 0); 95454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ule_d, 0); 96454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ult_s, 0); 97454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_ult_d, 0); 98454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_un_s, 0); 99454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_un_d, 0); 100454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_une_s, 0); 101454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_une_d, 0); 102454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_saf_s, 0); 103454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_saf_d, 0); 104454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_seq_s, 0); 105454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_seq_d, 0); 106454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sle_s, 0); 107454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sle_d, 0); 108454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_slt_s, 0); 109454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_slt_d, 0); 110454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sne_s, 0); 111454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sne_d, 0); 112454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sor_s, 0); 113454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sor_d, 0); 114454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sueq_s, 0); 115454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sueq_d, 0); 116454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sule_s, 0); 117454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sule_d, 0); 118454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sult_s, 0); 119454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sult_d, 0); 120454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sun_s, 0); 121454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sun_d, 0); 122454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sune_s, 0); 123454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cmp_sune_d, 0); 124454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_d_l, 0); 125454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_d_s, 0); 126454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_d_w, 0); 127454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_l_s, 0); 128454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_l_d, 0); 129454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_s_d, 0); 130454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_s_l, 0); 131454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_s_w, 0); 132454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_w_s, 0); 133454854acSAleksandar Markovic __this_cpu_write((fpuemustats).cvt_w_d, 0); 134454854acSAleksandar Markovic __this_cpu_write((fpuemustats).div_s, 0); 135454854acSAleksandar Markovic __this_cpu_write((fpuemustats).div_d, 0); 136454854acSAleksandar Markovic __this_cpu_write((fpuemustats).floor_w_s, 0); 137454854acSAleksandar Markovic __this_cpu_write((fpuemustats).floor_w_d, 0); 138454854acSAleksandar Markovic __this_cpu_write((fpuemustats).floor_l_s, 0); 139454854acSAleksandar Markovic __this_cpu_write((fpuemustats).floor_l_d, 0); 140454854acSAleksandar Markovic __this_cpu_write((fpuemustats).maddf_s, 0); 141454854acSAleksandar Markovic __this_cpu_write((fpuemustats).maddf_d, 0); 142454854acSAleksandar Markovic __this_cpu_write((fpuemustats).max_s, 0); 143454854acSAleksandar Markovic __this_cpu_write((fpuemustats).max_d, 0); 144454854acSAleksandar Markovic __this_cpu_write((fpuemustats).maxa_s, 0); 145454854acSAleksandar Markovic __this_cpu_write((fpuemustats).maxa_d, 0); 146454854acSAleksandar Markovic __this_cpu_write((fpuemustats).min_s, 0); 147454854acSAleksandar Markovic __this_cpu_write((fpuemustats).min_d, 0); 148454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mina_s, 0); 149454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mina_d, 0); 150454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mov_s, 0); 151454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mov_d, 0); 152454854acSAleksandar Markovic __this_cpu_write((fpuemustats).msubf_s, 0); 153454854acSAleksandar Markovic __this_cpu_write((fpuemustats).msubf_d, 0); 154454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mul_s, 0); 155454854acSAleksandar Markovic __this_cpu_write((fpuemustats).mul_d, 0); 156454854acSAleksandar Markovic __this_cpu_write((fpuemustats).neg_s, 0); 157454854acSAleksandar Markovic __this_cpu_write((fpuemustats).neg_d, 0); 158454854acSAleksandar Markovic __this_cpu_write((fpuemustats).recip_s, 0); 159454854acSAleksandar Markovic __this_cpu_write((fpuemustats).recip_d, 0); 160454854acSAleksandar Markovic __this_cpu_write((fpuemustats).rint_s, 0); 161454854acSAleksandar Markovic __this_cpu_write((fpuemustats).rint_d, 0); 162454854acSAleksandar Markovic __this_cpu_write((fpuemustats).round_w_s, 0); 163454854acSAleksandar Markovic __this_cpu_write((fpuemustats).round_w_d, 0); 164454854acSAleksandar Markovic __this_cpu_write((fpuemustats).round_l_s, 0); 165454854acSAleksandar Markovic __this_cpu_write((fpuemustats).round_l_d, 0); 166454854acSAleksandar Markovic __this_cpu_write((fpuemustats).rsqrt_s, 0); 167454854acSAleksandar Markovic __this_cpu_write((fpuemustats).rsqrt_d, 0); 168454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sel_s, 0); 169454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sel_d, 0); 170454854acSAleksandar Markovic __this_cpu_write((fpuemustats).seleqz_s, 0); 171454854acSAleksandar Markovic __this_cpu_write((fpuemustats).seleqz_d, 0); 172454854acSAleksandar Markovic __this_cpu_write((fpuemustats).selnez_s, 0); 173454854acSAleksandar Markovic __this_cpu_write((fpuemustats).selnez_d, 0); 174454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sqrt_s, 0); 175454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sqrt_d, 0); 176454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sub_s, 0); 177454854acSAleksandar Markovic __this_cpu_write((fpuemustats).sub_d, 0); 178454854acSAleksandar Markovic __this_cpu_write((fpuemustats).trunc_w_s, 0); 179454854acSAleksandar Markovic __this_cpu_write((fpuemustats).trunc_w_d, 0); 180454854acSAleksandar Markovic __this_cpu_write((fpuemustats).trunc_l_s, 0); 181454854acSAleksandar Markovic __this_cpu_write((fpuemustats).trunc_l_d, 0); 182454854acSAleksandar Markovic 18325ad8db6SAleksandar Markovic return 0; 18425ad8db6SAleksandar Markovic } 18525ad8db6SAleksandar Markovic 18667769857SYangtao Li DEFINE_SHOW_ATTRIBUTE(fpuemustats_clear); 18725ad8db6SAleksandar Markovic 18885c51c51SRalf Baechle static int __init debugfs_fpuemu(void) 18985c51c51SRalf Baechle { 190454854acSAleksandar Markovic struct dentry *fpuemu_debugfs_base_dir; 191454854acSAleksandar Markovic struct dentry *fpuemu_debugfs_inst_dir; 192*7d73d572SPaul Burton char name[32]; 193454854acSAleksandar Markovic 194454854acSAleksandar Markovic fpuemu_debugfs_base_dir = debugfs_create_dir("fpuemustats", 195454854acSAleksandar Markovic mips_debugfs_dir); 196454854acSAleksandar Markovic 197ef9d5a6aSGreg Kroah-Hartman debugfs_create_file("fpuemustats_clear", 0444, mips_debugfs_dir, NULL, 19825ad8db6SAleksandar Markovic &fpuemustats_clear_fops); 19985c51c51SRalf Baechle 20047fa0c02SRalf Baechle #define FPU_EMU_STAT_OFFSET(m) \ 20147fa0c02SRalf Baechle offsetof(struct mips_fpu_emulator_stats, m) 20247fa0c02SRalf Baechle 20347fa0c02SRalf Baechle #define FPU_STAT_CREATE(m) \ 20485c51c51SRalf Baechle do { \ 205ef9d5a6aSGreg Kroah-Hartman debugfs_create_file(#m, 0444, fpuemu_debugfs_base_dir, \ 20647fa0c02SRalf Baechle (void *)FPU_EMU_STAT_OFFSET(m), \ 20785c51c51SRalf Baechle &fops_fpuemu_stat); \ 20885c51c51SRalf Baechle } while (0) 20985c51c51SRalf Baechle 21085c51c51SRalf Baechle FPU_STAT_CREATE(emulated); 21185c51c51SRalf Baechle FPU_STAT_CREATE(loads); 21285c51c51SRalf Baechle FPU_STAT_CREATE(stores); 213ae5f3f5bSAleksandar Markovic FPU_STAT_CREATE(branches); 21485c51c51SRalf Baechle FPU_STAT_CREATE(cp1ops); 21585c51c51SRalf Baechle FPU_STAT_CREATE(cp1xops); 21685c51c51SRalf Baechle FPU_STAT_CREATE(errors); 217c4103526SDeng-Cheng Zhu FPU_STAT_CREATE(ieee754_inexact); 218c4103526SDeng-Cheng Zhu FPU_STAT_CREATE(ieee754_underflow); 219c4103526SDeng-Cheng Zhu FPU_STAT_CREATE(ieee754_overflow); 220c4103526SDeng-Cheng Zhu FPU_STAT_CREATE(ieee754_zerodiv); 221c4103526SDeng-Cheng Zhu FPU_STAT_CREATE(ieee754_invalidop); 2222707cd29SDavid Daney FPU_STAT_CREATE(ds_emul); 22385c51c51SRalf Baechle 224454854acSAleksandar Markovic fpuemu_debugfs_inst_dir = debugfs_create_dir("instructions", 225454854acSAleksandar Markovic fpuemu_debugfs_base_dir); 226454854acSAleksandar Markovic 227454854acSAleksandar Markovic #define FPU_STAT_CREATE_EX(m) \ 228454854acSAleksandar Markovic do { \ 229454854acSAleksandar Markovic adjust_instruction_counter_name(name, #m); \ 230454854acSAleksandar Markovic \ 231ef9d5a6aSGreg Kroah-Hartman debugfs_create_file(name, 0444, fpuemu_debugfs_inst_dir, \ 232454854acSAleksandar Markovic (void *)FPU_EMU_STAT_OFFSET(m), \ 233454854acSAleksandar Markovic &fops_fpuemu_stat); \ 234454854acSAleksandar Markovic } while (0) 235454854acSAleksandar Markovic 236454854acSAleksandar Markovic FPU_STAT_CREATE_EX(abs_s); 237454854acSAleksandar Markovic FPU_STAT_CREATE_EX(abs_d); 238454854acSAleksandar Markovic FPU_STAT_CREATE_EX(add_s); 239454854acSAleksandar Markovic FPU_STAT_CREATE_EX(add_d); 240454854acSAleksandar Markovic FPU_STAT_CREATE_EX(bc1eqz); 241454854acSAleksandar Markovic FPU_STAT_CREATE_EX(bc1nez); 242454854acSAleksandar Markovic FPU_STAT_CREATE_EX(ceil_w_s); 243454854acSAleksandar Markovic FPU_STAT_CREATE_EX(ceil_w_d); 244454854acSAleksandar Markovic FPU_STAT_CREATE_EX(ceil_l_s); 245454854acSAleksandar Markovic FPU_STAT_CREATE_EX(ceil_l_d); 246454854acSAleksandar Markovic FPU_STAT_CREATE_EX(class_s); 247454854acSAleksandar Markovic FPU_STAT_CREATE_EX(class_d); 248454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_af_s); 249454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_af_d); 250454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_eq_s); 251454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_eq_d); 252454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_le_s); 253454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_le_d); 254454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_lt_s); 255454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_lt_d); 256454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ne_s); 257454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ne_d); 258454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_or_s); 259454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_or_d); 260454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ueq_s); 261454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ueq_d); 262454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ule_s); 263454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ule_d); 264454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ult_s); 265454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_ult_d); 266454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_un_s); 267454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_un_d); 268454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_une_s); 269454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_une_d); 270454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_saf_s); 271454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_saf_d); 272454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_seq_s); 273454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_seq_d); 274454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sle_s); 275454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sle_d); 276454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_slt_s); 277454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_slt_d); 278454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sne_s); 279454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sne_d); 280454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sor_s); 281454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sor_d); 282454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sueq_s); 283454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sueq_d); 284454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sule_s); 285454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sule_d); 286454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sult_s); 287454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sult_d); 288454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sun_s); 289454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sun_d); 290454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sune_s); 291454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cmp_sune_d); 292454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_d_l); 293454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_d_s); 294454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_d_w); 295454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_l_s); 296454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_l_d); 297454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_s_d); 298454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_s_l); 299454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_s_w); 300454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_w_s); 301454854acSAleksandar Markovic FPU_STAT_CREATE_EX(cvt_w_d); 302454854acSAleksandar Markovic FPU_STAT_CREATE_EX(div_s); 303454854acSAleksandar Markovic FPU_STAT_CREATE_EX(div_d); 304454854acSAleksandar Markovic FPU_STAT_CREATE_EX(floor_w_s); 305454854acSAleksandar Markovic FPU_STAT_CREATE_EX(floor_w_d); 306454854acSAleksandar Markovic FPU_STAT_CREATE_EX(floor_l_s); 307454854acSAleksandar Markovic FPU_STAT_CREATE_EX(floor_l_d); 308454854acSAleksandar Markovic FPU_STAT_CREATE_EX(maddf_s); 309454854acSAleksandar Markovic FPU_STAT_CREATE_EX(maddf_d); 310454854acSAleksandar Markovic FPU_STAT_CREATE_EX(max_s); 311454854acSAleksandar Markovic FPU_STAT_CREATE_EX(max_d); 312454854acSAleksandar Markovic FPU_STAT_CREATE_EX(maxa_s); 313454854acSAleksandar Markovic FPU_STAT_CREATE_EX(maxa_d); 314454854acSAleksandar Markovic FPU_STAT_CREATE_EX(min_s); 315454854acSAleksandar Markovic FPU_STAT_CREATE_EX(min_d); 316454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mina_s); 317454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mina_d); 318454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mov_s); 319454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mov_d); 320454854acSAleksandar Markovic FPU_STAT_CREATE_EX(msubf_s); 321454854acSAleksandar Markovic FPU_STAT_CREATE_EX(msubf_d); 322454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mul_s); 323454854acSAleksandar Markovic FPU_STAT_CREATE_EX(mul_d); 324454854acSAleksandar Markovic FPU_STAT_CREATE_EX(neg_s); 325454854acSAleksandar Markovic FPU_STAT_CREATE_EX(neg_d); 326454854acSAleksandar Markovic FPU_STAT_CREATE_EX(recip_s); 327454854acSAleksandar Markovic FPU_STAT_CREATE_EX(recip_d); 328454854acSAleksandar Markovic FPU_STAT_CREATE_EX(rint_s); 329454854acSAleksandar Markovic FPU_STAT_CREATE_EX(rint_d); 330454854acSAleksandar Markovic FPU_STAT_CREATE_EX(round_w_s); 331454854acSAleksandar Markovic FPU_STAT_CREATE_EX(round_w_d); 332454854acSAleksandar Markovic FPU_STAT_CREATE_EX(round_l_s); 333454854acSAleksandar Markovic FPU_STAT_CREATE_EX(round_l_d); 334454854acSAleksandar Markovic FPU_STAT_CREATE_EX(rsqrt_s); 335454854acSAleksandar Markovic FPU_STAT_CREATE_EX(rsqrt_d); 336454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sel_s); 337454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sel_d); 338454854acSAleksandar Markovic FPU_STAT_CREATE_EX(seleqz_s); 339454854acSAleksandar Markovic FPU_STAT_CREATE_EX(seleqz_d); 340454854acSAleksandar Markovic FPU_STAT_CREATE_EX(selnez_s); 341454854acSAleksandar Markovic FPU_STAT_CREATE_EX(selnez_d); 342454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sqrt_s); 343454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sqrt_d); 344454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sub_s); 345454854acSAleksandar Markovic FPU_STAT_CREATE_EX(sub_d); 346454854acSAleksandar Markovic FPU_STAT_CREATE_EX(trunc_w_s); 347454854acSAleksandar Markovic FPU_STAT_CREATE_EX(trunc_w_d); 348454854acSAleksandar Markovic FPU_STAT_CREATE_EX(trunc_l_s); 349454854acSAleksandar Markovic FPU_STAT_CREATE_EX(trunc_l_d); 350454854acSAleksandar Markovic 35185c51c51SRalf Baechle return 0; 35285c51c51SRalf Baechle } 3531249ed35SRalf Baechle arch_initcall(debugfs_fpuemu); 354