如何在Mac OS 10.13中显示IOKit日志记录?

时间:2017-10-26 23:28:49

标签: macos iokit kernel-extension

我在nvram中设置了boot-args属性,以便打开IOKit日志记录。例如,为了记录驱动程序匹配,启动和探测调用,我按如下方式设置nvram:

nvram boot-args =" io = 0x16" (请记住关闭SIP,否则您将无法设置nvram值。)

我在详细模式下启动时看到日志消息滚动但在Mac启动后无法找到它们。

这些消息在哪里写,我如何查看它们?

以下是IOKit日志记录的值:

enum {
// loggage
    kIOLogAttach    = 0x00000001ULL,
    kIOLogProbe     = 0x00000002ULL,
    kIOLogStart     = 0x00000004ULL,
    kIOLogRegister  = 0x00000008ULL,
    kIOLogMatch     = 0x00000010ULL,
    kIOLogConfig    = 0x00000020ULL,
    kIOLogYield     = 0x00000040ULL,
    kIOLogPower     = 0x00000080ULL,
    kIOLogMapping   = 0x00000100ULL,
    kIOLogCatalogue     = 0x00000200ULL,
    kIOLogTracePower    = 0x00000400ULL,

    kIOLogServiceTree   = 0x00001000ULL,
    kIOLogDTree     = 0x00002000ULL,
    kIOLogMemory    = 0x00004000ULL,
    // available    = 0x00008000ULL,
    kOSLogRegistryMods  = 0x00010000ULL,    // Log attempts to modify registry collections

// debug aids - change behaviour
    kIONoFreeObjects    = 0x00100000ULL,
    kIOLogSynchronous   = 0x00200000ULL,    // IOLog completes synchrounsly
};

0 个答案:

没有答案