libltt update
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 18 Aug 2005 19:16:10 +0000 (19:16 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 18 Aug 2005 19:16:10 +0000 (19:16 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1014 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/libltt/libltt.c
ltt/branches/poly/libltt/libltt.h

index 72eabd70eb657cc11629b3bd7442305d6b98293c..6cb81c304a2b35ac03c554b66647c4aa4b3963cd 100644 (file)
@@ -471,47 +471,3 @@ senderr:
        return err;
 }
 
-
-int lttctl_align(const struct lttctl_handle *h,
-               char *name, unsigned alignment)
-{
-       struct {
-               struct nlmsghdr nlh;
-               lttctl_peer_msg_t       msg;
-       } req;
-       struct {
-               struct nlmsghdr nlh;
-               struct nlmsgerr nlerr;
-               lttctl_peer_msg_t       msg;
-       } ack;
-       int err;
-
-       memset(&req, 0, sizeof(req));
-       req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(lttctl_peer_msg_t));
-       req.nlh.nlmsg_flags = NLM_F_REQUEST;
-       req.nlh.nlmsg_type = LTTCTLM_CONTROL;
-       req.nlh.nlmsg_pid = h->local.nl_pid;
-
-       strncpy(req.msg.trace_name, name, NAME_MAX);
-       req.msg.op = OP_ALIGN;
-       req.msg.args.alignment = alignment;
-
-       err = lttctl_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len);
-       if(err < 0) goto senderr;
-
-       err = lttctl_netlink_recvfrom(h, (void*)&ack, sizeof(ack), 0);
-       if(err < 0) goto senderr;
-
-       err = ack.nlerr.error;
-       if(err != 0) {
-               errno = err;
-               lttctl_perror("Align Trace Error");
-               return -1;
-       }
-
-       return 0;
-
-senderr:
-       lttctl_perror("Align Trace Error");
-       return err;
-}
index 06a40f244cbe3115e3c74192e125666103ec601b..80cebbadc44109d64b4bc42ac5d9e45103a946f5 100644 (file)
@@ -37,7 +37,6 @@ enum trace_op {
        OP_DESTROY,
        OP_START,
        OP_STOP,
-       OP_ALIGN,
        OP_NONE
 };
 
@@ -55,7 +54,6 @@ typedef struct lttctl_peer_msg {
       unsigned subbuf_size;
       unsigned n_subbufs;
     } new_trace;
-    unsigned alignment;
        } args;
 } lttctl_peer_msg_t;
 
This page took 0.025838 seconds and 4 git commands to generate.