From: compudj Date: Thu, 18 Aug 2005 19:16:10 +0000 (+0000) Subject: libltt update X-Git-Tag: v0.12.20~2475 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3379fc2a0ec0f8a4368f7dc6bf944e75a2e5eda5;p=lttv.git libltt update git-svn-id: http://ltt.polymtl.ca/svn@1014 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/libltt/libltt.c b/ltt/branches/poly/libltt/libltt.c index 72eabd70..6cb81c30 100644 --- a/ltt/branches/poly/libltt/libltt.c +++ b/ltt/branches/poly/libltt/libltt.c @@ -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; -} diff --git a/ltt/branches/poly/libltt/libltt.h b/ltt/branches/poly/libltt/libltt.h index 06a40f24..80cebbad 100644 --- a/ltt/branches/poly/libltt/libltt.h +++ b/ltt/branches/poly/libltt/libltt.h @@ -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;