xref: /OK3568_Linux_fs/kernel/arch/mips/math-emu/me-debugfs.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun #include <linux/cpumask.h>
3*4882a593Smuzhiyun #include <linux/debugfs.h>
4*4882a593Smuzhiyun #include <linux/fs.h>
5*4882a593Smuzhiyun #include <linux/init.h>
6*4882a593Smuzhiyun #include <linux/percpu.h>
7*4882a593Smuzhiyun #include <linux/types.h>
8*4882a593Smuzhiyun #include <asm/debug.h>
9*4882a593Smuzhiyun #include <asm/fpu_emulator.h>
10*4882a593Smuzhiyun #include <asm/local.h>
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun DEFINE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats);
13*4882a593Smuzhiyun 
fpuemu_stat_get(void * data,u64 * val)14*4882a593Smuzhiyun static int fpuemu_stat_get(void *data, u64 *val)
15*4882a593Smuzhiyun {
16*4882a593Smuzhiyun 	int cpu;
17*4882a593Smuzhiyun 	unsigned long sum = 0;
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun 	for_each_online_cpu(cpu) {
20*4882a593Smuzhiyun 		struct mips_fpu_emulator_stats *ps;
21*4882a593Smuzhiyun 		local_t *pv;
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun 		ps = &per_cpu(fpuemustats, cpu);
24*4882a593Smuzhiyun 		pv = (void *)ps + (unsigned long)data;
25*4882a593Smuzhiyun 		sum += local_read(pv);
26*4882a593Smuzhiyun 	}
27*4882a593Smuzhiyun 	*val = sum;
28*4882a593Smuzhiyun 	return 0;
29*4882a593Smuzhiyun }
30*4882a593Smuzhiyun DEFINE_SIMPLE_ATTRIBUTE(fops_fpuemu_stat, fpuemu_stat_get, NULL, "%llu\n");
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun /*
33*4882a593Smuzhiyun  * Used to obtain names for a debugfs instruction counter, given field name
34*4882a593Smuzhiyun  * in fpuemustats structure. For example, for input "cmp_sueq_d", the output
35*4882a593Smuzhiyun  * would be "cmp.sueq.d". This is needed since dots are not allowed to be
36*4882a593Smuzhiyun  * used in structure field names, and are, on the other hand, desired to be
37*4882a593Smuzhiyun  * used in debugfs item names to be clearly associated to corresponding
38*4882a593Smuzhiyun  * MIPS FPU instructions.
39*4882a593Smuzhiyun  */
adjust_instruction_counter_name(char * out_name,char * in_name)40*4882a593Smuzhiyun static void adjust_instruction_counter_name(char *out_name, char *in_name)
41*4882a593Smuzhiyun {
42*4882a593Smuzhiyun 	int i = 0;
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun 	strcpy(out_name, in_name);
45*4882a593Smuzhiyun 	while (in_name[i] != '\0') {
46*4882a593Smuzhiyun 		if (out_name[i] == '_')
47*4882a593Smuzhiyun 			out_name[i] = '.';
48*4882a593Smuzhiyun 		i++;
49*4882a593Smuzhiyun 	}
50*4882a593Smuzhiyun }
51*4882a593Smuzhiyun 
fpuemustats_clear_show(struct seq_file * s,void * unused)52*4882a593Smuzhiyun static int fpuemustats_clear_show(struct seq_file *s, void *unused)
53*4882a593Smuzhiyun {
54*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).emulated, 0);
55*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).loads, 0);
56*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).stores, 0);
57*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).branches, 0);
58*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cp1ops, 0);
59*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cp1xops, 0);
60*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).errors, 0);
61*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ieee754_inexact, 0);
62*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ieee754_underflow, 0);
63*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ieee754_overflow, 0);
64*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ieee754_zerodiv, 0);
65*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ieee754_invalidop, 0);
66*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ds_emul, 0);
67*4882a593Smuzhiyun 
68*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).abs_s, 0);
69*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).abs_d, 0);
70*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).add_s, 0);
71*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).add_d, 0);
72*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).bc1eqz, 0);
73*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).bc1nez, 0);
74*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ceil_w_s, 0);
75*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ceil_w_d, 0);
76*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ceil_l_s, 0);
77*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).ceil_l_d, 0);
78*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).class_s, 0);
79*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).class_d, 0);
80*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_af_s, 0);
81*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_af_d, 0);
82*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_eq_s, 0);
83*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_eq_d, 0);
84*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_le_s, 0);
85*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_le_d, 0);
86*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_lt_s, 0);
87*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_lt_d, 0);
88*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ne_s, 0);
89*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ne_d, 0);
90*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_or_s, 0);
91*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_or_d, 0);
92*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ueq_s, 0);
93*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ueq_d, 0);
94*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ule_s, 0);
95*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ule_d, 0);
96*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ult_s, 0);
97*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_ult_d, 0);
98*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_un_s, 0);
99*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_un_d, 0);
100*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_une_s, 0);
101*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_une_d, 0);
102*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_saf_s, 0);
103*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_saf_d, 0);
104*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_seq_s, 0);
105*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_seq_d, 0);
106*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sle_s, 0);
107*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sle_d, 0);
108*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_slt_s, 0);
109*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_slt_d, 0);
110*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sne_s, 0);
111*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sne_d, 0);
112*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sor_s, 0);
113*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sor_d, 0);
114*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sueq_s, 0);
115*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sueq_d, 0);
116*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sule_s, 0);
117*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sule_d, 0);
118*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sult_s, 0);
119*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sult_d, 0);
120*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sun_s, 0);
121*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sun_d, 0);
122*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sune_s, 0);
123*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cmp_sune_d, 0);
124*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_d_l, 0);
125*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_d_s, 0);
126*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_d_w, 0);
127*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_l_s, 0);
128*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_l_d, 0);
129*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_s_d, 0);
130*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_s_l, 0);
131*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_s_w, 0);
132*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_w_s, 0);
133*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).cvt_w_d, 0);
134*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).div_s, 0);
135*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).div_d, 0);
136*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).floor_w_s, 0);
137*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).floor_w_d, 0);
138*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).floor_l_s, 0);
139*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).floor_l_d, 0);
140*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).maddf_s, 0);
141*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).maddf_d, 0);
142*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).max_s, 0);
143*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).max_d, 0);
144*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).maxa_s, 0);
145*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).maxa_d, 0);
146*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).min_s, 0);
147*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).min_d, 0);
148*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mina_s, 0);
149*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mina_d, 0);
150*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mov_s, 0);
151*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mov_d, 0);
152*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).msubf_s, 0);
153*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).msubf_d, 0);
154*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mul_s, 0);
155*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).mul_d, 0);
156*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).neg_s, 0);
157*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).neg_d, 0);
158*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).recip_s, 0);
159*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).recip_d, 0);
160*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).rint_s, 0);
161*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).rint_d, 0);
162*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).round_w_s, 0);
163*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).round_w_d, 0);
164*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).round_l_s, 0);
165*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).round_l_d, 0);
166*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).rsqrt_s, 0);
167*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).rsqrt_d, 0);
168*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sel_s, 0);
169*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sel_d, 0);
170*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).seleqz_s, 0);
171*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).seleqz_d, 0);
172*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).selnez_s, 0);
173*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).selnez_d, 0);
174*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sqrt_s, 0);
175*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sqrt_d, 0);
176*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sub_s, 0);
177*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).sub_d, 0);
178*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).trunc_w_s, 0);
179*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).trunc_w_d, 0);
180*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).trunc_l_s, 0);
181*4882a593Smuzhiyun 	__this_cpu_write((fpuemustats).trunc_l_d, 0);
182*4882a593Smuzhiyun 
183*4882a593Smuzhiyun 	return 0;
184*4882a593Smuzhiyun }
185*4882a593Smuzhiyun 
186*4882a593Smuzhiyun DEFINE_SHOW_ATTRIBUTE(fpuemustats_clear);
187*4882a593Smuzhiyun 
debugfs_fpuemu(void)188*4882a593Smuzhiyun static int __init debugfs_fpuemu(void)
189*4882a593Smuzhiyun {
190*4882a593Smuzhiyun 	struct dentry *fpuemu_debugfs_base_dir;
191*4882a593Smuzhiyun 	struct dentry *fpuemu_debugfs_inst_dir;
192*4882a593Smuzhiyun 	char name[32];
193*4882a593Smuzhiyun 
194*4882a593Smuzhiyun 	fpuemu_debugfs_base_dir = debugfs_create_dir("fpuemustats",
195*4882a593Smuzhiyun 						     mips_debugfs_dir);
196*4882a593Smuzhiyun 
197*4882a593Smuzhiyun 	debugfs_create_file("fpuemustats_clear", 0444, mips_debugfs_dir, NULL,
198*4882a593Smuzhiyun 			    &fpuemustats_clear_fops);
199*4882a593Smuzhiyun 
200*4882a593Smuzhiyun #define FPU_EMU_STAT_OFFSET(m)						\
201*4882a593Smuzhiyun 	offsetof(struct mips_fpu_emulator_stats, m)
202*4882a593Smuzhiyun 
203*4882a593Smuzhiyun #define FPU_STAT_CREATE(m)						\
204*4882a593Smuzhiyun do {									\
205*4882a593Smuzhiyun 	debugfs_create_file(#m, 0444, fpuemu_debugfs_base_dir,		\
206*4882a593Smuzhiyun 				(void *)FPU_EMU_STAT_OFFSET(m),		\
207*4882a593Smuzhiyun 				&fops_fpuemu_stat);			\
208*4882a593Smuzhiyun } while (0)
209*4882a593Smuzhiyun 
210*4882a593Smuzhiyun 	FPU_STAT_CREATE(emulated);
211*4882a593Smuzhiyun 	FPU_STAT_CREATE(loads);
212*4882a593Smuzhiyun 	FPU_STAT_CREATE(stores);
213*4882a593Smuzhiyun 	FPU_STAT_CREATE(branches);
214*4882a593Smuzhiyun 	FPU_STAT_CREATE(cp1ops);
215*4882a593Smuzhiyun 	FPU_STAT_CREATE(cp1xops);
216*4882a593Smuzhiyun 	FPU_STAT_CREATE(errors);
217*4882a593Smuzhiyun 	FPU_STAT_CREATE(ieee754_inexact);
218*4882a593Smuzhiyun 	FPU_STAT_CREATE(ieee754_underflow);
219*4882a593Smuzhiyun 	FPU_STAT_CREATE(ieee754_overflow);
220*4882a593Smuzhiyun 	FPU_STAT_CREATE(ieee754_zerodiv);
221*4882a593Smuzhiyun 	FPU_STAT_CREATE(ieee754_invalidop);
222*4882a593Smuzhiyun 	FPU_STAT_CREATE(ds_emul);
223*4882a593Smuzhiyun 
224*4882a593Smuzhiyun 	fpuemu_debugfs_inst_dir = debugfs_create_dir("instructions",
225*4882a593Smuzhiyun 						     fpuemu_debugfs_base_dir);
226*4882a593Smuzhiyun 
227*4882a593Smuzhiyun #define FPU_STAT_CREATE_EX(m)						\
228*4882a593Smuzhiyun do {									\
229*4882a593Smuzhiyun 	adjust_instruction_counter_name(name, #m);			\
230*4882a593Smuzhiyun 									\
231*4882a593Smuzhiyun 	debugfs_create_file(name, 0444, fpuemu_debugfs_inst_dir,	\
232*4882a593Smuzhiyun 				(void *)FPU_EMU_STAT_OFFSET(m),		\
233*4882a593Smuzhiyun 				&fops_fpuemu_stat);			\
234*4882a593Smuzhiyun } while (0)
235*4882a593Smuzhiyun 
236*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(abs_s);
237*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(abs_d);
238*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(add_s);
239*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(add_d);
240*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(bc1eqz);
241*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(bc1nez);
242*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(ceil_w_s);
243*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(ceil_w_d);
244*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(ceil_l_s);
245*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(ceil_l_d);
246*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(class_s);
247*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(class_d);
248*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_af_s);
249*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_af_d);
250*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_eq_s);
251*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_eq_d);
252*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_le_s);
253*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_le_d);
254*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_lt_s);
255*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_lt_d);
256*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ne_s);
257*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ne_d);
258*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_or_s);
259*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_or_d);
260*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ueq_s);
261*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ueq_d);
262*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ule_s);
263*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ule_d);
264*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ult_s);
265*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_ult_d);
266*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_un_s);
267*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_un_d);
268*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_une_s);
269*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_une_d);
270*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_saf_s);
271*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_saf_d);
272*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_seq_s);
273*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_seq_d);
274*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sle_s);
275*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sle_d);
276*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_slt_s);
277*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_slt_d);
278*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sne_s);
279*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sne_d);
280*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sor_s);
281*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sor_d);
282*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sueq_s);
283*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sueq_d);
284*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sule_s);
285*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sule_d);
286*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sult_s);
287*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sult_d);
288*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sun_s);
289*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sun_d);
290*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sune_s);
291*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cmp_sune_d);
292*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_d_l);
293*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_d_s);
294*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_d_w);
295*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_l_s);
296*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_l_d);
297*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_s_d);
298*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_s_l);
299*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_s_w);
300*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_w_s);
301*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(cvt_w_d);
302*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(div_s);
303*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(div_d);
304*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(floor_w_s);
305*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(floor_w_d);
306*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(floor_l_s);
307*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(floor_l_d);
308*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(maddf_s);
309*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(maddf_d);
310*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(max_s);
311*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(max_d);
312*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(maxa_s);
313*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(maxa_d);
314*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(min_s);
315*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(min_d);
316*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mina_s);
317*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mina_d);
318*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mov_s);
319*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mov_d);
320*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(msubf_s);
321*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(msubf_d);
322*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mul_s);
323*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(mul_d);
324*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(neg_s);
325*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(neg_d);
326*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(recip_s);
327*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(recip_d);
328*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(rint_s);
329*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(rint_d);
330*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(round_w_s);
331*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(round_w_d);
332*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(round_l_s);
333*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(round_l_d);
334*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(rsqrt_s);
335*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(rsqrt_d);
336*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sel_s);
337*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sel_d);
338*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(seleqz_s);
339*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(seleqz_d);
340*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(selnez_s);
341*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(selnez_d);
342*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sqrt_s);
343*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sqrt_d);
344*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sub_s);
345*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(sub_d);
346*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(trunc_w_s);
347*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(trunc_w_d);
348*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(trunc_l_s);
349*4882a593Smuzhiyun 	FPU_STAT_CREATE_EX(trunc_l_d);
350*4882a593Smuzhiyun 
351*4882a593Smuzhiyun 	return 0;
352*4882a593Smuzhiyun }
353*4882a593Smuzhiyun arch_initcall(debugfs_fpuemu);
354