Skip to content

Commit

Permalink
trace: add doxygen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jan 18, 2023
1 parent c4cfd97 commit 41e21dd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ static inline int get_process_id(void)
}


/**
* Init new trace json file
*
* @param json_file json file for trace events
*
* @return 0 if success, otherwise errorcode
*/
int re_trace_init(const char *json_file)
{
int err = 0;
Expand Down Expand Up @@ -144,6 +151,11 @@ int re_trace_init(const char *json_file)
}


/**
* Close and flush trace file
*
* @return 0 if success, otherwise errorcode
*/
int re_trace_close(void)
{
int err = 0;
Expand Down Expand Up @@ -172,6 +184,11 @@ int re_trace_close(void)
}


/**
* Flush trace buffer (can be called multiple times)
*
* @return 0 if success, otherwise errorcode
*/
int re_trace_flush(void)
{
int i, flush_count;
Expand Down

0 comments on commit 41e21dd

Please sign in to comment.