MACRO::JSON_OUTPUT_A(3stap)
π MACRO::JSON_OUTPUT_A(3stap) π
okay so bestie, we're in the JSON Tapset section of the manual and this page is literally all about one lil macro that makes your metrics look cute in JSON. let's get into it β¨
πΈ NAME πΈ
macro::json_output_array_string_value β outputs a string value for a metric that lives in an array π
β¨ SYNOPSIS β¨
@json_output_array_string_value(array_name,array_index,metric_name,value)
π«Ά ARGUMENTS π«Ά
array_nameβ the name of the array. the whole vibe check for where we're looking πarray_indexβ the array index (as a string, no cap) that tells you where to store the string value πmetric_nameβ the name of the string metric. yes it's a string metric, keep up bestie πvalueβ the actual string value you want to output. the main character fr fr π
π DESCRIPTION π
so the json_output_array_string_value macro is designed to be called from the 'json_data' probe in the user's script β that's the moment, that's the spot π― β and what it does is output a metric's string value that's sitting inside an array.
β οΈ one thing tho: this metric should have been added with json_add_array_string_metric first. like, you can't just show up to the function without your metric already existing, that's not the vibe π
π SEE ALSO π
and that's the whole page bestie, you ate that π β¨
SystemTap Tapset Reference, dated September 2026 π¦ ty for reading, ily, go forth and output those string values π
π¦ 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