mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem.
Many developers use "/debug/" or "/debugfs/" or "/sys/kernel/debug/" directory name to mount debugfs filesystem for ftrace according to ./Documentation/tracers/ftrace.txt file. And, three directory names(ex:/debug/, /debugfs/, /sys/kernel/debug/) is existed in kernel source like ftrace, DRM, Wireless, Documentation, Network[sky2]files to mount debugfs filesystem. debugfs means debug filesystem for debugging easy to use by greg kroah hartman. "/sys/kernel/debug/" name is suitable as directory name of debugfs filesystem. - debugfs related reference: http://lwn.net/Articles/334546/ Fix inconsistency of directory name to mount debugfs filesystem. * From Steven Rostedt - find_debugfs() and tracing_files() in this patch. Signed-off-by: GeunSik Lim <[email protected]> Acked-by : Inaky Perez-Gonzalez <[email protected]> Reviewed-by : Steven Rostedt <[email protected]> Reviewed-by : James Smart <[email protected]> CC: Jiri Kosina <[email protected]> CC: David Airlie <[email protected]> CC: Peter Osterlund <[email protected]> CC: Ananth N Mavinakayanahalli <[email protected]> CC: Anil S Keshavamurthy <[email protected]> CC: Masami Hiramatsu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
1b713e0050
commit
156f5a7801
20 changed files with 238 additions and 191 deletions
|
|
@ -2206,7 +2206,7 @@ config SKGE_DEBUG
|
|||
depends on SKGE && DEBUG_FS
|
||||
help
|
||||
This option adds the ability to dump driver state for debugging.
|
||||
The file debugfs/skge/ethX displays the state of the internal
|
||||
The file /sys/kernel/debug/skge/ethX displays the state of the internal
|
||||
transmit and receive rings.
|
||||
|
||||
If unsure, say N.
|
||||
|
|
@ -2232,7 +2232,7 @@ config SKY2_DEBUG
|
|||
depends on SKY2 && DEBUG_FS
|
||||
help
|
||||
This option adds the ability to dump driver state for debugging.
|
||||
The file debugfs/sky2/ethX displays the state of the internal
|
||||
The file /sys/kernel/debug/sky2/ethX displays the state of the internal
|
||||
transmit and receive rings.
|
||||
|
||||
If unsure, say N.
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ struct i2400m {
|
|||
unsigned ready:1; /* all probing steps done */
|
||||
unsigned rx_reorder:1; /* RX reorder is enabled */
|
||||
u8 trace_msg_from_user; /* echo rx msgs to 'trace' pipe */
|
||||
/* typed u8 so debugfs/u8 can tweak */
|
||||
/* typed u8 so /sys/kernel/debug/u8 can tweak */
|
||||
enum i2400m_system_state state;
|
||||
wait_queue_head_t state_wq; /* Woken up when on state updates */
|
||||
|
||||
|
|
|
|||
|
|
@ -28,11 +28,10 @@ config ATH5K_DEBUG
|
|||
Say Y, if and you will get debug options for ath5k.
|
||||
To use this, you need to mount debugfs:
|
||||
|
||||
mkdir /debug/
|
||||
mount -t debugfs debug /debug/
|
||||
mount -t debugfs debug /sys/kernel/debug
|
||||
|
||||
You will get access to files under:
|
||||
/debug/ath5k/phy0/
|
||||
/sys/kernel/debug/ath5k/phy0/
|
||||
|
||||
To enable debug, pass the debug level to the debug module
|
||||
parameter. For example:
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ rdrf
|
|||
location that is to be read. This parameter must be specified in
|
||||
hexadecimal (its possible to preceed preceding the number with a "0x").
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/registers/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/registers/
|
||||
|
||||
Usage:
|
||||
echo "0xa123" > rdmac ; cat rdmac
|
||||
|
|
@ -95,7 +95,7 @@ wrrf
|
|||
sleepparams
|
||||
This command is used to set the sleepclock configurations
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/
|
||||
|
||||
Usage:
|
||||
cat sleepparams: reads the current sleepclock configuration
|
||||
|
|
@ -115,7 +115,7 @@ subscribed_events
|
|||
The subscribed_events directory contains the interface for the
|
||||
subscribed events API.
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/subscribed_events/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/subscribed_events/
|
||||
|
||||
Each event is represented by a filename. Each filename consists of the
|
||||
following three fields:
|
||||
|
|
@ -165,7 +165,7 @@ subscribed_events
|
|||
extscan
|
||||
This command is used to do a specific scan.
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/
|
||||
|
||||
Usage: echo "SSID" > extscan
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ getscantable
|
|||
Display the current contents of the driver scan table (ie. get the
|
||||
scan results).
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/
|
||||
|
||||
Usage:
|
||||
cat getscantable
|
||||
|
|
@ -188,7 +188,7 @@ setuserscan
|
|||
Initiate a customized scan and retrieve the results
|
||||
|
||||
|
||||
Path: /debugfs/libertas_wireless/ethX/
|
||||
Path: /sys/kernel/debug/libertas_wireless/ethX/
|
||||
|
||||
Usage:
|
||||
echo "[ARGS]" > setuserscan
|
||||
|
|
|
|||
Loading…
Reference in a new issue