drm: Convert proc files to seq_file and introduce debugfs

Previous thread: drm/i915: Add information on pinning and fencing to the i915 list debug. by Linux Kernel Mailing List on Monday, March 30, 2009 - 2:02 pm. (1 message)

Next thread: drm/i915: Display fence register state in debugfs i915_gem_fence_regs node. by Linux Kernel Mailing List on Monday, March 30, 2009 - 2:02 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, March 30, 2009 - 2:02 pm

Gitweb:     http://git.kernel.org/linus/955b12def42e83287c1bdb1411d99451753c1391
Commit:     955b12def42e83287c1bdb1411d99451753c1391
Parent:     dd8d7cb49e6e61da96ca44174b063081892c4dc6
Author:     Ben Gamari <bgamari@gmail.com>
AuthorDate: Tue Feb 17 20:08:49 2009 -0500
Committer:  Dave Airlie <airlied@redhat.com>
CommitDate: Fri Mar 13 14:24:07 2009 +1000

    drm: Convert proc files to seq_file and introduce debugfs
    
    The old mechanism to formatting proc files is extremely ugly. The
    seq_file API was designed specifically for cases like this and greatly
    simplifies the process.
    
    Also, most of the files in /proc really don't belong there. This patch
    introduces the infrastructure for putting these into debugfs and exposes
    all of the proc files in debugfs as well.
    
    This contains the i915 hooks rewrite as well, to make bisectability better.
    
    Signed-off-by: Ben Gamari <bgamari@gmail.com>
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/Makefile                |    3 +-
 drivers/gpu/drm/drm_debugfs.c           |  235 ++++++++++
 drivers/gpu/drm/drm_drv.c               |   12 +-
 drivers/gpu/drm/drm_info.c              |  328 ++++++++++++++
 drivers/gpu/drm/drm_proc.c              |  720 +++++--------------------------
 drivers/gpu/drm/drm_stub.c              |   15 +-
 drivers/gpu/drm/i915/Makefile           |    2 +-
 drivers/gpu/drm/i915/i915_drv.c         |    6 +-
 drivers/gpu/drm/i915/i915_drv.h         |    6 +-
 drivers/gpu/drm/i915/i915_gem_debugfs.c |  230 ++++++++++
 drivers/gpu/drm/i915/i915_gem_proc.c    |  334 --------------
 include/drm/drmP.h                      |   77 ++++-
 12 files changed, 1014 insertions(+), 954 deletions(-)

diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
index 30022c4..4ec5061 100644
--- a/drivers/gpu/drm/Makefile
+++ b/drivers/gpu/drm/Makefile
@@ -10,7 +10,8 @@ drm-y       :=	drm_auth.o drm_bufs.o ...
Previous thread: drm/i915: Add information on pinning and fencing to the i915 list debug. by Linux Kernel Mailing List on Monday, March 30, 2009 - 2:02 pm. (1 message)

Next thread: drm/i915: Display fence register state in debugfs i915_gem_fence_regs node. by Linux Kernel Mailing List on Monday, March 30, 2009 - 2:02 pm. (1 message)