STAP-MERGE(1)
β¨ NAME β¨
stap-merge β the systemtap per-cpu binary merger, bestie π
It's the little tool that stitches your per-cpu chaos back into one (1) single, orderly stream. No cap.
π¦ SYNOPSIS π¦
stap-merge [ OPTIONS ] [ INPUT FILENAMES ]
πΈ DESCRIPTION πΈ
okay so picture this: you ran a stap script and you used the -b option. iconic. but here's the thing β -b doesn't give you one file, it gives you a whole file per-cpu, all split up based on the timestamp field. it's giving "my notes are in seven different apps" energy ngl π
that's literally where stap-merge comes in. it merges and sorts through all those per-cpu files, again using that timestamp field, and hands you back one coherent timeline. main character behavior, honestly. π
π OPTIONS π
the systemtap merge executable supports the following options. she's not complicated, she's just picky β¨
-vβ Verbose mode π£οΈ. This displays three extra fields per set of collected data:
[cpunumber,sequencenumberofdata,thelengthofthedataset]
-o OUTPUT_FILENAMEβ Specify the name of the file you would like the output to be redirected into π. If this option is not specified then the output will be pushed to standard out. (so like, if you don't say where it goes, it just vibes onto your terminal π«)
π EXAMPLES π
first, run your stap script with -b:
$ stap -v -b -e 'probe syscall.open { printf("%s(%d) open\n",
execname(), pid()) }'
this should result in several stpd_cpu files β each one labled with a number representing which cpu the file was produced from. yes, labled. that's what the page says. we don't fix, we preserve π«Ά
then:
$ stap-merge -v stpd_cpu0 stpd_cpu1
running the stap-merge program in the same directory as the stap script from earlier in the example will produce an ordered sequence of packets with the three part label for each set of data. this result will be pushed through the standard output. an output file could have been specified using the -o option β your call, bestie π
ποΈ FILES ποΈ
important files and their corresponding paths can be located in the stappaths (7) manual page. go look, it's got the receipts π
π SEE ALSO π
the whole friend group, fr fr π«Ά
π BUGS π
use the Bugzilla link of the project web page or our mailing list.
http://sourceware.org/systemtap/,<systemtap@sourceware.org>
(not me asking you to file a bug like it's a group chat message π but genuinely, they wanna hear it)
reminder: all the flags, filenames and paths up there are literal β copy them exactly, don't freestyle. β¨
and that's the whole page, bestie π this was STAP-MERGE(1) from the General Commands Manual β go merge those cpus, slay, periodt. πβ¨π¦
π¦ where this page comes from
- arch rolling: systemtap 5.6-1 Β· GPL-2.0-or-later
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- debian bookworm: systemtap-runtime 4.8-2
- debian trixie: systemtap-runtime 5.1-5
- fedora 43: systemtap-client 5.3-4.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.4-3.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- nixos 26.05: systemtap 5.4
- nixpkgs unstable: systemtap 5.5
- opensuse-leap 16.0: systemtap 5.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: systemtap 5.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: systemtap 5.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: systemtap 5.2-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: systemtap-runtime 4.6-2
- ubuntu noble: systemtap-runtime 5.0-2ubuntu1
- ubuntu questing: systemtap-runtime 5.1-5
- ubuntu resolute: systemtap-runtime 5.3-2
- ubuntu stonking: systemtap-runtime 5.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms