MACRO::JSON_OUTPUT_A(3stap)
π MACRO::JSON_OUTPUT_A(3stap) β the JSON Tapset one, bestie π
okay so you found the MACRO::JSON_OUTPUT_A(3stap) page and honestly? good instinct. this is the SystemTap JSON tapset corner of the manual and it's lowkey iconic. let's get into it π¦
β¨ NAME β¨
macro::json_output_array_numeric_value β spits out a numeric value for a metric that lives inside an array. that's the whole job. she's focused, she's employed, she ate π
πΈ SYNOPSIS πΈ
@json_output_array_numeric_value(array_name,array_index,metric_name,value)
that's it, that's the call. four things go in, the numeric value comes out. periodt π
π ARGUMENTS π
array_nameβ the name of the array. like, which array are we talking about, bestie. that one. πarray_indexβ the array index, and it's a string (yes, a string, not a number, don't come for me) that tells it where to store the numeric value. it's giving "coordinates of the vibe". πΊοΈmetric_nameβ the name of the numeric metric. the β¨nameβ¨ of it. πvalueβ the actual numeric value you wanna output. the payload. the main character. π₯
π DESCRIPTION π
okay so the json_output_array_numeric_value macro is designed to be called from the 'json_data' probe inside your script. that's its whole situation. it's not out here doing freelance work β it goes in the 'json_data' probe, no cap.
what it does once it's there: it outputs a metric's numeric value that's sitting in an array. that's the task. π«Ά
and important, bestie β this metric should have been added with json_add_array_numeric_metric first. like, you can't just show up with a metric that nobody registered. the add has to happen before the output. that's the order of operations, that's the lore. πβ¨
π SEE ALSO π
tapset::json(3stap)β go read this one too, fr fr, it's the whole friend group π
and that's the page!! go forth and output your numeric array metrics responsibly, bestie π¦πΈπ
this was the SystemTap Tapset Reference, Version Ver, dated September 2026 β mwah, take care of her πβ¨
π¦ where this page comes from
- 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
- 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.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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms