]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: math-emu: Add IEEE754 exception statistics to debugfs
authorDeng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Thu, 29 May 2014 19:26:45 +0000 (12:26 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 May 2014 09:55:23 +0000 (11:55 +0200)
commit57b91dc11fdb05fe9d60479d1f0db3a0aaf9819f
treea74a55f775366665562b9cddcd39d34163af3229
parent0e172e4fb9c96eee03bbbd270ca49929e20792c0
MIPS: math-emu: Add IEEE754 exception statistics to debugfs

Sometimes it's useful to let the user, while doing performance research,
know what in the IEEE754 exceptions has caused many times of FP emulation
when running a specific application. This patch adds 5 more files to
/sys/kernel/debug/mips/fpuemustats/, whose filenames begin with "ieee754".
These stats are in addition to the existing cp1ops, cp1xops, errors, loads
and stores, which may not be useful in understanding the reasons of ieee754
exceptions.

[ralf@linux-mips.org: Fixed reject due to other changes to the kernel
FP assist software.]

Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Steven.Hill@imgtec.com
Cc: james.hogan@imgtec.com
Patchwork: http://patchwork.linux-mips.org/patch/7044/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/fpu_emulator.h
arch/mips/math-emu/cp1emu.c
arch/mips/math-emu/me-debugfs.c