The userland change to the utrace(2) call.

This commit is contained in:
Poul-Henning Kamp 1996-09-19 19:50:17 +00:00
parent e6c4b9ba32
commit 09ac2438bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18399
4 changed files with 11 additions and 4 deletions

View File

@ -114,6 +114,10 @@ trace
.Tn I/O
.It Cm s
trace signal processing
.It Cm u
userland traces
.It Cm w
context switches
.El
.It Ar command
Execute

View File

@ -42,7 +42,7 @@ static char copyright[] =
static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$Id: ktrace.c,v 1.4 1996/06/19 09:56:29 jraynard Exp $";
"$Id: ktrace.c,v 1.5 1996/06/30 09:40:44 joerg Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -177,7 +177,7 @@ void
usage()
{
(void)fprintf(stderr,
"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [acgn]\n\tktrace [-aCcid] [-f trfile] [-t [acgn] command\n");
"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cnisuv]\n\tktrace [-aCcid] [-f trfile] [-t [cnisuw] command\n");
exit(1);
}

View File

@ -34,7 +34,7 @@
*/
#define DEF_POINTS (KTRFAC_SYSCALL | KTRFAC_SYSRET | KTRFAC_NAMEI | \
KTRFAC_GENIO | KTRFAC_PSIG)
KTRFAC_GENIO | KTRFAC_PSIG | KTRFAC_USER)
#define ALL_POINTS (DEF_POINTS | KTRFAC_CSW)

View File

@ -36,7 +36,7 @@
static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$Id$";
"$Id: subr.c,v 1.2 1996/06/19 09:56:30 jraynard Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -69,6 +69,9 @@ getpoints(s)
case 's':
facs |= KTRFAC_PSIG;
break;
case 'u':
facs |= KTRFAC_USER;
break;
case 'w':
facs |= KTRFAC_CSW;
break;