How to get IOLogs?

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

How to get IOLogs?

Postby chengyang » Thu Nov 17, 2016 1:10 pm

As we know, there are lots of logs logged by IOLog function in IOKit.
But this seems only works in debug mode.

How can we open that and find the IOLogs?
chengyang
 
Posts: 14
Joined: Wed Aug 03, 2016 7:44 am

Re: How to get IOLogs?

Postby morpheus » Thu Nov 17, 2016 3:20 pm

sysctl -w debug.iokit will do the trick (jailbroken, as root)
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm

Re: How to get IOLogs?

Postby chengyang » Fri Nov 18, 2016 2:32 am

Administrator wrote:sysctl -w debug.iokit will do the trick (jailbroken, as root)


Maybe It open some settings, but I can't see any kernel IOKit logs as well..What I want to do is to debug the original kexts such as IOHIDFamilys..

I've tried some other ways such as sysctl -w debug.kextlog=0xff4, It's said that the log can be found at /var/log/system.log, but...
chengyang
 
Posts: 14
Joined: Wed Aug 03, 2016 7:44 am

Re: How to get IOLogs?

Postby chengyang » Fri Nov 18, 2016 3:14 am

I've checked the system.log again.
In fact there are little kext logs logged by IOLog such as IOAudioStream.

So maybe some logs are missing because apple remove some IOLog for the release version I guess?...
chengyang
 
Posts: 14
Joined: Wed Aug 03, 2016 7:44 am

Re: How to get IOLogs?

Postby backendbilly » Wed Dec 14, 2016 5:40 am

Administrator wrote:sysctl -w debug.iokit will do the trick (jailbroken, as root)


J, I believe this can only be done if the kernel is patchable since this property is read only by default.
backendbilly
Site Admin
 
Posts: 132
Joined: Fri May 29, 2015 5:58 pm


Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 1 guest

cron