~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to Documentation/dynamic-debug-howto.txt

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
Dynamic debug is designed to allow you to dynamically enable/disable kernel
8
8
code to obtain additional kernel information. Currently, if
9
 
CONFIG_DYNAMIC_DEBUG is set, then all pr_debug()/dev_debug() calls can be
 
9
CONFIG_DYNAMIC_DEBUG is set, then all pr_debug()/dev_dbg() calls can be
10
10
dynamically enabled per-callsite.
11
11
 
12
12
Dynamic debug has even more useful features:
26
26
Controlling dynamic debug Behaviour
27
27
===================================
28
28
 
29
 
The behaviour of pr_debug()/dev_debug()s are controlled via writing to a
 
29
The behaviour of pr_debug()/dev_dbg()s are controlled via writing to a
30
30
control file in the 'debugfs' filesystem. Thus, you must first mount the debugfs
31
31
filesystem, in order to make use of this feature. Subsequently, we refer to the
32
32
control file as: <debugfs>/dynamic_debug/control. For example, if you want to
205
205
 
206
206
The flags are:
207
207
 
 
208
f
 
209
    Include the function name in the printed message
 
210
l
 
211
    Include line number in the printed message
 
212
m
 
213
    Include module name in the printed message
208
214
p
209
215
    Causes a printk() message to be emitted to dmesg
 
216
t
 
217
    Include thread ID in messages not generated from interrupt context
210
218
 
211
 
Note the regexp ^[-+=][scp]+$ matches a flags specification.
 
219
Note the regexp ^[-+=][flmpt]+$ matches a flags specification.
212
220
Note also that there is no convenient syntax to remove all
213
 
the flags at once, you need to use "-psc".
 
221
the flags at once, you need to use "-flmpt".
214
222
 
215
223
 
216
224
Debug messages during boot process