diff options
author | phk <phk@FreeBSD.org> | 1996-09-19 19:50:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-09-19 19:50:17 +0000 |
commit | fcdb3184db6982f9de76c4a7dd82b3460be3f789 (patch) | |
tree | d4455e970d1d9553458d1db3c8a2a244082c7e07 /usr.bin/ktrace | |
parent | bb49c895b91f1c1124b1782797be82879bb6136c (diff) | |
download | FreeBSD-src-fcdb3184db6982f9de76c4a7dd82b3460be3f789.zip FreeBSD-src-fcdb3184db6982f9de76c4a7dd82b3460be3f789.tar.gz |
The userland change to the utrace(2) call.
Diffstat (limited to 'usr.bin/ktrace')
-rw-r--r-- | usr.bin/ktrace/ktrace.1 | 4 | ||||
-rw-r--r-- | usr.bin/ktrace/ktrace.c | 4 | ||||
-rw-r--r-- | usr.bin/ktrace/ktrace.h | 2 | ||||
-rw-r--r-- | usr.bin/ktrace/subr.c | 5 |
4 files changed, 11 insertions, 4 deletions
diff --git a/usr.bin/ktrace/ktrace.1 b/usr.bin/ktrace/ktrace.1 index acd9845..3fe47e4 100644 --- a/usr.bin/ktrace/ktrace.1 +++ b/usr.bin/ktrace/ktrace.1 @@ -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 diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index 8a9b08a..5b4da26 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -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); } diff --git a/usr.bin/ktrace/ktrace.h b/usr.bin/ktrace/ktrace.h index 595b8bc..9f6431a 100644 --- a/usr.bin/ktrace/ktrace.h +++ b/usr.bin/ktrace/ktrace.h @@ -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) diff --git a/usr.bin/ktrace/subr.c b/usr.bin/ktrace/subr.c index 5698b65..a7d0507 100644 --- a/usr.bin/ktrace/subr.c +++ b/usr.bin/ktrace/subr.c @@ -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; |