Page 1 of 1

How to get IOLogs?

PostPosted: Thu Nov 17, 2016 1:10 pm
by chengyang
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?

Re: How to get IOLogs?

PostPosted: Thu Nov 17, 2016 3:20 pm
by morpheus
sysctl -w debug.iokit will do the trick (jailbroken, as root)

Re: How to get IOLogs?

PostPosted: Fri Nov 18, 2016 2:32 am
by chengyang
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...

Re: How to get IOLogs?

PostPosted: Fri Nov 18, 2016 3:14 am
by chengyang
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?...

Re: How to get IOLogs?

PostPosted: Wed Dec 14, 2016 5:40 am
by backendbilly
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.