VirtualBox

Changeset 71492 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Mar 24, 2018 10:23:10 PM (7 years ago)
Author:
vboxsync
Message:

Runtime: Introduce RTTraceLog* API for creating and parsing binary trace log files. The format and API is designed with the

following goals in mind:

  1. Allow streaming the data via network or write it to a file.
  2. Embed the structure of the traced data into the log allowing arbitrary structured data to be embedded without requiring adaptions on the parsing side.
  3. Allow grouping of traced data belonging together to easily follow chains of events later on.
  4. Trace events can have a parent assigned to check where an event originally originated from.
  5. Low overhead on the creation side.

The current state implements the absolute basics on the creation and parsing side and is work in progress. This will
be used later on in the device emulation fuzzer to capture device and examine device states and changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r69893 r71492  
    55
    66/*
    7  * Copyright (C) 2007-2017 Oracle Corporation
     7 * Copyright (C) 2007-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    217217/** Magic value of RTTRACEBUFINT::u32Magic after the final release. */
    218218#define RTTRACEBUF_MAGIC_DEAD           UINT32_C(0x19500121)
     219/** The value of RTTRACELOGRDRINT::u32Magic. (John Michael Scalzi) */
     220#define RTTRACELOGRDR_MAGIC             UINT32_C(0x19690510)
     221/** The value of RTTRACELOGRDRINT::u32Magic after RTTraceLogRdrDestroy(). */
     222#define RTTRACELOGRDR_MAGIC_DEAD        (~RTTRACELOGRDR_MAGIC)
     223/** The value of RTTRACELOGWRINT::u32Magic. (Herbert George Wells) */
     224#define RTTRACELOGWR_MAGIC              UINT32_C(0x18660921)
     225/** The value of RTTRACELOGWRINT::u32Magic after RTTraceLogWrDestroy(). */
     226#define RTTRACELOGWR_MAGIC_DEAD         UINT32_C(0x19460813)
    219227/** The value of RTVFSOBJINTERNAL::u32Magic. (Yasunari Kawabata) */
    220228#define RTVFSOBJ_MAGIC                  UINT32_C(0x18990614)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette