aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tracelevel.h
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 /include/linux/tracelevel.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/linux/tracelevel.h')
-rw-r--r--include/linux/tracelevel.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/tracelevel.h b/include/linux/tracelevel.h
new file mode 100644
index 00000000000..ac3351c6ed8
--- /dev/null
+++ b/include/linux/tracelevel.h
@@ -0,0 +1,42 @@
1/*
2 * include/linux/tracelevel.c
3 *
4 * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 */
20
21#ifndef _TRACELEVEL_H
22#define _TRACELEVEL_H
23
24/* tracelevel allows a subsystem author to add priorities to
25 * trace_events. For usage details, see tracelevel.txt.
26 */
27
28#define TRACELEVEL_ERR 3
29#define TRACELEVEL_WARN 2
30#define TRACELEVEL_INFO 1
31#define TRACELEVEL_DEBUG 0
32
33#define TRACELEVEL_MAX TRACELEVEL_ERR
34#define TRACELEVEL_DEFAULT TRACELEVEL_ERR
35
36int __tracelevel_register(char *name, unsigned int level);
37int tracelevel_set_level(int level);
38
39#define tracelevel_register(name, level) \
40 __tracelevel_register(#name, level)
41
42#endif /* _TRACELEVEL_H */