forked from Imagelibrary/rtems
This patches some issues with the capture engine:
1. Check is the engine is open in ctrace commands.
2. Check all record open and appends for overflow.
3. Fix the record open to take the size of user data and
not the record header.
4. Use packed structs for data being written to the per
cpu buffers.
5. Remove direct struct access to the capture buffers to
avoid misaligned accesses.
6. Add support to extract records, no struct access to the
capture buffers.
7. Update ctrace to extract records from the capture buffers.
8. Add support to ctrace to always print the task name if it
has one.
9. Add support to manage names or the lack of a name.
10. Range of minor fixes.
11. Fix a long standing bug in ctset's handling of args.
Closes #2780.
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/**
|
|
* @file rtems/capture-cli.h
|
|
*
|
|
* This is the Target Interface Command Line Interface. You need
|
|
* start the RTEMS monitor.
|
|
*/
|
|
|
|
/*
|
|
------------------------------------------------------------------------
|
|
|
|
Copyright 2002, 2016 Chris Johns <chrisj@rtems.org>.
|
|
All rights reserved.
|
|
|
|
COPYRIGHT (c) 1989-2014.
|
|
On-Line Applications Research Corporation (OAR).
|
|
|
|
The license and distribution terms for this file may be
|
|
found in the file LICENSE in this distribution.
|
|
|
|
This software with is provided ``as is'' and with NO WARRANTY.
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
RTEMS Performance Monitoring and Measurement Framework.
|
|
|
|
This is the Target Interface Command Line Interface. You need
|
|
start the RTEMS monitor.
|
|
|
|
*/
|
|
|
|
#ifndef __CAPTURE_CLI_H_
|
|
#define __CAPTURE_CLI_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <rtems/capture.h>
|
|
|
|
/**
|
|
* rtems_capture_cli_init
|
|
*
|
|
* This function initialises the command line interface to the capture
|
|
* engine.
|
|
*/
|
|
rtems_status_code
|
|
rtems_capture_cli_init (rtems_capture_timestamp timestamp);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|