X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt-control%2Fliblttctl%2Flttctl.h;h=8dae012f142e11665d1d4aa1ea9ae96d9cef4e66;hb=9ba55b1274d48e4b8f2023eeff58957c7fc6e898;hp=cc028a574520a51c93da83c2040ddf29112c1cba;hpb=2727692a61acaf38e731277b6cc2a78a913d3e16;p=ltt-control.git diff --git a/ltt-control/liblttctl/lttctl.h b/ltt-control/liblttctl/lttctl.h index cc028a5..8dae012 100644 --- a/ltt-control/liblttctl/lttctl.h +++ b/ltt-control/liblttctl/lttctl.h @@ -1,7 +1,7 @@ /* libltt header file * * Copyright 2005- - * Mathieu Desnoyers + * Mathieu Desnoyers * * * This program is free software; you can redistribute it and/or modify @@ -11,7 +11,7 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * @@ -42,28 +42,34 @@ enum trace_op { enum trace_mode { LTT_TRACE_NORMAL, - LTT_TRACE_FLIGHT + LTT_TRACE_FLIGHT, + LTT_TRACE_HYBRID }; typedef struct lttctl_peer_msg { char trace_name[NAME_MAX]; + char trace_type[NAME_MAX]; enum trace_op op; union { - struct { - enum trace_mode mode; - unsigned subbuf_size; - unsigned n_subbufs; - } new_trace; + struct { + enum trace_mode mode; + unsigned subbuf_size_low; + unsigned n_subbufs_low; + unsigned subbuf_size_med; + unsigned n_subbufs_med; + unsigned subbuf_size_high; + unsigned n_subbufs_high; + } new_trace; } args; } lttctl_peer_msg_t; struct lttctl_handle { - int fd; - //u_int8_t blocking; - struct sockaddr_nl local; - struct sockaddr_nl peer; + int fd; + //u_int8_t blocking; + struct sockaddr_nl local; + struct sockaddr_nl peer; }; typedef struct lttctl_resp_msg { @@ -76,7 +82,10 @@ int lttctl_destroy_handle(struct lttctl_handle *h); int lttctl_create_trace(const struct lttctl_handle *h, - char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs); + char *name, enum trace_mode mode, char *trace_type, + unsigned subbuf_size_low, unsigned n_subbufs_low, + unsigned subbuf_size_med, unsigned n_subbufs_med, + unsigned subbuf_size_high, unsigned n_subbufs_high); int lttctl_destroy_trace(const struct lttctl_handle *handle, char *name);