libltt : size + n subbufs + align options
[lttv.git] / ltt / branches / poly / libltt / libltt.h
index 68281a2c1db2f4c41b010229c3c059fcb4a30148..06a40f244cbe3115e3c74192e125666103ec601b 100644 (file)
@@ -37,6 +37,7 @@ enum trace_op {
        OP_DESTROY,
        OP_START,
        OP_STOP,
+       OP_ALIGN,
        OP_NONE
 };
 
@@ -45,6 +46,19 @@ enum trace_mode {
        LTT_TRACE_FLIGHT
 };
 
+typedef struct lttctl_peer_msg {
+       char trace_name[NAME_MAX];
+       enum trace_op op;
+       union {
+    struct {
+      enum trace_mode mode;
+      unsigned subbuf_size;
+      unsigned n_subbufs;
+    } new_trace;
+    unsigned alignment;
+       } args;
+} lttctl_peer_msg_t;
+
 
 struct lttctl_handle
 {
@@ -54,14 +68,6 @@ struct lttctl_handle
   struct sockaddr_nl peer;
 };
 
-typedef struct lttctl_peer_msg {
-       char trace_name[NAME_MAX];
-       enum trace_op op;
-       union {
-               enum trace_mode mode;
-       } args;
-} lttctl_peer_msg_t;
-
 typedef struct lttctl_resp_msg {
        int err;
 } lttctl_resp_msg_t;
@@ -71,8 +77,8 @@ struct lttctl_handle *lttctl_create_handle(void);
 int lttctl_destroy_handle(struct lttctl_handle *h);
 
 
-int lttctl_create_trace(const struct lttctl_handle * handle,
-               char *name, enum trace_mode mode);
+int lttctl_create_trace(const struct lttctl_handle *h,
+               char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs);
 
 int lttctl_destroy_trace(const struct lttctl_handle *handle, char *name);
 
This page took 0.022967 seconds and 4 git commands to generate.