projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add lttv wrapper
[lttv.git]
/
ltt
/
branches
/
poly
/
libltt
/
libltt.h
diff --git
a/ltt/branches/poly/libltt/libltt.h
b/ltt/branches/poly/libltt/libltt.h
index bb10f459a2487aa91146e307b8cb1ed5cc7a9ce5..80cebbadc44109d64b4bc42ac5d9e45103a946f5 100644
(file)
--- a/
ltt/branches/poly/libltt/libltt.h
+++ b/
ltt/branches/poly/libltt/libltt.h
@@
-24,6
+24,7
@@
#include <linux/limits.h>
#include <asm/types.h>
#include <linux/limits.h>
#include <asm/types.h>
+#include <sys/socket.h>
#include <linux/netlink.h>
#ifndef NETLINK_LTT
#include <linux/netlink.h>
#ifndef NETLINK_LTT
@@
-44,6
+45,18
@@
enum trace_mode {
LTT_TRACE_FLIGHT
};
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;
+ } args;
+} lttctl_peer_msg_t;
+
struct lttctl_handle
{
struct lttctl_handle
{
@@
-53,14
+66,6
@@
struct lttctl_handle
struct sockaddr_nl peer;
};
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;
typedef struct lttctl_resp_msg {
int err;
} lttctl_resp_msg_t;
@@
-70,8
+75,8
@@
struct lttctl_handle *lttctl_create_handle(void);
int lttctl_destroy_handle(struct lttctl_handle *h);
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);
int lttctl_destroy_trace(const struct lttctl_handle *handle, char *name);
This page took
0.023251 seconds
and
4
git commands to generate.