]> sourceware.org Git - systemtap.git/blob - runtime/transport/transport.h
rebased unwind_branch on top of current master
[systemtap.git] / runtime / transport / transport.h
1 #ifndef _TRANSPORT_TRANSPORT_H_ /* -*- linux-c -*- */
2 #define _TRANSPORT_TRANSPORT_H_
3
4 /** @file transport.h
5 * @brief Header file for stp transport
6 */
7
8 #include "transport_msgs.h"
9
10 /* The size of print buffers. This limits the maximum */
11 /* amount of data a print can send. */
12 #define STP_BUFFER_SIZE 8192
13
14 /* STP_CTL_BUFFER_SIZE is the maximum size of a message */
15 /* exchanged on the control channel. */
16 #ifdef STP_OLD_TRANSPORT
17 /* Old transport sends print output on control channel */
18 #define STP_CTL_BUFFER_SIZE STP_BUFFER_SIZE
19 #else
20 #define STP_CTL_BUFFER_SIZE 256
21 #endif
22
23 /* how often the work queue wakes up and checks buffers */
24 #define STP_WORK_TIMER (HZ/100)
25
26 static unsigned _stp_nsubbufs = 8;
27 static unsigned _stp_subbuf_size = 65536*4;
28
29 void _stp_warn (const char *fmt, ...);
30 extern void _stp_transport_close(void);
31 extern int _stp_print_init(void);
32 extern void _stp_print_cleanup(void);
33 static struct dentry *_stp_get_root_dir(const char *name);
34 static int _stp_lock_debugfs(void);
35 static void _stp_unlock_debugfs(void);
36 static int _stp_ctl_send(int type, void *data, int len);
37 static void _stp_attach(void);
38 static void _stp_detach(void);
39 void _stp_handle_start(struct _stp_msg_start *st);
40
41 int _stp_pid = 0;
42 uid_t _stp_uid = 0;
43 gid_t _stp_gid = 0;
44 pid_t _stp_init_pid = 0;
45 int _stp_attached = 0;
46 #endif /* _TRANSPORT_TRANSPORT_H_ */
This page took 0.037683 seconds and 5 git commands to generate.