diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-02-16 16:40:43 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-02-16 16:40:43 +0000 |
commit | 8c0f93bb9b66766fdbcc5b8376b17f0f904f31ec (patch) | |
tree | e8f1cb5e51cc135342198a8a62b8133cddb41a5d /sys/i386/linux/linux.h | |
parent | e5e0087f912c6d7f6147cb560042f80ca5372af1 (diff) | |
download | FreeBSD-src-8c0f93bb9b66766fdbcc5b8376b17f0f904f31ec.zip FreeBSD-src-8c0f93bb9b66766fdbcc5b8376b17f0f904f31ec.tar.gz |
Allow debugging output to be controlled on a per-syscall granularity.
Also clean up debugging output in a slightly more uniform fashion.
The default behavior remains the same (all debugging output is turned on)
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r-- | sys/i386/linux/linux.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 88371d4..fab3e29 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -35,6 +35,14 @@ #include <i386/linux/linux_syscall.h> +/* + * debugging support + */ +extern u_char linux_debug_map[]; +#define ldebug(name) isclr(linux_debug_map, LINUX_SYS_linux_ ## name) +#define ARGS(nm, fmt) "Linux-emul(%ld): "#nm"("fmt")\n", (long)p->p_pid +#define LMSG(fmt) "Linux-emul(%ld): "fmt"\n", (long)p->p_pid + #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_LINUX); #endif |