• A
    MIPS: math-emu: Add FP emu debugfs stats for individual instructions · 454854ac
    Aleksandar Markovic 提交于
    Add FP emulation debugfs statistics for individual instructions. The
    debugfs files that contain counter values are placed in a separate
    directory called "instructions". This means that the default path for
    these new stat is "/sys/kernel/debug/mips/fpuemustats/instructions".
    
    Each instruction counter is mapped to the debugfs file that has the
    same name as instruction name. The lowercase is choosen as more
    commonly used case for instruction names.
    
    One example of usage:
    
    mips_host::/sys/kernel/debug/mips/fpuemustats/instructions # grep "" *
    
    The shortened output of this command is:
    
    abs.d:34
    abs.s:5711
    add.d:10401
    add.s:399307
    bc1eqz:3199
    ...
    ...
    ...
    sub.s:167211
    trunc.l.d:375
    trunc.l.s:8054
    trunc.w.d:421
    trunc.w.s:27032
    
    The limitation of this patch is that it handles R6 FP emulation
    instructions only. There are altogether 114 handled instructions.
    Signed-off-by: NMiodrag Dinic <miodrag.dinic@imgtec.com>
    Signed-off-by: NGoran Ferenc <goran.ferenc@imgtec.com>
    Signed-off-by: NAleksandar Markovic <aleksandar.markovic@imgtec.com>
    Cc: Douglas Leung <douglas.leung@imgtec.com>
    Cc: James Hogan <james.hogan@imgtec.com>
    Cc: Maciej W. Rozycki <macro@imgtec.com>
    Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
    Cc: Paul Burton <paul.burton@imgtec.com>
    Cc: Petar Jovanovic <petar.jovanovic@imgtec.com>
    Cc: Raghu Gandham <raghu.gandham@imgtec.com>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/17145/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
    454854ac
me-debugfs.c 12.5 KB