Skip to content

Commit 67085f1

Browse files
fkokosinskicfriedt
authored andcommitted
include/zephyr/instrumentation: add missing @return docstrings
This commit add missing `@return` docstrings to the instrumentation subsystem public header. Signed-off-by: Filip Kokosinski <[email protected]>
1 parent 219d16e commit 67085f1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

include/zephyr/instrumentation/instrumentation.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
7677
bool 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
*/
8284
bool 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
*/
8892
bool instr_fundamentals_initialized(void);
8993

9094
/**
9195
* @brief Performs initialisation required by the system.
96+
*
97+
* @return always returns 0.
9298
*/
9399
int 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
*/
98106
bool 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
*/
103113
bool instr_enabled(void);
104114

105115
/**
106116
* @brief Enables instrumentation.
117+
*
118+
* @return always returns 0.
107119
*/
108120
int instr_enable(void);
109121

110122
/**
111123
* @brief Disables instrumentation.
124+
*
125+
* @return always returns 0.
112126
*/
113127
int instr_disable(void);
114128

115129
/**
116130
* @brief Turns on instrumentation (start recording events).
131+
*
132+
* @return always returns 0.
117133
*/
118134
int instr_turn_on(void);
119135

120136
/**
121137
* @brief Turns off instrumentation (stop recording events).
138+
*
139+
* @return always returns 0.
122140
*/
123141
int 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
*/
128148
bool 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
*/
133155
bool 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
*/
138162
bool instr_profile_enabled(void);
139163

0 commit comments

Comments
 (0)