lkml.org 
[lkml]   [2014]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/1] A debugfs file system for managed resources (devres)
Date
A fairly low overhead debug tool that may be useful to anyone developing
a device driver that uses managed resources.

It allows limited inspection from userspace of managed resources currently
allocated to devices.

When building the kernel, setting flag DEVRES_DEBUGFS adds debug code that
causes a directory to be created in the debugfs file system which will
contain a file for each device that uses managed resources. When read,
this file returns some basic debug information about all the managed
resources currently allocated to that device.

It is possible to trivially identify resources such as GPIOs, IRQs and
memory allocated using devm_kmalloc() without the use of intrusive debug
tools.

Rob Jones (1):
Managed Devices devres_debugfs file system

Documentation/driver-model/devres-debugfs.txt | 140 +++++++++
drivers/base/Kconfig | 18 ++
drivers/base/devres.c | 387 +++++++++++++++++++++++++
3 files changed, 545 insertions(+)
create mode 100644 Documentation/driver-model/devres-debugfs.txt

--
1.7.10.4



\
 
 \ /
  Last update: 2014-07-24 18:01    [W:0.199 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site