Skip to content

Instantly share code, notes, and snippets.

@darknoon
Created September 26, 2013 02:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darknoon/6709183 to your computer and use it in GitHub Desktop.
Save darknoon/6709183 to your computer and use it in GitHub Desktop.
#ifndef DBG_MACH_CHUD
#define DBG_MACH_CHUD 0x0A
#define DBG_FUNC_START 1
#define DBG_FUNC_END 2
#define DBG_APPS 33
#define KDBG_CODE(Class, SubClass, code) (((Class & 0xff) << 24) | ((SubClass & 0xff) << 16) | ((code & 0x3fff) << 2))
#define APPSDBG_CODE(SubClass,code) KDBG_CODE(DBG_APPS, SubClass, code)
#endif
@robertmryan
Copy link

FYI, I hunted around for a definition for SYS_kdebug_trace and finally found the following.

#define SYS_kdebug_trace 180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment