diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/tracedump.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/tracedump.h')
-rw-r--r-- | include/linux/tracedump.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/tracedump.h b/include/linux/tracedump.h new file mode 100644 index 00000000000..9e86946e354 --- /dev/null +++ b/include/linux/tracedump.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * include/linux/tracedump.h | ||
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 _LINUX_KERNEL_TRACEDUMP_H | ||
22 | #define _LINUX_KERNEL_TRACEDUMP_H | ||
23 | |||
24 | /* tracedump | ||
25 | * This module provides additional mechanisms for retreiving tracing data. | ||
26 | * For details on configurations, parameters and usage, see tracedump.txt. | ||
27 | */ | ||
28 | |||
29 | #define TD_NO_PRINT 0 | ||
30 | #define TD_PRINT_CONSOLE 1 | ||
31 | #define TD_PRINT_USER 2 | ||
32 | |||
33 | /* Dump the tracer to console */ | ||
34 | int tracedump_dump(size_t max_out); | ||
35 | |||
36 | /* Dumping functions */ | ||
37 | int tracedump_init(void); | ||
38 | ssize_t tracedump_all(int print_to); | ||
39 | ssize_t tracedump_next(size_t max_out, int print_to); | ||
40 | int tracedump_reset(void); | ||
41 | int tracedump_deinit(void); | ||
42 | |||
43 | #endif /* _LINUX_KERNEL_TRACEDUMP_H */ | ||