VirtualBox

Changeset 87648 in vbox


Ignore:
Timestamp:
Feb 8, 2021 10:21:17 PM (4 years ago)
Author:
vboxsync
Message:

SUP/linux: Quick hack for getting some VMMR0.r0 info out of 'perf report'. [scm fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/LnxPerfHack.cpp

    r87644 r87648  
    5252#define LNXPERF_RECORD_MISC_CPUMODE_UNKNOWN     UINT16_C(0x0000)
    5353#define LNXPERF_RECORD_MISC_KERNEL              UINT16_C(0x0001)
    54 #define LNXPERF_RECORD_MISC_USER                UINT16_C(0x0002)
    55 #define LNXPERF_RECORD_MISC_HYPERVISOR          UINT16_C(0x0003)
    56 #define LNXPERF_RECORD_MISC_GUEST_KERNEL        UINT16_C(0x0004)
    57 #define LNXPERF_RECORD_MISC_GUEST_USER          UINT16_C(0x0005)
     54#define LNXPERF_RECORD_MISC_USER                UINT16_C(0x0002)
     55#define LNXPERF_RECORD_MISC_HYPERVISOR          UINT16_C(0x0003)
     56#define LNXPERF_RECORD_MISC_GUEST_KERNEL        UINT16_C(0x0004)
     57#define LNXPERF_RECORD_MISC_GUEST_USER          UINT16_C(0x0005)
    5858
    5959
     
    6464typedef struct LNXPERFFILEHDR
    6565{
    66     uint64_t        uMagic;     /**< LNXPERFILEHDR_MAGIC */
     66    uint64_t        uMagic;     /**< LNXPERFILEHDR_MAGIC */
    6767    uint64_t        cbHdr;
    6868    uint64_t        cbAttr;
    6969    struct LNXPERFFILESECTION
    7070    {
    71         uint64_t    off, cb;
     71        uint64_t    off, cb;
    7272    }               Attrs, Data, EventTypes;
    73     uint64_t        bmAddsFeatures[256/64];
     73    uint64_t        bmAddsFeatures[256/64];
    7474} LNXPERFFILEHDR;
    7575typedef LNXPERFFILEHDR *PLNXPERFFILEHDR;
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