staging/fwserial: Factor unstable stats/debug/status info to debugfs
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 29 Jan 2013 03:34:40 +0000 (22:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:28:45 +0000 (23:28 -0500)
commit4df5bb0464769a07ce6d6a265174477786512f2e
treecce1c33581b47150f22ae13f494ce351e182c697
parente16d1ded85b9ceddbf8092d239646ee520353e47
staging/fwserial: Factor unstable stats/debug/status info to debugfs

Add the following file hierarchy to debugfs:

  <debugfs>-+
            +- firewire_serial -+- <unit> -+- peers
                                |          +- stats
                                |
                                +- <unit> -+- peers
                                           +- stats

The 'peers' file (read-only) contains status and configuration
info for attached peers for the given fwserial unit.

The 'stats' file (read-only) contains statistics and data profiling
information for each tty port for the given fwserial unit.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c
drivers/staging/fwserial/fwserial.h