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 b9224bb5a5acc2b58ab7e3aea99db208611f934a..80cebbadc44109d64b4bc42ac5d9e45103a946f5 100644
(file)
--- a/
ltt/branches/poly/libltt/libltt.h
+++ b/
ltt/branches/poly/libltt/libltt.h
@@
-23,49
+23,66
@@
#define _LIBLTT_H
#include <linux/limits.h>
#define _LIBLTT_H
#include <linux/limits.h>
+#include <asm/types.h>
+#include <sys/socket.h>
+#include <linux/netlink.h>
+
+#ifndef NETLINK_LTT
+#define NETLINK_LTT 12
+#endif
+
enum trace_op {
OP_CREATE,
OP_DESTROY,
OP_START,
enum trace_op {
OP_CREATE,
OP_DESTROY,
OP_START,
- OP_STOP
+ OP_STOP,
+ OP_NONE
};
enum trace_mode {
};
enum trace_mode {
- TRACE_NORMAL,
- TRACE_FLIGHT
+
LTT_
TRACE_NORMAL,
+
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
{
int fd;
struct lttctl_handle
{
int fd;
- u_int8_t blocking;
+
//
u_int8_t blocking;
struct sockaddr_nl local;
struct sockaddr_nl peer;
};
struct sockaddr_nl local;
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;
-struct lttctl_handle *lttctl_create_handle(
u_int32_t flags
);
+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(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(char *name);
+int lttctl_destroy_trace(c
onst struct lttctl_handle *handle, c
har *name);
-int lttctl_start(char *name);
+int lttctl_start(c
onst struct lttctl_handle *handle, c
har *name);
-int lttctl_stop(char *name);
+int lttctl_stop(c
onst struct lttctl_handle *handle, c
har *name);
#define LTTCTLM_BASE 0x10
#define LTTCTLM_CONTROL (LTTCTLM_BASE + 1) /* LTT control message */
#define LTTCTLM_BASE 0x10
#define LTTCTLM_CONTROL (LTTCTLM_BASE + 1) /* LTT control message */
This page took
0.023322 seconds
and
4
git commands to generate.