Changeset a300920d in rtems


Ignore:
Timestamp:
Mar 30, 2015, 11:19:17 AM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, master
Children:
7790fec1
Parents:
ec8f3cb
git-author:
Chris Johns <chrisj@…> (03/30/15 11:19:17)
git-committer:
Chris Johns <chrisj@…> (03/31/15 06:04:43)
Message:

libmisc/shell: Add the rtrace command for buffered tracing support.

The rtrace command interfaces to the RTEMS Trace Linker's trace
buffering data allowing users to capture and report trace data.

Location:
cpukit
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    rec8f3cb ra300920d  
    173173include_rtems_HEADERS += libmisc/capture/captureimpl.h
    174174
     175# tracing headers
     176include_rtems_tracedir = $(include_rtemsdir)/trace
     177include_rtems_trace_HEADERS =
     178include_rtems_trace_HEADERS += libmisc/capture/rtems-trace-buffer-vars.h
     179
    175180## cpuuse
    176181include_rtems_HEADERS += libmisc/cpuuse/cpuuse.h
  • cpukit/libmisc/Makefile.am

    rec8f3cb ra300920d  
    2222    capture/capture_support.c \
    2323    capture/capture.h capture/captureimpl.h capture/capture-cli.h \
    24     capture/capture_buffer.h
     24    capture/capture_buffer.h \
     25    capture/rtems-trace-buffer-vars.c capture/rtems-trace-buffer-vars.h
    2526
    2627## cpuuse
     
    109110    shell/main_mkrfs.c shell/main_debugrfs.c shell/main_df.c \
    110111    shell/main_lsof.c shell/main_edit.c \
    111     shell/main_blkstats.c \
     112    shell/main_blkstats.c shell/main_rtrace.c \
    112113    shell/shell-wait-for-input.c
    113114libshell_a_SOURCES += shell/main_cmdls.c
  • cpukit/libmisc/shell/shellconfig.h

    rec8f3cb ra300920d  
    8888extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command;
    8989extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
     90extern rtems_shell_cmd_t rtems_shell_RTRACE_Command;
    9091#if RTEMS_NETWORKING
    9192  extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
     
    465466
    466467    /*
     468     *  Tracing family commands
     469     */
     470    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     471         !defined(CONFIGURE_SHELL_NO_COMMAND_RTRACE)) || \
     472        defined(CONFIGURE_SHELL_COMMAND_RTRACE)
     473      &rtems_shell_RTRACE_Command,
     474    #endif
     475
     476    /*
    467477     *  Network related commands
    468478     */
  • cpukit/preinstall.am

    rec8f3cb ra300920d  
    424424PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/captureimpl.h
    425425
     426$(PROJECT_INCLUDE)/rtems/trace/$(dirstamp):
     427        @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/trace
     428        @: > $(PROJECT_INCLUDE)/rtems/trace/$(dirstamp)
     429PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/trace/$(dirstamp)
     430
     431$(PROJECT_INCLUDE)/rtems/trace/rtems-trace-buffer-vars.h: libmisc/capture/rtems-trace-buffer-vars.h $(PROJECT_INCLUDE)/rtems/trace/$(dirstamp)
     432        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/trace/rtems-trace-buffer-vars.h
     433PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/trace/rtems-trace-buffer-vars.h
     434
    426435$(PROJECT_INCLUDE)/rtems/cpuuse.h: libmisc/cpuuse/cpuuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    427436        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cpuuse.h
Note: See TracChangeset for help on using the changeset viewer.