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 πŸ’œ


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