4 * Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 * Inspired from iptables, by James Morris <jmorris@intercode.com.au>.
25 #include <linux/limits.h>
26 #include <asm/types.h>
27 #include <sys/socket.h>
28 #include <linux/netlink.h>
31 #define NETLINK_LTT 31
49 typedef struct lttctl_peer_msg
{
50 char trace_name
[NAME_MAX
];
51 char trace_type
[NAME_MAX
];
56 unsigned subbuf_size_low
;
57 unsigned n_subbufs_low
;
58 unsigned subbuf_size_med
;
59 unsigned n_subbufs_med
;
60 unsigned subbuf_size_high
;
61 unsigned n_subbufs_high
;
71 struct sockaddr_nl local
;
72 struct sockaddr_nl peer
;
75 typedef struct lttctl_resp_msg
{
79 struct lttctl_handle
*lttctl_create_handle(void);
81 int lttctl_destroy_handle(struct lttctl_handle
*h
);
84 int lttctl_create_trace(const struct lttctl_handle
*h
,
85 char *name
, enum trace_mode mode
, char *trace_type
,
86 unsigned subbuf_size_low
, unsigned n_subbufs_low
,
87 unsigned subbuf_size_med
, unsigned n_subbufs_med
,
88 unsigned subbuf_size_high
, unsigned n_subbufs_high
);
90 int lttctl_destroy_trace(const struct lttctl_handle
*handle
, char *name
);
92 int lttctl_start(const struct lttctl_handle
*handle
, char *name
);
94 int lttctl_stop(const struct lttctl_handle
*handle
, char *name
);
96 #define LTTCTLM_BASE 0x10
97 #define LTTCTLM_CONTROL (LTTCTLM_BASE + 1) /* LTT control message */
This page took 0.030742 seconds and 4 git commands to generate.