Fix message argument type
[lttng-tools.git] / include / lttng-kernel.h
CommitLineData
93128a92
DG
1/*
2 * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
3 * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * David Goulet <david.goulet@polymtl.ca>
5 *
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.
10 *
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.
15 *
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.
19 */
20
21#ifndef _LTTNG_KERNEL_H
22#define _LTTNG_KERNEL_H
23
9bda164d 24#include "lttng-share.h"
93128a92 25
9cb98350
JD
26#define LTTNG_SYM_NAME_LEN 128
27
28enum lttng_kernel_instrumentation {
29 LTTNG_KERNEL_TRACEPOINTS,
30 LTTNG_KERNEL_KPROBES,
31 LTTNG_KERNEL_FUNCTION_TRACER,
32};
33
93128a92
DG
34/*
35 * LTTng DebugFS ABI structures.
36 */
9cb98350
JD
37
38struct lttng_kernel_channel {
39 int overwrite; /* 1: overwrite, 0: discard */
40 uint64_t subbuf_size; /* in bytes */
41 uint64_t num_subbuf;
42 unsigned int switch_timer_interval; /* usecs */
43 unsigned int read_timer_interval; /* usecs */
44};
45
46struct lttng_kernel_tracepoint {
47};
48
49/*
50 * Either addr is used, or symbol_name and offset.
51 */
52struct lttng_kernel_kprobe {
53 uint64_t addr;
54
55 uint64_t offset;
56 char symbol_name[LTTNG_SYM_NAME_LEN];
57};
58
59struct lttng_kernel_function_tracer {
60 char symbol_name[LTTNG_SYM_NAME_LEN];
93128a92
DG
61};
62
9cb98350
JD
63struct lttng_kernel_event {
64 char name[LTTNG_SYM_NAME_LEN]; /* event name */
65 enum lttng_kernel_instrumentation instrumentation;
66 /* Per instrumentation type configuration */
67 union {
68 struct lttng_kernel_tracepoint tracepoint;
69 struct lttng_kernel_kprobe kprobe;
70 struct lttng_kernel_function_tracer ftrace;
71 } u;
93128a92
DG
72};
73
9cb98350
JD
74struct lttng_kernel_tracer_version {
75 uint32_t version;
76 uint32_t patchlevel;
77 uint32_t sublevel;
93128a92
DG
78};
79
80#endif /* _LTTNG_KERNEL_H */
This page took 0.025507 seconds and 4 git commands to generate.