Changeset 9f2a207 in rtems


Ignore:
Timestamp:
Sep 20, 2020, 1:09:48 PM (5 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3c68456a
Parents:
2b1a4ac
git-author:
Sebastian Huber <sebastian.huber@…> (09/20/20 13:09:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/20/20 15:32:10)
Message:

capture: Move default trace data

Provide the default trace data in a separate file to avoid issues on targets
with a small-data area.

Close #3883.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/trace/rtems-trace-buffer-vars.h

    r2b1a4ac r9f2a207  
    1616#if !defined (_RTEMS_TRACE_BUFFER_VARS_H_)
    1717#define _RTEMS_TRACE_BUFFER_VARS_H_
     18
     19#include <stdbool.h>
     20#include <stdint.h>
    1821
    1922#ifdef __cplusplus
     
    4346typedef __rtld_trace_sig_arg rtems_trace_sig_arg;
    4447typedef __rtld_trace_sig rtems_trace_sig;
     48
     49/*
     50 * Trace linker data.
     51 */
     52extern uint32_t __rtld_trace_names_size;
     53extern const char *const __rtld_trace_names[];
     54extern uint32_t __rtld_trace_enables_size;
     55extern const uint32_t __rtld_trace_enables[];
     56extern uint32_t __rtld_trace_triggers_size;
     57extern const uint32_t __rtld_trace_triggers[];
     58extern const __rtld_trace_sig __rtld_trace_signatures[];
     59
     60/*
     61 * Trace buffer generator data.
     62 */
     63extern const bool __rtld_tbg_present;
     64extern const uint32_t __rtld_tbg_mode;
     65extern const uint32_t __rtld_tbg_buffer_size;
     66extern uint32_t __rtld_tbg_buffer[];
     67extern volatile uint32_t __rtld_tbg_buffer_in;
     68extern volatile bool __rtld_tbg_finished;
     69extern volatile bool __rtld_tbg_triggered;
    4570
    4671/**
  • cpukit/libmisc/capture/rtems-trace-buffer-vars.c

    r2b1a4ac r9f2a207  
    77 */
    88
    9 #include <rtems.h>
    10 
    119#include <rtems/trace/rtems-trace-buffer-vars.h>
    1210
    13 /**
    14  * External Trace Linker and TBG data. We provide weak versions to allow us to
    15  * link and be present in an application that has not been trace linked.
    16  */
    17 
    18 /*
    19  * Trace linker data.
    20  */
    21 uint32_t __rtld_trace_names_size __attribute__ ((weak));
    22 const char *const __rtld_trace_names[1] __attribute__ ((weak));
    23 uint32_t __rtld_trace_enables_size __attribute__ ((weak));
    24 const uint32_t __rtld_trace_enables[1] __attribute__ ((weak));
    25 uint32_t __rtld_trace_triggers_size __attribute__ ((weak));
    26 const uint32_t __rtld_trace_triggers[1] __attribute__ ((weak));
    27 const __rtld_trace_sig __rtld_trace_signatures[1] __attribute__ ((weak));
    28 
    29 /*
    30  * Trace buffer generator data.
    31  */
    32 const bool __rtld_tbg_present __attribute__ ((weak));
    33 const uint32_t __rtld_tbg_mode __attribute__ ((weak));
    34 const uint32_t __rtld_tbg_buffer_size __attribute__ ((weak));
    35 uint32_t __rtld_tbg_buffer[1] __attribute__ ((weak));
    36 volatile uint32_t __rtld_tbg_buffer_in __attribute__ ((weak));
    37 volatile bool __rtld_tbg_finished __attribute__ ((weak));
    38 volatile bool __rtld_tbg_triggered __attribute__ ((weak));
     11#include <rtems.h>
    3912
    4013ISR_LOCK_DEFINE (static, __rtld_tbg_lock, "RTLD TBG")
  • spec/build/cpukit/librtemscpu.yml

    r2b1a4ac r9f2a207  
    894894- cpukit/libmisc/capture/capture_support.c
    895895- cpukit/libmisc/capture/capture_user_extension.c
     896- cpukit/libmisc/capture/rtems-trace-buffer-default.c
    896897- cpukit/libmisc/capture/rtems-trace-buffer-vars.c
    897898- cpukit/libmisc/cpuuse/cpuinforeport.c
Note: See TracChangeset for help on using the changeset viewer.