summaryrefslogtreecommitdiff
path: root/include/linux/tracedump.h
blob: 9e86946e354ef662cf35d6e8fb78efeb3fcceedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * include/linux/tracedump.h
 *
 * Copyright (c) 2011, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

#ifndef _LINUX_KERNEL_TRACEDUMP_H
#define _LINUX_KERNEL_TRACEDUMP_H

/* tracedump
 * This module provides additional mechanisms for retreiving tracing data.
 * For details on configurations, parameters and usage, see tracedump.txt.
 */

#define TD_NO_PRINT 0
#define TD_PRINT_CONSOLE 1
#define TD_PRINT_USER 2

/* Dump the tracer to console */
int tracedump_dump(size_t max_out);

/* Dumping functions */
int tracedump_init(void);
ssize_t tracedump_all(int print_to);
ssize_t tracedump_next(size_t max_out, int print_to);
int tracedump_reset(void);
int tracedump_deinit(void);

#endif /* _LINUX_KERNEL_TRACEDUMP_H */