1TAPSET::JSON(3stap) TAPSET::JSON(3stap)
2
3
4
6 tapset::json - systemtap json tapset
7
8
10 The JSON tapset provides probes, functions, and macros to generate
11 a JSON metadata and data file. The JSON metadata file is located in
12 /proc/systemtap/MODULE/metadata.json. The JSON data file is located
13 in /proc/systemtap/MODULE/data.json. The JSON data file is updated
14 with current data every time the file is read.
15
16
17
18 json_set_prefix
19 Set the metric prefix.
20
21 See function::json_set_prefix(3stap)
22 for details.
23
24 json_add_numeric_metric
25 Add a numeric metric
26
27 See function::json_add_numeric_metric(3stap)
28 for details.
29
30 json_add_string_metric
31 Add a string metric
32
33 See function::json_add_string_metric(3stap)
34 for details.
35
36 json_add_array
37 Add an array
38
39 See function::json_add_array(3stap)
40 for details.
41
42 json_add_array_numeric_metric
43 Add a numeric metric to an array
44
45 See function::json_add_array_numeric_metric(3stap)
46 for details.
47
48 json_add_array_string_metric
49 Add a string metric to an array
50
51 See function::json_add_array_string_metric(3stap)
52 for details.
53
54 json_data
55 Fires whenever JSON data is wanted by a reader.
56
57 See probe::json_data(3stap)
58 for details.
59
60 @json_output_data_start
61 Start the json output.
62
63 See macro::json_output_data_start(3stap)
64 for details.
65
66 @json_output_string_value
67 Output a string value.
68
69 See macro::json_output_string_value(3stap)
70 for details.
71
72 @json_output_numeric_value
73 Output a numeric value.
74
75 See macro::json_output_numeric_value(3stap)
76 for details.
77
78 @json_output_array_string_value
79 Output a string value for metric in an array.
80
81 See macro::json_output_array_string_value(3stap)
82 for details.
83
84 @json_output_array_numeric_value
85 Output a numeric value for metric in an array.
86
87 See macro::json_output_array_numeric_value(3stap)
88 for details.
89
90 @json_output_data_end
91 End the json output.
92
93 See macro::json_output_data_end(3stap)
94 for details.
95
96
98 function::json_set_prefix(3stap),
99 function::json_add_numeric_metric(3stap),
100 function::json_add_string_metric(3stap),
101 function::json_add_array(3stap),
102 function::json_add_array_numeric_metric(3stap),
103 function::json_add_array_string_metric(3stap),
104 probe::json_data(3stap), macro::json_output_data_start(3stap),
105 macro::json_output_string_value(3stap),
106 macro::json_output_numeric_value(3stap),
107 macro::json_output_array_string_value(3stap),
108 macro::json_output_array_numeric_value(3stap),
109 macro::json_output_data_end(3stap), stap(1), stapprobes(3stap)
110
111
112
113SystemTap Tapset Reference May 2019 TAPSET::JSON(3stap)