SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / include / lttng / event-internal.h
CommitLineData
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
2d1318e4
JG
18struct lttng_userspace_probe_location;
19
20struct lttng_event_extended {
21 /*
22 * exclusions and filter_expression are only set when the lttng_event
23 * was created/allocated by a list operation. These two elements must
24 * not be free'd as they are part of the same contiguous buffer that
25 * contains all events returned by the listing.
26 */
27 char *filter_expression;
28 struct {
29 unsigned int count;
30 /* Array of strings of fixed LTTNG_SYMBOL_NAME_LEN length. */
31 char *strings;
32 } exclusions;
33 struct lttng_userspace_probe_location *probe_location;
34};
35
76fcf151
JG
36LTTNG_HIDDEN
37struct lttng_event *lttng_event_copy(const struct lttng_event *event);
38
2463b787
JR
39// FIXME: the implementation of these should be moved to some common file,
40// they should not be in the enable_events.c file.
41
42LTTNG_HIDDEN
43int loglevel_str_to_value(const char *inputstr);
44
45LTTNG_HIDDEN
46int loglevel_log4j_str_to_value(const char *inputstr);
47
48LTTNG_HIDDEN
49int loglevel_jul_str_to_value(const char *inputstr);
50
51LTTNG_HIDDEN
52int loglevel_python_str_to_value(const char *inputstr);
53
2d1318e4 54#endif /* LTTNG_EVENT_INTERNAL_H */
This page took 0.05005 seconds and 5 git commands to generate.