mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -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
|
|
@ -105,7 +105,7 @@ int drm_debugfs_create_files(struct drm_info_list *files, int count,
|
|||
ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO,
|
||||
root, tmp, &drm_debugfs_fops);
|
||||
if (!ent) {
|
||||
DRM_ERROR("Cannot create /debugfs/dri/%s/%s\n",
|
||||
DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/%s\n",
|
||||
name, files[i].name);
|
||||
drm_free(tmp, sizeof(struct drm_info_node),
|
||||
_DRM_DRIVER);
|
||||
|
|
@ -133,9 +133,9 @@ EXPORT_SYMBOL(drm_debugfs_create_files);
|
|||
* \param minor device minor number
|
||||
* \param root DRI debugfs dir entry.
|
||||
*
|
||||
* Create the DRI debugfs root entry "/debugfs/dri", the device debugfs root entry
|
||||
* "/debugfs/dri/%minor%/", and each entry in debugfs_list as
|
||||
* "/debugfs/dri/%minor%/%name%".
|
||||
* Create the DRI debugfs root entry "/sys/kernel/debug/dri", the device debugfs root entry
|
||||
* "/sys/kernel/debug/dri/%minor%/", and each entry in debugfs_list as
|
||||
* "/sys/kernel/debug/dri/%minor%/%name%".
|
||||
*/
|
||||
int drm_debugfs_init(struct drm_minor *minor, int minor_id,
|
||||
struct dentry *root)
|
||||
|
|
@ -148,7 +148,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id,
|
|||
sprintf(name, "%d", minor_id);
|
||||
minor->debugfs_root = debugfs_create_dir(name, root);
|
||||
if (!minor->debugfs_root) {
|
||||
DRM_ERROR("Cannot create /debugfs/dri/%s\n", name);
|
||||
DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s\n", name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id,
|
|||
ret = dev->driver->debugfs_init(minor);
|
||||
if (ret) {
|
||||
DRM_ERROR("DRM: Driver failed to initialize "
|
||||
"/debugfs/dri.\n");
|
||||
"/sys/kernel/debug/dri.\n");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ static int __init drm_core_init(void)
|
|||
|
||||
drm_debugfs_root = debugfs_create_dir("dri", NULL);
|
||||
if (!drm_debugfs_root) {
|
||||
DRM_ERROR("Cannot create /debugfs/dri\n");
|
||||
DRM_ERROR("Cannot create /sys/kernel/debug/dri\n");
|
||||
ret = -1;
|
||||
goto err_p3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ static int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int t
|
|||
#if defined(CONFIG_DEBUG_FS)
|
||||
ret = drm_debugfs_init(new_minor, minor_id, drm_debugfs_root);
|
||||
if (ret) {
|
||||
DRM_ERROR("DRM: Failed to initialize /debugfs/dri.\n");
|
||||
DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n");
|
||||
goto err_g2;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue