RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
capture_support.c File Reference

RTEMS Performance Monitoring and Measurement Framework. More...

#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>

Data Structures

struct  ctrace_per_cpu
 
struct  ctrace_task_name
 
struct  ctrace_tasks
 

Macros

#define CTRACE_TASK_BLOCK_SIZE   (64)
 

Functions

void rtems_capture_print_timestamp (uint64_t uptime)
 Capture print timestamp.
 
void rtems_capture_print_record_task (int cpu, const rtems_capture_record *rec, const rtems_capture_task_record *task_rec)
 Capture print record task.
 
void rtems_capture_print_record_capture (int cpu, const rtems_capture_record *rec, uint64_t diff, const rtems_name *name)
 Capture print capture record.
 
void rtems_capture_print_trace_records (int total, bool csv)
 Capture print trace records.
 
void rtems_capture_print_watch_list (void)
 Capture print watch list.
 

Detailed Description

RTEMS Performance Monitoring and Measurement Framework.

This is a set of print support routines that may be shared between the RTEMS monitor and direct callers of the capture engine.

Function Documentation

◆ rtems_capture_print_record_capture()

void rtems_capture_print_record_capture ( int  cpu,
const rtems_capture_record rec,
uint64_t  diff,
const rtems_name name 
)

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.
[in]namespecifies the name of the task, NULL if none.
[in]task_countnumber of tasks to search for.

◆ rtems_capture_print_record_task()

void rtems_capture_print_record_task ( int  cpu,
const rtems_capture_record rec,
const rtems_capture_task_record task_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.

◆ 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

◆ 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

◆ rtems_capture_print_watch_list()

void rtems_capture_print_watch_list ( void  )

Capture print watch list.

This function prints a capture watch list