Fix: tests: extra arguments are not passed to the remove trigger command
[lttng-tools.git] / src / common / lttng-kernel-old.h
1 /*
2 * Copyright (C) 2011 Julien Desfossez <julien.desfossez@polymtl.ca>
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
5 *
6 * SPDX-License-Identifier: GPL-2.0-only
7 *
8 */
9
10 #ifndef _LTTNG_KERNEL_OLD_H
11 #define _LTTNG_KERNEL_OLD_H
12
13 #include <stdint.h>
14 #include <common/lttng-kernel.h>
15
16 /*
17 * LTTng DebugFS ABI structures.
18 *
19 * This is the kernel ABI copied from lttng-modules tree.
20 */
21
22 /* Perf counter attributes */
23 struct lttng_kernel_abi_old_perf_counter_ctx {
24 uint32_t type;
25 uint64_t config;
26 char name[LTTNG_KERNEL_ABI_SYM_NAME_LEN];
27 };
28
29 /* Event/Channel context */
30 #define LTTNG_KERNEL_ABI_OLD_CONTEXT_PADDING1 16
31 #define LTTNG_KERNEL_ABI_OLD_CONTEXT_PADDING2 LTTNG_KERNEL_ABI_SYM_NAME_LEN + 32
32 struct lttng_kernel_abi_old_context {
33 enum lttng_kernel_abi_context_type ctx;
34 char padding[LTTNG_KERNEL_ABI_OLD_CONTEXT_PADDING1];
35
36 union {
37 struct lttng_kernel_abi_old_perf_counter_ctx perf_counter;
38 char padding[LTTNG_KERNEL_ABI_OLD_CONTEXT_PADDING2];
39 } u;
40 };
41
42 struct lttng_kernel_abi_old_kretprobe {
43 uint64_t addr;
44
45 uint64_t offset;
46 char symbol_name[LTTNG_KERNEL_ABI_SYM_NAME_LEN];
47 };
48
49 /*
50 * Either addr is used, or symbol_name and offset.
51 */
52 struct lttng_kernel_abi_old_kprobe {
53 uint64_t addr;
54
55 uint64_t offset;
56 char symbol_name[LTTNG_KERNEL_ABI_SYM_NAME_LEN];
57 };
58
59 /* Function tracer */
60 struct lttng_kernel_abi_old_function {
61 char symbol_name[LTTNG_KERNEL_ABI_SYM_NAME_LEN];
62 };
63
64 #define LTTNG_KERNEL_ABI_OLD_EVENT_PADDING1 16
65 #define LTTNG_KERNEL_ABI_OLD_EVENT_PADDING2 LTTNG_KERNEL_ABI_SYM_NAME_LEN + 32
66 struct lttng_kernel_abi_old_event {
67 char name[LTTNG_KERNEL_ABI_SYM_NAME_LEN];
68 enum lttng_kernel_abi_instrumentation instrumentation;
69 char padding[LTTNG_KERNEL_ABI_OLD_EVENT_PADDING1];
70
71 /* Per instrumentation type configuration */
72 union {
73 struct lttng_kernel_abi_old_kretprobe kretprobe;
74 struct lttng_kernel_abi_old_kprobe kprobe;
75 struct lttng_kernel_abi_old_function ftrace;
76 char padding[LTTNG_KERNEL_ABI_OLD_EVENT_PADDING2];
77 } u;
78 };
79
80 struct lttng_kernel_abi_old_tracer_version {
81 uint32_t major;
82 uint32_t minor;
83 uint32_t patchlevel;
84 };
85
86 /*
87 * kernel channel
88 */
89 #define LTTNG_KERNEL_ABI_OLD_CHANNEL_PADDING1 LTTNG_SYMBOL_NAME_LEN + 32
90 struct lttng_kernel_abi_old_channel {
91 int overwrite; /* 1: overwrite, 0: discard */
92 uint64_t subbuf_size; /* bytes */
93 uint64_t num_subbuf; /* power of 2 */
94 unsigned int switch_timer_interval; /* usec */
95 unsigned int read_timer_interval; /* usec */
96 enum lttng_event_output output; /* splice, mmap */
97
98 char padding[LTTNG_KERNEL_ABI_OLD_CHANNEL_PADDING1];
99 };
100
101 #endif /* _LTTNG_KERNEL_OLD_H */
This page took 0.036573 seconds and 4 git commands to generate.