tapset::json(3stap) — Linux manual page

NAME | DESCRIPTION | SEE ALSO | COLOPHON

TAPSET::JSON(3stap)                                  TAPSET::JSON(3stap)

NAME         top

       tapset::json - systemtap json tapset

DESCRIPTION         top

        The JSON tapset provides probes, functions, and macros to
       generate
        a JSON metadata and data file. The JSON metadata file is located
       in
        /proc/systemtap/MODULE/metadata.json. The JSON data file is
       located
        in /proc/systemtap/MODULE/data.json. The JSON data file is
       updated
        with current data every time the file is read.

       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         top

       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)

COLOPHON         top

       This page is part of the systemtap (a tracing and live-system
       analysis tool) project.  Information about the project can be
       found at ⟨https://sourceware.org/systemtap/⟩.  If you have a bug
       report for this manual page, send it to [email protected].
       This page was obtained from the project's upstream Git repository
       ⟨git://sourceware.org/git/systemtap.git⟩ on 2024-06-14.  (At that
       time, the date of the most recent commit that was found in the
       repository was 2024-06-13.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

SystemTap Tapset Reference     April 2024            TAPSET::JSON(3stap)

Pages that refer to this page: function::json_add_array(3stap)function::json_add_array_numeric_metric(3stap)function::json_add_array_string_metric(3stap)function::json_add_numeric_metric(3stap)function::json_add_string_metric(3stap)function::json_set_prefix(3stap)macro::json_output_array_numeric_value(3stap)macro::json_output_array_string_value(3stap)macro::json_output_data_end(3stap)macro::json_output_data_start(3stap)macro::json_output_numeric_value(3stap)macro::json_output_string_value(3stap)probe::json_data(3stap)