summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/capture/capture_support.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/libmisc/capture: Manually change license to BSD-2Joel Sherrill2022-03-221-20/+37
| | | | | | | These files did not follow the standard format and needed to be changed manually. Updates #3053.
* capture: Fix unaligned pointer value warningFrank Kühndel2020-10-101-4/+4
| | | | | | | | | | | | | | rtems_name is a four byte integer. Giving an rtems_name as value instead of a pointer to ctrace_task_name_add() fixes not only the compiler warning but it is also a bit more safe For those who have asked for the warning: ../../../cpukit/libmisc/capture/capture_support.c:352:49: warning: taking address of packed member of 'struct rtems_capture_task_record' may result in an unaligned pointer value [-Waddress-of-packed-member] 352 | ctrace_task_name_add (rec_out->task_id, &task_rec.name); | ^~~~~~~~~~~~~~
* rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber2019-04-091-1/+1
| | | | | | | | | | | Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732.
* libmisc/capture: Remove the reserved _t in the types.Chris Johns2016-09-011-27/+27
|
* libmisc/capture: Fix the capture engine on SMP.Chris Johns2016-09-011-81/+242
| | | | | | | | | | | | | | | | | | | | | | | 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.
* capture/capture_support.c: Fix printf() warning and formattingJoel Sherrill2015-03-241-10/+14
|
* libmisc/capture: Clean up formatting on ARM.Chris Johns2015-03-191-15/+23
| | | | | | | | The printing of 64bit diff's for the timestamp did not work on ARM so I have changed this to 32bit. A 32bit nano-second diff between events should be more than enough time. Print '____' for POSIX thread output.
* capture: fix warnings in printGedare Bloom2015-03-161-4/+6
|
* cpukit: Remove old DESCRIPTION: in commentsJoel Sherrill2015-03-111-6/+1
| | | | These were remnants of pre-Doxygen comment style.
* capture: Resolve failure path memory leak.Jennifer Averett2014-11-251-0/+1
|
* capture: Move print methods out of cli for reuse.Jennifer Averett2014-11-241-0/+307
Methods to print the data were moved from capture-cli into a support area and are no longer static so that they can be shared by test routines, or application code that wants to use the capture engine without the shell interface.