Commit | Line | Data |
---|---|---|
a8c3ad3e | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2018 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
159b042f | 3 | * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
a8c3ad3e | 4 | * |
ab5be9fa | 5 | * SPDX-License-Identifier: GPL-2.0-only |
a8c3ad3e | 6 | * |
a8c3ad3e MD |
7 | */ |
8 | ||
ab5be9fa MJ |
9 | #ifndef _LTT_TRACKER_H |
10 | #define _LTT_TRACKER_H | |
11 | ||
c9e313bc | 12 | #include <common/tracker.hpp> |
28f23191 | 13 | |
2d97a006 | 14 | #include <lttng/tracker.h> |
a8c3ad3e | 15 | |
159b042f | 16 | struct process_attr_tracker; |
a8c3ad3e | 17 | |
159b042f JG |
18 | enum process_attr_tracker_status { |
19 | PROCESS_ATTR_TRACKER_STATUS_OK, | |
20 | PROCESS_ATTR_TRACKER_STATUS_ERROR, | |
21 | PROCESS_ATTR_TRACKER_STATUS_EXISTS, | |
22 | PROCESS_ATTR_TRACKER_STATUS_MISSING, | |
23 | PROCESS_ATTR_TRACKER_STATUS_INVALID_TRACKING_POLICY, | |
a8c3ad3e MD |
24 | }; |
25 | ||
cd9adb8b | 26 | struct process_attr_tracker *process_attr_tracker_create(); |
159b042f JG |
27 | void process_attr_tracker_destroy(struct process_attr_tracker *tracker); |
28 | ||
28f23191 JG |
29 | enum lttng_tracking_policy |
30 | process_attr_tracker_get_tracking_policy(const struct process_attr_tracker *tracker); | |
31 | int process_attr_tracker_set_tracking_policy(struct process_attr_tracker *tracker, | |
32 | enum lttng_tracking_policy tracking_policy); | |
159b042f | 33 | |
159b042f | 34 | enum process_attr_tracker_status |
28f23191 JG |
35 | process_attr_tracker_inclusion_set_add_value(struct process_attr_tracker *tracker, |
36 | const struct process_attr_value *value); | |
37 | enum process_attr_tracker_status | |
38 | process_attr_tracker_inclusion_set_remove_value(struct process_attr_tracker *tracker, | |
39 | const struct process_attr_value *value); | |
159b042f | 40 | |
28f23191 JG |
41 | enum process_attr_tracker_status |
42 | process_attr_tracker_get_inclusion_set(const struct process_attr_tracker *tracker, | |
43 | struct lttng_process_attr_values **values); | |
a8c3ad3e MD |
44 | |
45 | #endif /* _LTT_TRACKER_H */ |