TAPSET::JSON(3stap)
π NAME π
okay bestie, so tapset::json is the systemtap json tapset β it's giving JSON generation, main character energy, and it's here to serve β¨ (this is from the SystemTap Tapset Reference, btw π«Ά)
π¦ DESCRIPTION π¦
So the JSON tapset hands you probes, functions, and macros so you can generate a JSON metadata file and a JSON data file. Two files, both iconic, no cap π
- the JSON metadata file lives at
/proc/systemtap/MODULE/metadata.json - the JSON data file lives at
/proc/systemtap/MODULE/data.json
and listen β the JSON data file gets updated with the current data every single time the file is read. like, every read. fresh data, periodt π₯
β¨ the roster β¨
json_set_prefix
Set the metric prefix.
See function::json_set_prefix(3stap) for details. πΈ
json_add_numeric_metric
Add a numeric metric.
See function::json_add_numeric_metric(3stap) for details. πΈ
json_add_string_metric
Add a string metric.
See function::json_add_string_metric(3stap) for details. πΈ
json_add_array
Add an array.
See function::json_add_array(3stap) for details. πΈ
json_add_array_numeric_metric
Add a numeric metric to an array.
See function::json_add_array_numeric_metric(3stap) for details. πΈ
json_add_array_string_metric
Add a string metric to an array.
See function::json_add_array_string_metric(3stap) for details. πΈ
json_data
Fires whenever JSON data is wanted by a reader.
See probe::json_data(3stap) for details. π
@json_output_data_start
Start the json output.
See macro::json_output_data_start(3stap) for details. π
@json_output_string_value
Output a string value.
See macro::json_output_string_value(3stap) for details. π
@json_output_numeric_value
Output a numeric value.
See macro::json_output_numeric_value(3stap) for details. π
@json_output_array_string_value
Output a string value for metric in an array.
See macro::json_output_array_string_value(3stap) for details. π
@json_output_array_numeric_value
Output a numeric value for metric in an array.
See macro::json_output_array_numeric_value(3stap) for details. π
@json_output_data_end
End the json output.
See macro::json_output_data_end(3stap) for details. π
π SEE ALSO π
the whole friend group, all linked up, iykyk π
function::json_set_prefix(3stap)function::json_add_numeric_metric(3stap)function::json_add_string_metric(3stap)function::json_add_array(3stap)function::json_add_array_numeric_metric(3stap)function::json_add_array_string_metric(3stap)probe::json_data(3stap)macro::json_output_data_start(3stap)macro::json_output_string_value(3stap)macro::json_output_numeric_value(3stap)macro::json_output_array_string_value(3stap)macro::json_output_array_numeric_value(3stap)macro::json_output_data_end(3stap)stap(1)stapprobes(3stap)
okay that's the whole page, mwah π this was the SystemTap Tapset Reference, dated September 2026, and it's literally titled TAPSET::JSON(3stap) β slay, bye bestie π«Άβ¨
π¦ 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