public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] A debugfs file system for managed resources (devres)
@ 2014-07-24 15:18 Rob Jones
  2014-07-24 15:18 ` [PATCH 1/1] Managed Devices devres_debugfs file system Rob Jones
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Jones @ 2014-07-24 15:18 UTC (permalink / raw)
  To: gregkh
  Cc: rdunlap, linux-doc, linux-kernel, linux-kernel, ian.molton,
	ben.dooks, rob.jones

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-27  3:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 15:18 [PATCH 0/1] A debugfs file system for managed resources (devres) Rob Jones
2014-07-24 15:18 ` [PATCH 1/1] Managed Devices devres_debugfs file system Rob Jones
2014-07-24 15:35   ` Tobias Klauser
2014-07-24 15:59   ` Greg KH
2014-07-25 11:11     ` Rob Jones
2014-07-27  3:31       ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox