CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: wiz Date: Wed Nov 18 20:00:15 UTC 2020 Modified Files: src/usr.bin/ktrace: ktrace.1 Log Message: Sort options. Prompted by pgoyette. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/usr.bin/ktrace/ktrace.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.1 diff -u src/usr.bin/ktrace/ktrace.1:1.45 src/usr.bin/ktrace/ktrace.1:1.46 --- src/usr.bin/ktrace/ktrace.1:1.45 Sun Mar 29 17:50:23 2020 +++ src/usr.bin/ktrace/ktrace.1 Wed Nov 18 20:00:15 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: ktrace.1,v 1.45 2020/03/29 17:50:23 sevan Exp $ +.\" $NetBSD: ktrace.1,v 1.46 2020/11/18 20:00:15 wiz Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -110,6 +110,10 @@ Clear the trace points associated with t .It Fl d Descendants; perform the operation for all current children of the designated processes. +.It Fl e Ar emulation +If an emulation of a process is unknown, +interpret system call maps assuming the named emulation instead of +default "netbsd". .It Fl f Ar trfile Log trace records to .Ar trfile @@ -160,10 +164,10 @@ readable format to standard out. Enable (disable) tracing on the indicated process id (only one .Fl p flag is permitted). -.It Fl s -Write to the trace file with synchronized I/O. .It Fl R Display relative time stamps to output. +.It Fl s +Write to the trace file with synchronized I/O. .It Fl T Same as the .Fl R @@ -205,14 +209,6 @@ trace the default set of trace points (c .It Cm - do not trace following trace points .El -.It Fl e Ar emulation -If an emulation of a process is unknown, -interpret system call maps assuming the named emulation instead of -default "netbsd". -.It Ar command -Execute -.Ar command -with the specified trace flags. .It Fl v Ar version Determines the .Ar version @@ -220,6 +216,10 @@ of the file generated. Version 0 is the compatible ktrace format, and version 1 is the new format with lwp IDs and nanosecond (instead of microsecond) timestamps. +.It Ar command +Execute +.Ar command +with the specified trace flags. .El .Pp The
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: sevan Date: Sun Mar 29 17:50:23 UTC 2020 Modified Files: src/usr.bin/ktrace: ktrace.1 Log Message: tense To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/usr.bin/ktrace/ktrace.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.1 diff -u src/usr.bin/ktrace/ktrace.1:1.44 src/usr.bin/ktrace/ktrace.1:1.45 --- src/usr.bin/ktrace/ktrace.1:1.44 Sun Mar 29 17:48:18 2020 +++ src/usr.bin/ktrace/ktrace.1 Sun Mar 29 17:50:23 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: ktrace.1,v 1.44 2020/03/29 17:48:18 sevan Exp $ +.\" $NetBSD: ktrace.1,v 1.45 2020/03/29 17:50:23 sevan Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -277,7 +277,7 @@ on process 67 .Sh HISTORY The .Nm -command appears in +command appeared in .Bx 4.4 . The .Nm ktrace
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: sevan Date: Sun Mar 29 17:48:18 UTC 2020 Modified Files: src/usr.bin/ktrace: ktrace.1 Log Message: Document ktrace history To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/usr.bin/ktrace/ktrace.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.1 diff -u src/usr.bin/ktrace/ktrace.1:1.43 src/usr.bin/ktrace/ktrace.1:1.44 --- src/usr.bin/ktrace/ktrace.1:1.43 Thu Jan 8 22:03:42 2015 +++ src/usr.bin/ktrace/ktrace.1 Sun Mar 29 17:48:18 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: ktrace.1,v 1.43 2015/01/08 22:03:42 riastradh Exp $ +.\" $NetBSD: ktrace.1,v 1.44 2020/03/29 17:48:18 sevan Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)ktrace.1 8.1 (Berkeley) 6/6/93 .\" -.Dd January 8, 2015 +.Dd March 29, 2020 .Dt KTRACE 1 .Os .Sh NAME @@ -279,3 +279,7 @@ The .Nm command appears in .Bx 4.4 . +The +.Nm ktrace +command appeared in +.Nx 1.5 .
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: riastradh Date: Thu Jan 8 22:03:42 UTC 2015 Modified Files: src/usr.bin/ktrace: ktrace.1 Log Message: Omit no longer existing l, m from default trace points. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/usr.bin/ktrace/ktrace.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.1 diff -u src/usr.bin/ktrace/ktrace.1:1.42 src/usr.bin/ktrace/ktrace.1:1.43 --- src/usr.bin/ktrace/ktrace.1:1.42 Wed Jun 1 22:17:43 2011 +++ src/usr.bin/ktrace/ktrace.1 Thu Jan 8 22:03:42 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: ktrace.1,v 1.42 2011/06/01 22:17:43 wiz Exp $ +.\" $NetBSD: ktrace.1,v 1.43 2015/01/08 22:03:42 riastradh Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)ktrace.1 8.1 (Berkeley) 6/6/93 .\" -.Dd June 1, 2011 +.Dd January 8, 2015 .Dt KTRACE 1 .Os .Sh NAME @@ -201,7 +201,7 @@ trace exec environment .It Cm w trace context switches .It Cm + -trace the default set of trace points (c, e, i, l, m, n, s, u) +trace the default set of trace points (c, e, i, n, s, u) .It Cm - do not trace following trace points .El
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: christos Date: Thu Jan 24 17:47:59 UTC 2013 Modified Files: src/usr.bin/ktrace: ktrace.c Log Message: use O_CLOEXEC. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/usr.bin/ktrace/ktrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.c diff -u src/usr.bin/ktrace/ktrace.c:1.45 src/usr.bin/ktrace/ktrace.c:1.46 --- src/usr.bin/ktrace/ktrace.c:1.45 Fri Sep 16 11:39:26 2011 +++ src/usr.bin/ktrace/ktrace.c Thu Jan 24 12:47:58 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ktrace.c,v 1.45 2011/09/16 15:39:26 joerg Exp $ */ +/* $NetBSD: ktrace.c,v 1.46 2013/01/24 17:47:58 christos Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19 #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: ktrace.c,v 1.45 2011/09/16 15:39:26 joerg Exp $"); +__RCSID("$NetBSD: ktrace.c,v 1.46 2013/01/24 17:47:58 christos Exp $"); #endif #endif /* not lint */ @@ -70,7 +70,6 @@ static int rpid(char *); __dead static void usage(void); static int do_ktrace(const char *, int, int, int, int, int); __dead static void no_ktrace(int); -static void fset(int fd, int flag); static void fclear(int fd, int flag); #ifdef KTRUSS @@ -270,17 +269,6 @@ rpid(char *p) } static void -fset(int fd, int flag) -{ - int oflag = fcntl(fd, F_GETFL, 0); - - if (oflag == -1) - err(EXIT_FAILURE, "Cannot get file flags"); - if (fcntl(fd, F_SETFL, oflag | flag) == -1) - err(EXIT_FAILURE, "Cannot set file flags"); -} - -static void fclear(int fd, int flag) { int oflag = fcntl(fd, F_GETFL, 0); @@ -340,11 +328,9 @@ do_ktrace(const char *tracefile, int ver (!tracefile || strcmp(tracefile, "-") == 0)) { int pi[2], dofork; - if (pipe(pi) < 0) + if (pipe2(pi, O_CLOEXEC) == -1) err(EXIT_FAILURE, "pipe(2)"); - fset(pi[0], FD_CLOEXEC); - fset(pi[1], FD_CLOEXEC); dofork = (pid == getpid()); if (dofork) {
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: wiz Date: Wed Jun 1 22:17:43 UTC 2011 Modified Files: src/usr.bin/ktrace: ktrace.1 Log Message: Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.bin/ktrace/ktrace.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.1 diff -u src/usr.bin/ktrace/ktrace.1:1.41 src/usr.bin/ktrace/ktrace.1:1.42 --- src/usr.bin/ktrace/ktrace.1:1.41 Wed Jun 1 21:28:33 2011 +++ src/usr.bin/ktrace/ktrace.1 Wed Jun 1 22:17:43 2011 @@ -1,4 +1,4 @@ -.\" $NetBSD: ktrace.1,v 1.41 2011/06/01 21:28:33 alnsn Exp $ +.\" $NetBSD: ktrace.1,v 1.42 2011/06/01 22:17:43 wiz Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)ktrace.1 8.1 (Berkeley) 6/6/93 .\" -.Dd April 27, 2011 +.Dd June 1, 2011 .Dt KTRACE 1 .Os .Sh NAME
CVS commit: src/usr.bin/ktrace
Module Name:src Committed By: yamt Date: Sat Feb 5 15:22:17 UTC 2011 Modified Files: src/usr.bin/ktrace: ktrace.c Log Message: update usage To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/usr.bin/ktrace/ktrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/ktrace/ktrace.c diff -u src/usr.bin/ktrace/ktrace.c:1.43 src/usr.bin/ktrace/ktrace.c:1.44 --- src/usr.bin/ktrace/ktrace.c:1.43 Sun Jan 11 03:05:23 2009 +++ src/usr.bin/ktrace/ktrace.c Sat Feb 5 15:22:17 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ktrace.c,v 1.43 2009/01/11 03:05:23 christos Exp $ */ +/* $NetBSD: ktrace.c,v 1.44 2011/02/05 15:22:17 yamt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: ktrace.c,v 1.43 2009/01/11 03:05:23 christos Exp $"); +__RCSID("$NetBSD: ktrace.c,v 1.44 2011/02/05 15:22:17 yamt Exp $"); #endif #endif /* not lint */ @@ -296,7 +296,7 @@ usage(void) { -#define TRPOINTS "[AaceilmnsUuvw+-]" +#define TRPOINTS "[AaceilmnSsuvw+-]" #ifdef KTRUSS (void)fprintf(stderr, "usage:\t%s " "[-aCcdilnRT] [-e emulation] [-f infile] [-g pgrp] "