RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Functions
capture_support.c File Reference
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <rtems.h>
#include <rtems/monitor.h>
#include <rtems/captureimpl.h>
Include dependency graph for capture_support.c:

Data Structures

struct  ctrace_per_cpu_t
 

Functions

void rtems_capture_print_timestamp (uint64_t uptime)
 Capture print timestamp. More...
 
void rtems_capture_print_record_task (uint32_t cpu, rtems_capture_record_t *rec)
 Capture print record task. More...
 
void rtems_capture_print_record_capture (uint32_t cpu, rtems_capture_record_t *rec, uint64_t diff)
 Capture print capture record. More...
 
void rtems_capture_print_trace_records (int total, bool csv)
 Capture print trace records. More...
 
void rtems_capture_print_watch_list ()
 Capture print watch list. More...
 

Function Documentation

◆ rtems_capture_print_record_capture()

void rtems_capture_print_record_capture ( uint32_t  cpu,
rtems_capture_record_t rec,
uint64_t  diff 
)

Capture print capture record.

This function prints a user extension capture record.

Parameters
[in]cpuspecifies the cpu the cpu the record was logged on.
[in]recspecifies the record.
[in]diffspecifies the time between this and the last capture record.

◆ rtems_capture_print_record_task()

void rtems_capture_print_record_task ( uint32_t  cpu,
rtems_capture_record_t rec 
)

Capture print record task.

This function prints a capture record task. This record contains information to identify a task. It is refrenced in other records by the task id.

Parameters
[in]cpuspecifies the cpu the cpu the record was logged on.
[in]recspecifies the task record.

References rtems_capture_print_timestamp().

Referenced by rtems_capture_print_timestamp().

◆ rtems_capture_print_timestamp()

void rtems_capture_print_timestamp ( uint64_t  uptime)

Capture print timestamp.

This function prints uptime in a timestamp format.

Parameters
[in]uptimespecifies the timestamp to print

References rtems_capture_print_record_task().

Referenced by rtems_capture_print_record_task().

◆ rtems_capture_print_trace_records()

void rtems_capture_print_trace_records ( int  total,
bool  csv 
)

Capture print trace records.

This function reads, prints and releases up to total trace records in either a csv format or an ascii table format.

Parameters
[in]totalspecifies the number of records to print
[in]csvspecifies a comma seperated value format

References read(), rtems_capture_read(), rtems_get_processor_count(), rtems_status_text(), and RTEMS_SUCCESSFUL.

◆ rtems_capture_print_watch_list()

void rtems_capture_print_watch_list ( void  )

Capture print watch list.

This function prints a capture watch list

References rtems_capture_get_control_list(), rtems_capture_watch_get_ceiling(), rtems_capture_watch_get_floor(), and rtems_capture_watch_global_on().