Fix: consumerd: consumed size miscomputed during statistics sampling
[lttng-tools.git] / src / bin / lttng-sessiond / tracker.hpp
CommitLineData
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 16struct process_attr_tracker;
a8c3ad3e 17
159b042f
JG
18enum 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 26struct process_attr_tracker *process_attr_tracker_create();
159b042f
JG
27void process_attr_tracker_destroy(struct process_attr_tracker *tracker);
28
28f23191
JG
29enum lttng_tracking_policy
30process_attr_tracker_get_tracking_policy(const struct process_attr_tracker *tracker);
31int process_attr_tracker_set_tracking_policy(struct process_attr_tracker *tracker,
32 enum lttng_tracking_policy tracking_policy);
159b042f 33
159b042f 34enum process_attr_tracker_status
28f23191
JG
35process_attr_tracker_inclusion_set_add_value(struct process_attr_tracker *tracker,
36 const struct process_attr_value *value);
37enum process_attr_tracker_status
38process_attr_tracker_inclusion_set_remove_value(struct process_attr_tracker *tracker,
39 const struct process_attr_value *value);
159b042f 40
28f23191
JG
41enum process_attr_tracker_status
42process_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 */
This page took 0.063447 seconds and 4 git commands to generate.