@@ -72,68 +72,92 @@ struct instr_record {
7272/**
7373 * @brief Checks if tracing feature is available.
7474 *
75+ * @return true if tracing is supported, false otherwise.
7576 */
7677bool instr_tracing_supported (void );
7778
7879/**
7980 * @brief Checks if profiling feature is available.
8081 *
82+ * @return true if profiling is available, false otherwise.
8183 */
8284bool instr_profiling_supported (void );
8385
8486/**
8587 * @brief Checks if subsystem is ready to be initialized. Must called be before
8688 * instr_init().
89+ *
90+ * @return true if subsystem is ready to be initialized, false otherwise.
8791 */
8892bool instr_fundamentals_initialized (void );
8993
9094/**
9195 * @brief Performs initialisation required by the system.
96+ *
97+ * @return always returns 0.
9298 */
9399int instr_init (void );
94100
95101/**
96102 * @brief Tells if instrumentation subsystem is properly initialized.
103+ *
104+ * @return true if instrumentation is initialized, false otherwise.
97105 */
98106bool instr_initialized (void );
99107
100108/**
101109 * @brief Tells if instrumentation is enabled, i.e. can be turned on.
110+ *
111+ * @return true if instrumentation is enabled, false otherwise.
102112 */
103113bool instr_enabled (void );
104114
105115/**
106116 * @brief Enables instrumentation.
117+ *
118+ * @return always returns 0.
107119 */
108120int instr_enable (void );
109121
110122/**
111123 * @brief Disables instrumentation.
124+ *
125+ * @return always returns 0.
112126 */
113127int instr_disable (void );
114128
115129/**
116130 * @brief Turns on instrumentation (start recording events).
131+ *
132+ * @return always returns 0.
117133 */
118134int instr_turn_on (void );
119135
120136/**
121137 * @brief Turns off instrumentation (stop recording events).
138+ *
139+ * @return always returns 0.
122140 */
123141int instr_turn_off (void );
124142
125143/**
126144 * @brief Tells if instrumentation is turned on.
145+ *
146+ * @return true if instrumentation is turned on, false otherwise.
127147 */
128148bool instr_turned_on (void );
129149
130150/**
131151 * @brief Tells if instrumentation can collect traces.
152+ *
153+ * @return true if instrumentation can collect traces, false otherwise.
132154 */
133155bool instr_trace_enabled (void );
134156
135157/**
136158 * @brief Tells if instrumentation can collect profile info.
159+ *
160+ * @return true if instrumentation can collect profile info, false otherwise.
137161 */
138162bool instr_profile_enabled (void );
139163
0 commit comments