Files
rtems/cpukit/libmisc/capture/rtems-trace-buffer-default.c
T
Sebastian Huber 3f2e1bc22b cpukit: Add the remaining Doxygen file headers
Thirty-five files across the device drivers, the event recording, the
debugger interfaces, the flattened device tree support and several small
libraries had no Doxygen block.  Doxygen listed none of them.

Give each file a block with @file, @ingroup and @brief.  The brief names
what the file implements.

The score/cpu ports and the shell still lack their blocks.  Later
commits add them.

Updates #5717.

Assisted-by: Claude:claude-opus-5 claude-code
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2026-09-01 20:17:20 +00:00

65 lines
2.7 KiB
C

/* SPDX-License-Identifier: BSD-2-Clause */
/**
* @file
*
* @ingroup RTEMSImplTrace
*
* @brief This source file contains the default trace buffer variables of
* the trace buffer generator.
*/
/*
* Copyright (c) 2015 Chris Johns <chrisj@rtems.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <rtems/trace/rtems-trace-buffer-vars.h>
/**
* External Trace Linker and TBG data. We provide weak versions to allow us to
* link and be present in an application that has not been trace linked.
*/
/*
* Trace linker data.
*/
uint32_t __rtld_trace_names_size __attribute__(( weak ));
const char *const __rtld_trace_names[ 1 ] __attribute__(( weak ));
uint32_t __rtld_trace_enables_size __attribute__(( weak ));
const uint32_t __rtld_trace_enables[ 1 ] __attribute__(( weak ));
uint32_t __rtld_trace_triggers_size __attribute__(( weak ));
const uint32_t __rtld_trace_triggers[ 1 ] __attribute__(( weak ));
const __rtld_trace_sig __rtld_trace_signatures[ 1 ] __attribute__(( weak ));
/*
* Trace buffer generator data.
*/
const bool __rtld_tbg_present __attribute__(( weak ));
const uint32_t __rtld_tbg_mode __attribute__(( weak ));
const uint32_t __rtld_tbg_buffer_size __attribute__(( weak ));
uint32_t __rtld_tbg_buffer[ 1 ] __attribute__(( weak ));
volatile uint32_t __rtld_tbg_buffer_in __attribute__(( weak ));
volatile bool __rtld_tbg_finished __attribute__(( weak ));
volatile bool __rtld_tbg_triggered __attribute__(( weak ));