2 * Copyright (C) 2018 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 * SPDX-License-Identifier: GPL-2.0-only
10 #define _LTT_TRACKER_H
12 #include <common/tracker.hpp>
14 #include <lttng/tracker.h>
16 struct process_attr_tracker;
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,
26 struct process_attr_tracker *process_attr_tracker_create();
27 void process_attr_tracker_destroy(struct process_attr_tracker *tracker);
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);
34 enum process_attr_tracker_status
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);
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);
45 #endif /* _LTT_TRACKER_H */