diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-12 18:29:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-18 07:20:52 +0100 |
commit | ab42b3e1002306ed343adc47c460788ed31df66f (patch) | |
tree | 9438ff83b8ca107047563a7b63d9edb3f5c94b0d /cpukit/include/rtems/record.h | |
parent | rtems: Add rtems_put_char() (diff) | |
download | rtems-ab42b3e1002306ed343adc47c460788ed31df66f.tar.bz2 |
record: Add rtems_record_dump()
Add rtems_record_dump_base64() and rtems_record_dump_base64_zlib().
Add CONFIGURE_RECORD_FATAL_DUMP_BASE64 and
CONFIGURE_RECORD_FATAL_DUMP_BASE64_ZLIB configuration options.
Update #3904.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/record.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/cpukit/include/rtems/record.h b/cpukit/include/rtems/record.h index 4e1c469173..2f5ad5415c 100644 --- a/cpukit/include/rtems/record.h +++ b/cpukit/include/rtems/record.h @@ -1,7 +1,7 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + /* - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (C) 2018, 2019 embedded brains GmbH + * Copyright (C) 2018, 2020 embedded brains GmbH (http://www.embedded-brains.de) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,6 +32,7 @@ #include <rtems/score/atomic.h> #include <rtems/score/cpu.h> +#include <rtems/score/interr.h> #include <rtems/score/percpu.h> #include <rtems/score/watchdog.h> #include <rtems/counter.h> @@ -95,23 +96,22 @@ void _Record_Thread_begin( struct _Thread_Control *executing ); void _Record_Thread_exitted( struct _Thread_Control *executing ); +void _Record_Fatal_dump_base64( + Internal_errors_Source source, + bool always_set_to_false, + Internal_errors_t code +); + +void _Record_Fatal_dump_base64_zlib( + Internal_errors_Source source, + bool always_set_to_false, + Internal_errors_t code +); + void _Record_Thread_terminate( struct _Thread_Control *executing ); -#define RECORD_EXTENSION \ - { \ - _Record_Thread_create, \ - _Record_Thread_start, \ - _Record_Thread_restart, \ - _Record_Thread_delete, \ - _Record_Thread_switch, \ - _Record_Thread_begin, \ - _Record_Thread_exitted, \ - NULL, \ - _Record_Thread_terminate \ - } - RTEMS_INLINE_ROUTINE unsigned int _Record_Index( const Record_Control *control, unsigned int index |