move xml facilities
[lttv.git] / ltt / branches / poly / libltt / libltt.c
index b4555ea55149bed353ee63526f710f0dea8e92da..6cb81c304a2b35ac03c554b66647c4aa4b3963cd 100644 (file)
  *     
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <libltt/libltt.h>
-#include <asm/types.h>
-#include <linux/netlink.h>
 #include <errno.h>
 #include <stdio.h>
 
+
 /* Private interface */
 
 enum {
@@ -289,7 +292,7 @@ int lttctl_destroy_handle(struct lttctl_handle *h)
 
 
 int lttctl_create_trace(const struct lttctl_handle *h,
-               char *name, enum trace_mode mode)
+               char *name, enum trace_mode mode, unsigned subbuf_size, unsigned n_subbufs)
 {
        int err;
        
@@ -312,7 +315,9 @@ int lttctl_create_trace(const struct lttctl_handle *h,
 
        strncpy(req.msg.trace_name, name, NAME_MAX);
        req.msg.op = OP_CREATE;
-       req.msg.args.mode = mode;
+       req.msg.args.new_trace.mode = mode;
+       req.msg.args.new_trace.subbuf_size = subbuf_size;
+       req.msg.args.new_trace.n_subbufs = n_subbufs;
 
        err = lttctl_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len);
        if(err < 0) goto senderr;
@@ -465,3 +470,4 @@ senderr:
        lttctl_perror("Stop Trace Error");
        return err;
 }
+
This page took 0.022987 seconds and 4 git commands to generate.