2 * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * Init the command subsystem. Must be called before using any of the functions
26 * above. This is called in the main() of the session daemon.
30 /* Session commands */
31 int cmd_create_session_uri(char *name
, struct lttng_uri
*uris
,
32 size_t nb_uri
, lttng_sock_cred
*creds
);
33 int cmd_create_session_snapshot(char *name
, struct lttng_uri
*uris
,
34 size_t nb_uri
, lttng_sock_cred
*creds
);
35 int cmd_destroy_session(struct ltt_session
*session
, int wpipe
);
37 /* Channel commands */
38 int cmd_disable_channel(struct ltt_session
*session
, int domain
,
41 int cmd_enable_channel(struct ltt_session
*session
,
42 struct lttng_domain
*domain
, struct lttng_channel
*attr
, int wpipe
);
45 int cmd_disable_event(struct ltt_session
*session
, int domain
,
46 char *channel_name
, char *event_name
);
47 int cmd_disable_event_all(struct ltt_session
*session
, int domain
,
49 int cmd_add_context(struct ltt_session
*session
, int domain
,
50 char *channel_name
, struct lttng_event_context
*ctx
, int kwpipe
);
51 int cmd_set_filter(struct ltt_session
*session
, int domain
,
52 char *channel_name
, struct lttng_event
*event
,
53 struct lttng_filter_bytecode
*bytecode
);
54 int cmd_enable_event(struct ltt_session
*session
, struct lttng_domain
*domain
,
55 char *channel_name
, struct lttng_event
*event
,
56 struct lttng_filter_bytecode
*filter
, int wpipe
);
57 int cmd_enable_event_all(struct ltt_session
*session
,
58 struct lttng_domain
*domain
, char *channel_name
, int event_type
,
59 struct lttng_filter_bytecode
*filter
, int wpipe
);
61 /* Trace session action commands */
62 int cmd_start_trace(struct ltt_session
*session
);
63 int cmd_stop_trace(struct ltt_session
*session
);
65 /* Consumer commands */
66 int cmd_register_consumer(struct ltt_session
*session
, int domain
,
67 const char *sock_path
, struct consumer_data
*cdata
);
68 int cmd_set_consumer_uri(int domain
, struct ltt_session
*session
,
69 size_t nb_uri
, struct lttng_uri
*uris
);
70 int cmd_setup_relayd(struct ltt_session
*session
);
72 /* Listing commands */
73 ssize_t
cmd_list_domains(struct ltt_session
*session
,
74 struct lttng_domain
**domains
);
75 ssize_t
cmd_list_events(int domain
, struct ltt_session
*session
,
76 char *channel_name
, struct lttng_event
**events
);
77 ssize_t
cmd_list_channels(int domain
, struct ltt_session
*session
,
78 struct lttng_channel
**channels
);
79 ssize_t
cmd_list_domains(struct ltt_session
*session
,
80 struct lttng_domain
**domains
);
81 void cmd_list_lttng_sessions(struct lttng_session
*sessions
, uid_t uid
,
83 ssize_t
cmd_list_tracepoint_fields(int domain
,
84 struct lttng_event_field
**fields
);
85 ssize_t
cmd_list_tracepoints(int domain
, struct lttng_event
**events
);
86 ssize_t
cmd_snapshot_list_outputs(struct ltt_session
*session
,
87 struct lttng_snapshot_output
**outputs
);
89 int cmd_calibrate(int domain
, struct lttng_calibrate
*calibrate
);
90 int cmd_data_pending(struct ltt_session
*session
);
93 int cmd_snapshot_add_output(struct ltt_session
*session
,
94 struct lttng_snapshot_output
*output
, uint32_t *id
);
95 int cmd_snapshot_del_output(struct ltt_session
*session
,
96 struct lttng_snapshot_output
*output
);
97 int cmd_snapshot_record(struct ltt_session
*session
,
98 struct lttng_snapshot_output
*output
, int wait
);
This page took 0.035333 seconds and 4 git commands to generate.