]> sourceware.org Git - systemtap.git/blame - stap-merge.1
Merge branch 'master' into dsmith/task_finder2
[systemtap.git] / stap-merge.1
CommitLineData
e25a872f 1.\" -*- nroff -*-
f7470174 2.TH STAP\-MERGE 1
e25a872f
LB
3.SH NAME
4stap\-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 32The stap\-merge executable applies when the \-b option has been used
e25a872f
LB
33while running a
34.IR stap
35script. The \-b option will generate files
f7470174
JS
36per\-cpu, based on the timestamp field. Then stap\-merge will
37merge and sort through the per-cpu files based on the timestamp
e25a872f
LB
38field.
39
40.SH OPTIONS
41
42The systemtap merge executable supports the following options.
43.TP
44.B \-v
45Verbose 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
52Specify the name of the file you would like the output to be
53redirected into. If this option is not specified than the
54output 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
59execname(), pid()) }'
60
61.ESAMPLE
62
63This should result in several
64.I stpd_cpu
65files (each labled with a number
66representing 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 73Running the stap\-merge program in the same directory as the stap
e25a872f
LB
74script earlier in the example, will produce an ordered sequence of
75packets with the three part label for each set of data. This
76result will be pushed through the standard output. An output file
f7470174 77could have been specified using the "\-o" option.
e25a872f
LB
78
79.SH FILES
80
81.TP
82Important files and their corresponding paths can be located in the
83stappaths (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
96Use 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
This page took 0.042078 seconds and 5 git commands to generate.