]>
Commit | Line | Data |
---|---|---|
e25a872f | 1 | .\" -*- nroff -*- |
f7470174 | 2 | .TH STAP\-MERGE 1 |
e25a872f LB |
3 | .SH NAME |
4 | stap\-merge \- systemtap per-cpu binary merger | |
5 | ||
6 | .\" macros | |
7 | .de SAMPLE | |
8 | .br | |
9 | .RS | |
10 | .nf | |
11 | .nh | |
12 | .. | |
13 | .de ESAMPLE | |
14 | .hy | |
15 | .fi | |
16 | .RE | |
17 | .. | |
18 | ||
19 | .SH SYNOPSIS | |
20 | ||
21 | .br | |
f7470174 | 22 | .B stap\-merge |
e25a872f LB |
23 | [ |
24 | .I OPTIONS | |
25 | ] | |
26 | [ | |
27 | .I INPUT FILENAMES | |
28 | ] | |
29 | ||
30 | .SH DESCRIPTION | |
31 | ||
f7470174 | 32 | The stap\-merge executable applies when the \-b option has been used |
e25a872f LB |
33 | while running a |
34 | .IR stap | |
35 | script. The \-b option will generate files | |
f7470174 JS |
36 | per\-cpu, based on the timestamp field. Then stap\-merge will |
37 | merge and sort through the per-cpu files based on the timestamp | |
e25a872f LB |
38 | field. |
39 | ||
40 | .SH OPTIONS | |
41 | ||
42 | The systemtap merge executable supports the following options. | |
43 | .TP | |
44 | .B \-v | |
45 | Verbose mode, displays three extra fields per set of collected data. | |
46 | .SAMPLE | |
47 | .BR [cpu number, sequence number of data, the length of the data set] | |
48 | .ESAMPLE | |
49 | .TP | |
50 | .BI \-o " OUTPUT_FILENAME" | |
51 | ||
52 | Specify the name of the file you would like the output to be | |
53 | redirected into. If this option is not specified than the | |
54 | output will be pushed to standard out. | |
55 | ||
56 | .SH EXAMPLES | |
57 | .SAMPLE | |
f7470174 | 58 | $ stap \-v \-b \-e 'probe syscall.open { printf("%s(%d) open\\n", |
e25a872f LB |
59 | execname(), pid()) }' |
60 | ||
61 | .ESAMPLE | |
62 | ||
63 | This should result in several | |
64 | .I stpd_cpu | |
65 | files (each labled with a number | |
66 | representing which cpu the file was produced from). | |
67 | ||
68 | .SAMPLE | |
f7470174 | 69 | $ stap\-merge \-v stpd_cpu0 stpd_cpu1 |
e25a872f LB |
70 | |
71 | .ESAMPLE | |
72 | ||
f7470174 | 73 | Running the stap\-merge program in the same directory as the stap |
e25a872f LB |
74 | script earlier in the example, will produce an ordered sequence of |
75 | packets with the three part label for each set of data. This | |
76 | result will be pushed through the standard output. An output file | |
f7470174 | 77 | could have been specified using the "\-o" option. |
e25a872f LB |
78 | |
79 | .SH FILES | |
80 | ||
81 | .TP | |
82 | Important files and their corresponding paths can be located in the | |
83 | stappaths (7) manual page. | |
84 | ||
85 | .SH SEE ALSO | |
86 | .IR stapprobes (3stap), | |
87 | .IR stapfuncs (3stap), | |
88 | .IR stappaths (7), | |
89 | .IR staprun (8), | |
90 | .IR stapvars (3stap), | |
91 | .IR stapex (3stap), | |
f7470174 | 92 | .IR stap\-server (8), |
e25a872f LB |
93 | .IR gdb (1) |
94 | ||
95 | .SH BUGS | |
96 | Use the Bugzilla link of the project web page or our mailing list. | |
97 | .nh | |
306dd4f8 | 98 | .BR http://sourceware.org/systemtap/ , <systemtap@sourceware.org> . |
e25a872f | 99 | .hy |