-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: drm/omap: add debugfs support
Right now just a tiler_map file to dump a 2d map of which areas in tiler/dmm have pinned buffers (or reservations). In the future more could be added. Signed-off-by: Rob Clark <rob@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Andy Gross
authored and
Greg Kroah-Hartman
committed
Dec 16, 2011
1 parent
af69592
commit 6169a14
Showing
6 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* drivers/staging/omapdrm/omap_debugfs.c | ||
* | ||
* Copyright (C) 2011 Texas Instruments | ||
* Author: Rob Clark <rob.clark@linaro.org> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 as published by | ||
* the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "omap_drv.h" | ||
#include "omap_dmm_tiler.h" | ||
|
||
#ifdef CONFIG_DEBUG_FS | ||
|
||
static struct drm_info_list omap_debugfs_list[] = { | ||
{"tiler_map", tiler_map_show, 0}, | ||
}; | ||
|
||
int omap_debugfs_init(struct drm_minor *minor) | ||
{ | ||
return drm_debugfs_create_files(omap_debugfs_list, | ||
ARRAY_SIZE(omap_debugfs_list), | ||
minor->debugfs_root, minor); | ||
} | ||
|
||
void omap_debugfs_cleanup(struct drm_minor *minor) | ||
{ | ||
drm_debugfs_remove_files(omap_debugfs_list, | ||
ARRAY_SIZE(omap_debugfs_list), minor); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters