blob: 5f525706afd2c0067e8a21acf1dbedd9bcee9651 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/* SystemTap transport values */
enum
{
STP_TRANSPORT_PROC = 1,
STP_TRANSPORT_RELAYFS
};
/* stp control channel command values */
enum
{
STP_BUF_INFO = 1,
STP_SUBBUFS_CONSUMED,
STP_REALTIME_DATA,
STP_TRANSPORT_INFO,
STP_START,
STP_EXIT,
};
/* control channel command structs */
struct buf_info
{
int cpu;
unsigned produced;
unsigned consumed;
};
struct consumed_info
{
int cpu;
unsigned consumed;
};
struct transport_info
{
unsigned buf_size;
unsigned subbuf_size;
unsigned n_subbufs;
int transport_mode;
int target; // target pid
#if 0
char cmd[256]; // cmd to process data
#endif
};
struct transport_start
{
int pid; // pid for streaming data
};
|