SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.h
CommitLineData
91d76f53 1/*
ab5be9fa
MJ
2 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
3 * Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
91d76f53 4 *
ab5be9fa 5 * SPDX-License-Identifier: GPL-2.0-only
91d76f53 6 *
91d76f53
DG
7 */
8
2106efa0 9#ifndef _LTT_UST_APP_H
f6a9efaa 10#define _LTT_UST_APP_H
91d76f53 11
099e26bd 12#include <stdint.h>
1e307fab 13
2463b787 14#include <common/index-allocator.h>
c70636a7 15#include <common/uuid.h>
f20baf8e 16
44d3bd01 17#include "trace-ust.h"
d0b96690 18#include "ust-registry.h"
5c408ad8 19#include "session.h"
44d3bd01 20
b551a063
DG
21#define UST_APP_EVENT_LIST_SIZE 32
22
d88aee68
DG
23/* Process name (short). */
24#define UST_APP_PROCNAME_LEN 16
d0b96690 25
2463b787 26struct lttng_bytecode;
53a80697
MD
27struct lttng_ust_filter_bytecode;
28
7753dea8 29extern int ust_consumerd64_fd, ust_consumerd32_fd;
ba5d816e 30
d88aee68
DG
31/*
32 * Object used to close the notify socket in a call_rcu(). Since the
33 * application might not be found, we need an independant object containing the
34 * notify socket fd.
35 */
36struct ust_app_notify_sock_obj {
37 int fd;
38 struct rcu_head head;
39};
40
18eace3b
DG
41struct ust_app_ht_key {
42 const char *name;
2463b787 43 const struct lttng_bytecode *filter;
2106efa0 44 enum lttng_ust_loglevel_type loglevel_type;
51755dc8 45 const struct lttng_event_exclusion *exclusion;
18eace3b
DG
46};
47
099e26bd
DG
48/*
49 * Application registration data structure.
50 */
51struct ust_register_msg {
d0b96690 52 enum ustctl_socket_type type;
099e26bd
DG
53 uint32_t major;
54 uint32_t minor;
d0b96690
DG
55 uint32_t abi_major;
56 uint32_t abi_minor;
099e26bd
DG
57 pid_t pid;
58 pid_t ppid;
59 uid_t uid;
60 gid_t gid;
0df502fd 61 uint32_t bits_per_long;
d0b96690
DG
62 uint32_t uint8_t_alignment;
63 uint32_t uint16_t_alignment;
64 uint32_t uint32_t_alignment;
65 uint32_t uint64_t_alignment;
66 uint32_t long_alignment;
67 int byte_order; /* BIG_ENDIAN or LITTLE_ENDIAN */
68 char name[LTTNG_UST_ABI_PROCNAME_LEN];
099e26bd
DG
69};
70
48842b30 71/*
852d0037
DG
72 * Global applications HT used by the session daemon. This table is indexed by
73 * PID using the pid_n node and pid value of an ust_app.
48842b30 74 */
44cdb3a2 75extern struct lttng_ht *ust_app_ht;
f6a9efaa 76
852d0037
DG
77/*
78 * Global applications HT used by the session daemon. This table is indexed by
79 * socket using the sock_n node and sock value of an ust_app.
12e22e8d
JG
80 *
81 * The 'sock' in question here is the 'command' socket.
852d0037 82 */
44cdb3a2 83extern struct lttng_ht *ust_app_ht_by_sock;
91d76f53 84
d0b96690
DG
85/*
86 * Global applications HT used by the session daemon. This table is indexed by
87 * socket using the notify_sock_n node and notify_sock value of an ust_app.
88 */
44cdb3a2 89extern struct lttng_ht *ust_app_ht_by_notify_sock;
d0b96690 90
030a66fa
DG
91/* Stream list containing ust_app_stream. */
92struct ust_app_stream_list {
93 unsigned int count;
94 struct cds_list_head head;
95};
96
55cc08a6
DG
97struct ust_app_ctx {
98 int handle;
bdf64013 99 struct lttng_ust_context_attr ctx;
55cc08a6 100 struct lttng_ust_object_data *obj;
bec39940 101 struct lttng_ht_node_ulong node;
31746f93 102 struct cds_list_head list;
55cc08a6
DG
103};
104
48842b30
DG
105struct ust_app_event {
106 int enabled;
107 int handle;
13161846 108 struct lttng_ust_object_data *obj;
284d8f55 109 struct lttng_ust_event attr;
48842b30 110 char name[LTTNG_UST_SYM_NAME_LEN];
bec39940 111 struct lttng_ht_node_str node;
2463b787
JR
112 struct lttng_bytecode *filter;
113 struct lttng_event_exclusion *exclusion;
114};
115
116struct ust_app_token_event_rule {
117 int enabled;
118 uint64_t error_counter_index;
119 int handle;
120 struct lttng_ust_object_data *obj;
121 struct lttng_trigger *trigger;
122 uint64_t token;
123 struct lttng_ht_node_u64 node;
124 /* The event_rule object own this pointer */
125 const struct lttng_bytecode *filter;
126 /* The event_rule object own this pointer */
51755dc8 127 struct lttng_event_exclusion *exclusion;
48842b30
DG
128};
129
030a66fa
DG
130struct ust_app_stream {
131 int handle;
132 char pathname[PATH_MAX];
133 /* Format is %s_%d respectively channel name and CPU number. */
134 char name[DEFAULT_STREAM_NAME_LEN];
135 struct lttng_ust_object_data *obj;
136 /* Using a list of streams to keep order. */
137 struct cds_list_head list;
138};
139
48842b30
DG
140struct ust_app_channel {
141 int enabled;
142 int handle;
ffe60014
DG
143 /* Channel and streams were sent to the UST tracer. */
144 int is_sent;
dda154b8
JG
145 /*
146 * Unique key used to identify the channel on the consumer side.
147 * 0 is a reserved 'invalid' value used to indicate that the consumer
a9577b76 148 * does not know about this channel (i.e. an error occurred).
dda154b8 149 */
d88aee68 150 uint64_t key;
7972aab2
DG
151 /* Id of the tracing channel set on creation. */
152 uint64_t tracing_channel_id;
ffe60014
DG
153 /* Number of stream that this channel is expected to receive. */
154 unsigned int expected_stream_count;
48842b30 155 char name[LTTNG_UST_SYM_NAME_LEN];
13161846 156 struct lttng_ust_object_data *obj;
ffe60014 157 struct ustctl_consumer_channel_attr attr;
030a66fa 158 struct ust_app_stream_list streams;
d0b96690
DG
159 /* Session pointer that owns this object. */
160 struct ust_app_session *session;
31746f93
DG
161 /*
162 * Contexts are kept in a hash table for fast lookup and in an ordered list
163 * so we are able to enable them on the tracer side in the same order the
164 * user added them.
165 */
bec39940 166 struct lttng_ht *ctx;
31746f93
DG
167 struct cds_list_head ctx_list;
168
bec39940 169 struct lttng_ht *events;
1624d5b7
JD
170 uint64_t tracefile_size;
171 uint64_t tracefile_count;
e9404c27 172 uint64_t monitor_timer_interval;
d0b96690
DG
173 /*
174 * Node indexed by channel name in the channels' hash table of a session.
175 */
bec39940 176 struct lttng_ht_node_str node;
d0b96690
DG
177 /*
178 * Node indexed by UST channel object descriptor (handle). Stored in the
179 * ust_objd hash table in the ust_app object.
180 */
181 struct lttng_ht_node_ulong ust_objd_node;
36b588ed
MD
182 /* For delayed reclaim */
183 struct rcu_head rcu_head;
48842b30
DG
184};
185
186struct ust_app_session {
d0b96690
DG
187 /*
188 * Lock protecting this session's ust app interaction. Held
189 * across command send/recv to/from app. Never nests within the
190 * session registry lock.
191 */
192 pthread_mutex_t lock;
193
48842b30 194 int enabled;
8be98f9a
MD
195 /* started: has the session been in started state at any time ? */
196 int started; /* allows detection of start vs restart. */
a991f516 197 int handle; /* used has unique identifier for app session */
7972aab2 198
b161602a
MD
199 bool deleted; /* Session deleted flag. Check with lock held. */
200
7972aab2
DG
201 /*
202 * Tracing session ID. Multiple ust app session can have the same tracing
203 * session id making this value NOT unique to the object.
204 */
d9bf3ca4 205 uint64_t tracing_id;
7972aab2 206 uint64_t id; /* Unique session identifier */
bec39940 207 struct lttng_ht *channels; /* Registered channels */
d9bf3ca4 208 struct lttng_ht_node_u64 node;
10b56aef
MD
209 /*
210 * Node indexed by UST session object descriptor (handle). Stored in the
211 * ust_sessions_objd hash table in the ust_app object.
212 */
213 struct lttng_ht_node_ulong ust_objd_node;
d2956687 214 /* Starts with 'ust'; no leading slash. */
bec39940 215 char path[PATH_MAX];
7972aab2 216 /* UID/GID of the application owning the session */
470cc211 217 struct lttng_credentials real_credentials;
7972aab2 218 /* Effective UID and GID. Same as the tracing session. */
470cc211 219 struct lttng_credentials effective_credentials;
d42f20df 220 struct cds_list_head teardown_node;
d88aee68
DG
221 /*
222 * Once at least *one* session is created onto the application, the
223 * corresponding consumer is set so we can use it on unregistration.
224 */
225 struct consumer_output *consumer;
7972aab2
DG
226 enum lttng_buffer_type buffer_type;
227 /* ABI of the session. Same value as the application. */
228 uint32_t bits_per_long;
36b588ed
MD
229 /* For delayed reclaim */
230 struct rcu_head rcu_head;
2bba9e53
DG
231 /* If the channel's streams have to be outputed or not. */
232 unsigned int output_traces;
ecc48a90 233 unsigned int live_timer_interval; /* usec */
ad7a9107
DG
234
235 /* Metadata channel attributes. */
236 struct ustctl_consumer_channel_attr metadata_attr;
d7ba1388 237
3d071855 238 char root_shm_path[PATH_MAX];
d7ba1388 239 char shm_path[PATH_MAX];
48842b30
DG
240};
241
f6a9efaa
DG
242/*
243 * Registered traceable applications. Libust registers to the session daemon
050349bb 244 * and a linked list is kept of all running traceable app.
91d76f53 245 */
56fff090 246struct ust_app {
852d0037 247 int sock;
fb45065e
MD
248 pthread_mutex_t sock_lock; /* Protects sock protocol. */
249
d0b96690 250 int notify_sock;
852d0037 251 pid_t pid;
099e26bd
DG
252 pid_t ppid;
253 uid_t uid; /* User ID that owns the apps */
aea829b3 254 gid_t gid; /* Group ID that owns the apps */
d0b96690
DG
255
256 /* App ABI */
257 uint32_t bits_per_long;
258 uint32_t uint8_t_alignment;
259 uint32_t uint16_t_alignment;
260 uint32_t uint32_t_alignment;
261 uint32_t uint64_t_alignment;
262 uint32_t long_alignment;
263 int byte_order; /* BIG_ENDIAN or LITTLE_ENDIAN */
264
e0c7ec2b
DG
265 int compatible; /* If the lttng-ust tracer version does not match the
266 supported version of the session daemon, this flag is
267 set to 0 (NOT compatible) else 1. */
268 struct lttng_ust_tracer_version version;
d0b96690
DG
269 uint32_t v_major; /* Version major number */
270 uint32_t v_minor; /* Version minor number */
d88aee68
DG
271 /* Extra for the NULL byte. */
272 char name[UST_APP_PROCNAME_LEN + 1];
7972aab2
DG
273 /* Type of buffer this application uses. */
274 enum lttng_buffer_type buffer_type;
bec39940 275 struct lttng_ht *sessions;
852d0037
DG
276 struct lttng_ht_node_ulong pid_n;
277 struct lttng_ht_node_ulong sock_n;
d0b96690 278 struct lttng_ht_node_ulong notify_sock_n;
d42f20df
DG
279 /*
280 * This is a list of ust app session that, once the app is going into
281 * teardown mode, in the RCU call, each node in this list is removed and
282 * deleted.
283 *
284 * Element of the list are added when an application unregisters after each
285 * ht_del of ust_app_session associated to this app. This list is NOT used
286 * when a session is destroyed.
287 */
288 struct cds_list_head teardown_head;
d0b96690
DG
289 /*
290 * Hash table containing ust_app_channel indexed by channel objd.
291 */
292 struct lttng_ht *ust_objd;
10b56aef
MD
293 /*
294 * Hash table containing ust_app_session indexed by objd.
295 */
296 struct lttng_ht *ust_sessions_objd;
022d91ba 297
f20baf8e 298 /*
022d91ba
DG
299 * If this application is of the agent domain and this is non negative then
300 * a lookup MUST be done to acquire a read side reference to the
301 * corresponding agent app object. If the lookup fails, this should be set
302 * to a negative value indicating that the agent application is gone.
f20baf8e 303 */
022d91ba 304 int agent_app_sock;
940c4592
JR
305 /*
306 * Time at which the app is registred.
307 * Used for path creation
308 */
309 time_t registration_time;
2463b787
JR
310 /*
311 * Trigger
312 */
313 struct {
314 struct lttng_ust_object_data *handle;
315 struct lttng_pipe *trigger_event_pipe;
316 } token_communication;
317 struct lttng_ht *tokens_ht;
91d76f53
DG
318};
319
74d0b642 320#ifdef HAVE_LIBLTTNG_UST_CTL
3bd1e081 321
56fff090 322int ust_app_register(struct ust_register_msg *msg, int sock);
fb45065e 323int ust_app_register_done(struct ust_app *app);
d0b96690 324int ust_app_version(struct ust_app *app);
56fff090 325void ust_app_unregister(int sock);
421cb601 326int ust_app_start_trace_all(struct ltt_ust_session *usess);
8be98f9a 327int ust_app_stop_trace_all(struct ltt_ust_session *usess);
84cd17c6 328int ust_app_destroy_trace_all(struct ltt_ust_session *usess);
b551a063 329int ust_app_list_events(struct lttng_event **events);
f37d259d 330int ust_app_list_event_fields(struct lttng_event_field **fields);
35a9059d
DG
331int ust_app_create_event_glb(struct ltt_ust_session *usess,
332 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent);
333int ust_app_disable_channel_glb(struct ltt_ust_session *usess,
78f0bacd 334 struct ltt_ust_channel *uchan);
35a9059d 335int ust_app_enable_channel_glb(struct ltt_ust_session *usess,
78f0bacd 336 struct ltt_ust_channel *uchan);
35a9059d 337int ust_app_enable_event_glb(struct ltt_ust_session *usess,
edb67388 338 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent);
35a9059d
DG
339int ust_app_disable_event_glb(struct ltt_ust_session *usess,
340 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent);
55cc08a6
DG
341int ust_app_add_ctx_channel_glb(struct ltt_ust_session *usess,
342 struct ltt_ust_channel *uchan, struct ltt_ust_context *uctx);
a9ad0c8f
MD
343void ust_app_global_update(struct ltt_ust_session *usess, struct ust_app *app);
344void ust_app_global_update_all(struct ltt_ust_session *usess);
2463b787
JR
345void ust_app_global_update_tokens(struct ust_app *app);
346void ust_app_global_update_all_tokens(void);
347
348void ust_app_update_trigger_error_count(struct lttng_trigger *trigger);
91d76f53 349
56fff090 350void ust_app_clean_list(void);
57703f6e 351int ust_app_ht_alloc(void);
f6a9efaa 352struct ust_app *ust_app_find_by_pid(pid_t pid);
ffe60014 353struct ust_app_stream *ust_app_alloc_stream(void);
d0b96690
DG
354int ust_app_recv_registration(int sock, struct ust_register_msg *msg);
355int ust_app_recv_notify(int sock);
356void ust_app_add(struct ust_app *app);
357struct ust_app *ust_app_create(struct ust_register_msg *msg, int sock);
d88aee68 358void ust_app_notify_sock_unregister(int sock);
331744e3
JD
359ssize_t ust_app_push_metadata(struct ust_registry_session *registry,
360 struct consumer_socket *socket, int send_zero_data);
f45e313d 361void ust_app_destroy(struct ust_app *app);
fb9a95c4
JG
362enum lttng_error_code ust_app_snapshot_record(
363 const struct ltt_ust_session *usess,
348a81dc 364 const struct consumer_output *output, int wait,
d07ceecd 365 uint64_t nb_packets_per_stream);
16f35901 366uint64_t ust_app_get_size_one_more_packet_per_stream(
fb9a95c4 367 const struct ltt_ust_session *usess, uint64_t cur_nr_packets);
f20baf8e 368struct ust_app *ust_app_find_by_sock(int sock);
fb83fe64
JD
369int ust_app_uid_get_channel_runtime_stats(uint64_t ust_session_id,
370 struct cds_list_head *buffer_reg_uid_list,
371 struct consumer_output *consumer, uint64_t uchan_id,
372 int overwrite, uint64_t *discarded, uint64_t *lost);
373int ust_app_pid_get_channel_runtime_stats(struct ltt_ust_session *usess,
374 struct ltt_ust_channel *uchan,
375 struct consumer_output *consumer,
376 int overwrite, uint64_t *discarded, uint64_t *lost);
c2561365 377int ust_app_regenerate_statedump_all(struct ltt_ust_session *usess);
6f6d3b69 378enum lttng_error_code ust_app_rotate_session(struct ltt_session *session);
d2956687
JG
379enum lttng_error_code ust_app_create_channel_subdirectories(
380 const struct ltt_ust_session *session);
75018ab6
JG
381int ust_app_release_object(struct ust_app *app,
382 struct lttng_ust_object_data *data);
4a9b9759 383enum lttng_error_code ust_app_clear_session(struct ltt_session *session);
04ed9e10 384enum lttng_error_code ust_app_open_packets(struct ltt_session *session);
44d3bd01 385
2463b787
JR
386int ust_app_setup_trigger_group(struct ust_app *app);
387
b51ec5b4
MD
388static inline
389int ust_app_supported(void)
390{
391 return 1;
392}
393
74d0b642 394#else /* HAVE_LIBLTTNG_UST_CTL */
3bd1e081 395
cc920def
DG
396static inline
397int ust_app_destroy_trace_all(struct ltt_ust_session *usess)
398{
399 return 0;
400}
d974f197 401static inline
421cb601
DG
402int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
403{
404 return 0;
405}
406static inline
407int ust_app_start_trace_all(struct ltt_ust_session *usess)
d974f197 408{
5cf5d0e7 409 return 0;
d974f197 410}
3bd1e081 411static inline
cc920def
DG
412int ust_app_stop_trace_all(struct ltt_ust_session *usess)
413{
414 return 0;
415}
416static inline
b551a063
DG
417int ust_app_list_events(struct lttng_event **events)
418{
db7c0497 419 return -ENOSYS;
b551a063
DG
420}
421static inline
da0bdb87
MD
422int ust_app_list_event_fields(struct lttng_event_field **fields)
423{
424 return -ENOSYS;
425}
426static inline
3bd1e081
MD
427int ust_app_register(struct ust_register_msg *msg, int sock)
428{
429 return -ENOSYS;
430}
431static inline
fb45065e 432int ust_app_register_done(struct ust_app *app)
f2ca2e25
GF
433{
434 return -ENOSYS;
435}
436static inline
d0b96690
DG
437int ust_app_version(struct ust_app *app)
438{
439 return -ENOSYS;
440}
441static inline
3bd1e081
MD
442void ust_app_unregister(int sock)
443{
444}
445static inline
3bd1e081
MD
446void ust_app_lock_list(void)
447{
448}
449static inline
450void ust_app_unlock_list(void)
451{
452}
453static inline
454void ust_app_clean_list(void)
455{
456}
457static inline
458struct ust_app_list *ust_app_get_list(void)
459{
460 return NULL;
461}
462static inline
463struct ust_app *ust_app_get_by_pid(pid_t pid)
464{
465 return NULL;
466}
48842b30 467static inline
12a84043
JG
468int ust_app_ht_alloc(void)
469{
470 return 0;
471}
cc920def 472static inline
3646a051 473void ust_app_global_update(struct ltt_ust_session *usess, struct ust_app *app)
cc920def
DG
474{}
475static inline
2463b787
JR
476void ust_app_global_update_tokens(struct ust_app *app)
477{}
478static inline
479void ust_app_global_update_all_tokens(void)
480{}
481static inline
482int ust_app_setup_trigger_group(struct ust_app *app)
483{
484 return 0;
485}
486static inline
35a9059d 487int ust_app_disable_channel_glb(struct ltt_ust_session *usess,
cc920def 488 struct ltt_ust_channel *uchan)
d974f197 489{
cc920def 490 return 0;
d974f197 491}
487cf67c 492static inline
35a9059d 493int ust_app_enable_channel_glb(struct ltt_ust_session *usess,
cc920def 494 struct ltt_ust_channel *uchan)
487cf67c 495{
cc920def
DG
496 return 0;
497}
498static inline
35a9059d
DG
499int ust_app_create_event_glb(struct ltt_ust_session *usess,
500 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent)
501{
502 return 0;
503}
504static inline
505int ust_app_disable_event_glb(struct ltt_ust_session *usess,
cc920def
DG
506 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent)
507{
508 return 0;
487cf67c 509}
edb67388 510static inline
35a9059d 511int ust_app_enable_event_glb(struct ltt_ust_session *usess,
edb67388
DG
512 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent)
513{
514 return 0;
515}
55cc08a6 516static inline
55cc08a6
DG
517int ust_app_add_ctx_channel_glb(struct ltt_ust_session *usess,
518 struct ltt_ust_channel *uchan, struct ltt_ust_context *uctx)
519{
520 return 0;
521}
76d45b40
DG
522static inline
523int ust_app_enable_event_pid(struct ltt_ust_session *usess,
524 struct ltt_ust_channel *uchan, struct ltt_ust_event *uevent,
525 pid_t pid)
526{
527 return 0;
528}
7f79d3a1 529static inline
d0b96690
DG
530int ust_app_recv_registration(int sock, struct ust_register_msg *msg)
531{
532 return 0;
533}
534static inline
535int ust_app_recv_notify(int sock)
4466912f
DG
536{
537 return 0;
538}
d0b96690
DG
539static inline
540struct ust_app *ust_app_create(struct ust_register_msg *msg, int sock)
541{
542 return NULL;
543}
544static inline
545void ust_app_add(struct ust_app *app)
546{
547}
d88aee68
DG
548static inline
549void ust_app_notify_sock_unregister(int sock)
550{
551}
331744e3
JD
552static inline
553ssize_t ust_app_push_metadata(struct ust_registry_session *registry,
554 struct consumer_socket *socket, int send_zero_data)
555{
556 return 0;
557}
f45e313d
DG
558static inline
559void ust_app_destroy(struct ust_app *app)
560{
561 return;
562}
6dc3064a 563static inline
9a654598 564enum lttng_error_code ust_app_snapshot_record(struct ltt_ust_session *usess,
3637639a 565 const struct consumer_output *output, int wait, uint64_t max_stream_size)
5c786ded
JD
566{
567 return 0;
568}
569static inline
570unsigned int ust_app_get_nb_stream(struct ltt_ust_session *usess)
6dc3064a
DG
571{
572 return 0;
573}
2463b787
JR
574static inline
575void ust_app_update_trigger_error_count(struct lttng_trigger *trigger)
576{
577 return;
578}
b51ec5b4
MD
579static inline
580int ust_app_supported(void)
581{
582 return 0;
583}
f20baf8e
DG
584static inline
585struct ust_app *ust_app_find_by_sock(int sock)
586{
587 return NULL;
588}
95b1d17c
DG
589static inline
590struct ust_app *ust_app_find_by_pid(pid_t pid)
591{
592 return NULL;
593}
16f35901
JG
594static inline
595uint64_t ust_app_get_size_one_more_packet_per_stream(
1f4fc770 596 const struct ltt_ust_session *usess, uint64_t cur_nr_packets) {
16f35901
JG
597 return 0;
598}
fb83fe64
JD
599static inline
600int ust_app_uid_get_channel_runtime_stats(uint64_t ust_session_id,
601 struct cds_list_head *buffer_reg_uid_list,
602 struct consumer_output *consumer, int overwrite,
603 uint64_t uchan_id, uint64_t *discarded, uint64_t *lost)
604{
605 return 0;
606}
607
608static inline
609int ust_app_pid_get_channel_runtime_stats(struct ltt_ust_session *usess,
610 struct ltt_ust_channel *uchan,
611 struct consumer_output *consumer,
612 int overwrite, uint64_t *discarded, uint64_t *lost)
613{
614 return 0;
615}
b51ec5b4 616
6f698634
JG
617static inline
618int ust_app_regenerate_statedump_all(struct ltt_ust_session *usess)
619{
620 return 0;
621}
622
5c408ad8 623static inline
d5a1b7aa 624enum lttng_error_code ust_app_rotate_session(struct ltt_session *session)
5c408ad8
JD
625{
626 return 0;
627}
628
d2956687
JG
629static inline
630enum lttng_error_code ust_app_create_channel_subdirectories(
631 const struct ltt_ust_session *session)
632{
633 return 0;
634}
635
75018ab6
JG
636static inline
637int ust_app_release_object(struct ust_app *app, struct lttng_ust_object_data *data)
638{
639 return 0;
640}
641
4a9b9759
MD
642static inline
643enum lttng_error_code ust_app_clear_session(struct ltt_session *session)
644{
645 return 0;
646}
647
04ed9e10
JG
648static inline
649enum lttng_error_code ust_app_open_packets(struct ltt_session *session)
650{
651 return 0;
652}
653
74d0b642 654#endif /* HAVE_LIBLTTNG_UST_CTL */
3bd1e081 655
f6a9efaa 656#endif /* _LTT_UST_APP_H */
This page took 0.189482 seconds and 5 git commands to generate.