Commit | Line | Data |
---|---|---|
2d1318e4 JG |
1 | /* |
2 | * event-internal.h | |
3 | * | |
4 | * Linux Trace Toolkit Control Library | |
5 | * | |
ab5be9fa | 6 | * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
2d1318e4 | 7 | * |
ab5be9fa | 8 | * SPDX-License-Identifier: LGPL-2.1-only |
2d1318e4 | 9 | * |
2d1318e4 JG |
10 | */ |
11 | ||
12 | #ifndef LTTNG_EVENT_INTERNAL_H | |
13 | #define LTTNG_EVENT_INTERNAL_H | |
14 | ||
76fcf151 JG |
15 | #include <common/macros.h> |
16 | #include <lttng/event.h> | |
17 | ||
7966af57 SM |
18 | #ifdef __cplusplus |
19 | extern "C" { | |
20 | #endif | |
21 | ||
2d1318e4 JG |
22 | struct lttng_userspace_probe_location; |
23 | ||
24 | struct lttng_event_extended { | |
25 | /* | |
26 | * exclusions and filter_expression are only set when the lttng_event | |
27 | * was created/allocated by a list operation. These two elements must | |
28 | * not be free'd as they are part of the same contiguous buffer that | |
29 | * contains all events returned by the listing. | |
30 | */ | |
31 | char *filter_expression; | |
32 | struct { | |
33 | unsigned int count; | |
34 | /* Array of strings of fixed LTTNG_SYMBOL_NAME_LEN length. */ | |
35 | char *strings; | |
36 | } exclusions; | |
37 | struct lttng_userspace_probe_location *probe_location; | |
38 | }; | |
39 | ||
76fcf151 JG |
40 | struct lttng_event *lttng_event_copy(const struct lttng_event *event); |
41 | ||
7966af57 SM |
42 | #ifdef __cplusplus |
43 | } | |
44 | #endif | |
45 | ||
2d1318e4 | 46 | #endif /* LTTNG_EVENT_INTERNAL_H */ |