add comments for trace_enter()/trace_exit(); particularily comment

expected value of 'code'
This commit is contained in:
jdolecek 2002-11-11 10:43:54 +00:00
parent 725002971f
commit c771eafacf

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_subr.c,v 1.91 2002/09/27 18:37:43 drochner Exp $ */
/* $NetBSD: kern_subr.c,v 1.92 2002/11/11 10:43:54 jdolecek Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.91 2002/09/27 18:37:43 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.92 2002/11/11 10:43:54 jdolecek Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@ -1227,6 +1227,13 @@ format_bytes(buf, len, bytes)
return (rv);
}
/*
* Start trace of particular system call. If process is being traced,
* this routine is called by MD syscall dispatch code just before
* a system call is actually executed.
* MD caller guarantees the passed 'code' is within the supported
* system call number range for emulation the process runs under.
*/
int
trace_enter(struct proc *p, register_t code, void *args, register_t rval[])
{
@ -1246,6 +1253,13 @@ trace_enter(struct proc *p, register_t code, void *args, register_t rval[])
return 0;
}
/*
* End trace of particular system call. If process is being traced,
* this routine is called by MD syscall dispatch code just after
* a system call finishes.
* MD caller guarantees the passed 'code' is within the supported
* system call number range for emulation the process runs under.
*/
void
trace_exit(struct proc *p, register_t code, void *args, register_t rval[],
int error)