1/* 2 * Simple kernel trace 3 * $Id: ktrace.h,v 1.1.1.1 2008/10/15 03:29:27 james26_jang Exp $ 4 */ 5 6#ifndef _LINUX_KTRACE_H 7#define _LINUX_KTRACE_H 8 9#include <linux/config.h> 10 11#ifdef CONFIG_KTRACE 12 13/* kernel subsystems */ 14#define KT_SYSCALL 0x1 15#define KT_TRAP 0x2 16#define KT_PROC 0x4 17#define KT_IRQ 0x8 18#define KT_MM 0x10 19#define KT_SOCK 0x20 20#define KT_NET 0x40 21#define KT_FS 0x80 22 23extern int ktracectl; 24extern void _ktrace(char *fmt, unsigned long a1, unsigned long a2); 25 26#define ktrace(subsys, fmt, a1, a2) if ((subsys) & ktracectl) _ktrace(fmt, (unsigned long)a1, (unsigned long)a2) 27 28#else 29#define ktrace(subsys, fmt, a1, a2) 30#endif /* CONFIG_KTRACE */ 31 32#endif /* _LINUX_KTRACE_H */ 33