061cb1aefef37d29f4208a69d558c1494825b87c
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.
26 * Init the command subsystem. Must be called before using any of the functions
27 * above. This is called in the main() of the session daemon.
31 /* Session commands */
32 int cmd_create_session_uri(char *name
, struct lttng_uri
*uris
,
33 size_t nb_uri
, lttng_sock_cred
*creds
);
34 int cmd_destroy_session(struct ltt_session
*session
, int wpipe
);
36 /* Channel commands */
37 int cmd_disable_channel(struct ltt_session
*session
, int domain
,
39 int cmd_enable_channel(struct ltt_session
*session
, int domain
,
40 struct lttng_channel
*attr
, int wpipe
);
43 int cmd_disable_event(struct ltt_session
*session
, int domain
,
44 char *channel_name
, char *event_name
);
45 int cmd_disable_event_all(struct ltt_session
*session
, int domain
,
47 int cmd_add_context(struct ltt_session
*session
, int domain
,
48 char *channel_name
, struct lttng_event_context
*ctx
, int kwpipe
);
49 int cmd_set_filter(struct ltt_session
*session
, int domain
,
50 char *channel_name
, char *event_name
,
51 struct lttng_filter_bytecode
*bytecode
);
52 int cmd_enable_event(struct ltt_session
*session
, int domain
,
53 char *channel_name
, struct lttng_event
*event
, int wpipe
);
54 int cmd_enable_event_all(struct ltt_session
*session
, int domain
,
55 char *channel_name
, int event_type
, int wpipe
);
57 /* Trace session action commands */
58 int cmd_start_trace(struct ltt_session
*session
);
59 int cmd_stop_trace(struct ltt_session
*session
);
61 /* Consumer commands */
62 int cmd_register_consumer(struct ltt_session
*session
, int domain
,
63 const char *sock_path
, struct consumer_data
*cdata
);
64 int cmd_disable_consumer(int domain
, struct ltt_session
*session
);
65 int cmd_enable_consumer(int domain
, struct ltt_session
*session
);
66 int cmd_set_consumer_uri(int domain
, struct ltt_session
*session
,
67 size_t nb_uri
, struct lttng_uri
*uris
);
69 /* Listing commands */
70 ssize_t
cmd_list_domains(struct ltt_session
*session
,
71 struct lttng_domain
**domains
);
72 ssize_t
cmd_list_events(int domain
, struct ltt_session
*session
,
73 char *channel_name
, struct lttng_event
**events
);
74 ssize_t
cmd_list_channels(int domain
, struct ltt_session
*session
,
75 struct lttng_channel
**channels
);
76 ssize_t
cmd_list_domains(struct ltt_session
*session
,
77 struct lttng_domain
**domains
);
78 void cmd_list_lttng_sessions(struct lttng_session
*sessions
, uid_t uid
,
80 ssize_t
cmd_list_tracepoint_fields(int domain
,
81 struct lttng_event_field
**fields
);
82 ssize_t
cmd_list_tracepoints(int domain
, struct lttng_event
**events
);
84 int cmd_calibrate(int domain
, struct lttng_calibrate
*calibrate
);
85 int cmd_data_pending(struct ltt_session
*session
);
This page took 0.032437 seconds and 5 git commands to generate.