2 * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
3 * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * David Goulet <david.goulet@polymtl.ca>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef _LTTNG_KERNEL_H
22 #define _LTTNG_KERNEL_H
24 #include "lttng-share.h"
26 #define LTTNG_SYM_NAME_LEN 128
28 enum lttng_kernel_instrumentation
{
29 LTTNG_KERNEL_TRACEPOINTS
,
31 LTTNG_KERNEL_FUNCTION
,
35 * LTTng DebugFS ABI structures.
37 * This is the kernel ABI copied from lttng-modules tree.
40 /* Either addr is used or symbol_name and offset. */
41 struct lttng_kernel_kprobe
{
45 char symbol_name
[LTTNG_SYM_NAME_LEN
];
48 struct lttng_kernel_function_tracer
{
49 char symbol_name
[LTTNG_SYM_NAME_LEN
];
52 struct lttng_kernel_event
{
53 char name
[LTTNG_SYM_NAME_LEN
];
54 enum lttng_kernel_instrumentation instrumentation
;
55 /* Per instrumentation type configuration */
57 struct lttng_kernel_kprobe kprobe
;
58 struct lttng_kernel_function_tracer ftrace
;
62 struct lttng_kernel_tracer_version
{
68 #endif /* _LTTNG_KERNEL_H */