aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/trace/tracelevel.txt
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /Documentation/trace/tracelevel.txt
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'Documentation/trace/tracelevel.txt')
-rw-r--r--Documentation/trace/tracelevel.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/Documentation/trace/tracelevel.txt b/Documentation/trace/tracelevel.txt
new file mode 100644
index 00000000000..b282dd2b329
--- /dev/null
+++ b/Documentation/trace/tracelevel.txt
@@ -0,0 +1,42 @@
1 Tracelevel
2
3 Documentation by Alon Farchy
4
51. Overview
6===========
7
8Tracelevel allows subsystem authors to add trace priorities to
9their tracing events. High priority traces will be enabled
10automatically at boot time.
11
12This module is configured with CONFIG_TRACELEVEL.
13
142. Usage
15=========
16
17To give an event a priority, use the function tracelevel_register
18at any time.
19
20 tracelevel_register(my_event, level);
21
22my_event corresponds directly to the event name as defined in the
23event header file. Available levels are:
24
25 TRACELEVEL_ERR 3
26 TRACELEVEL_WARN 2
27 TRACELEVEL_INFO 1
28 TRACELEVEL_DEBUG 0
29
30Any event registered at boot time as TRACELEVEL_ERR will be enabled
31by default. The header also exposes the function tracelevel_set_level
32to change the trace level at runtime. Any trace event registered with the
33specified level or higher will be enabled with this call.
34
35A userspace handle to tracelevel_set_level is available via the module
36parameter 'level'. For example,
37
38 echo 1 > /sys/module/tracelevel/parameters/level
39
40Is logically equivalent to:
41
42 tracelevel_set_level(TRACELEVEL_INFO);