History log of /freebsd-10.0-release/usr.bin/ktrace/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


236357 31-May-2012 jhb

Don't trace or dump page fault records in the default set of tracepoints
as they can be quite noisy.

Requested by: Peter Jeremy
MFC after: 3 days


233925 05-Apr-2012 jhb

Add new ktrace records for the start and end of VM faults. This gives
a pair of records similar to syscall entry and return that a user can
use to determine how long page faults take. The new ktrace records are
enabled via the 'p' trace type, and are enabled in the default set of
trace points.

Reviewed by: kib
MFC after: 2 weeks


226504 18-Oct-2011 des

Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking the
way in which it handles the -C, -c, -g and -p options.

MFC after: 3 weeks


226269 11-Oct-2011 des

Add a new trace point, KTRFAC_CAPFAIL, which traces capability check
failures. It is included in the default set for ktrace(1) and kdump(1).


223493 24-Jun-2011 kevlo

Remove duplicated header files


219043 25-Feb-2011 dchagin

Teach kdump to understand sv_flags records in the trace files.

MFC after: 1 Month.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


210068 14-Jul-2010 jhb

- Sort list of trace points.
- Note that 'y' (sysctl requests) is in the default set of trace points.

MFC after: 3 days


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


189707 11-Mar-2009 jhb

Add a new type of KTRACE record for sysctl(3) invocations. It uses the
internal sysctl_sysctl_name() handler to map the MIB array to a string
name and logs this name in the trace log. This can be useful to see
exactly which sysctls a thread is invoking.

MFC after: 1 month


177856 02-Apr-2008 ru

Spell -t option's argument by name.


177446 20-Mar-2008 des

Fix usage string.


176471 23-Feb-2008 des

This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payload
consists of the null-terminated name and the contents of any structure
you wish to record. A new ktrstruct() function constructs and emits a
KTR_STRUCT record. It is accompanied by convenience macros for struct
stat and struct sockaddr.

In kdump(1), KTR_STRUCT records are handled by a dispatcher function
that runs stringent sanity checks on its contents before handing it
over to individual decoding funtions for each type of structure.
Currently supported structures are struct stat and struct sockaddr for
the AF_INET, AF_INET6 and AF_UNIX families; support for AF_APPLETALK
and AF_IPX is present but disabled, as I am unable to test it properly.

Since 's' was already taken, the letter 't' is used by ktrace(1) to
enable KTR_STRUCT trace points, and in kdump(1) to enable their
decoding.

Derived from patches by Andrew Li <andrew2.li@citi.com>.

PR: kern/117836
MFC after: 3 weeks


166679 13-Feb-2007 mpp

Allow the -c -f file options to actually execute.


164045 06-Nov-2006 trhodes

Add needed hyphens, note the KTRACE kernel option, bump doc date.

PR: 85186
Submitted by: garys


156715 14-Mar-2006 rwatson

When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall
if the target is a fifo. After opening a trace file, check that it is a
regular file, and if not, return an error.

MFC after: 3 days
Reported by: kris
PR: 94278


140420 18-Jan-2005 ru

Sort sections.


138129 27-Nov-2004 das

Don't include sys/user.h merely for its side-effect of recursively
including other headers.


110401 05-Feb-2003 charnier

Do not start err(3) strings with uppercase nor dot terminate them.
Standard sccsid[] area according to style(9).


99112 30-Jun-2002 obrien

Consistently use FBSDID


95649 28-Apr-2002 markm

Warnings fix; ANSIfy, constify, mark unused function parameter(s).


95124 20-Apr-2002 charnier

Use `The .Nm utility'


93523 01-Apr-2002 dwmalone

1) Clean up vendor and ID strings.
2) include stdlib.h for atoi.
3) staticise and constify.
4) add some missing prototypes.
5) add some parens to keep gcc happy.


92920 22-Mar-2002 imp

remove __P


91572 03-Mar-2002 keramida

Consistently refer to the trace file of ktrace as 'trfile'.

PR: docs/35361
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>


90525 11-Feb-2002 roam

Describe the '+' option in the -t trace string.

PR: 34668
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reviewed by: dd
Approved by: dd
MFC after: 1 week


84768 10-Oct-2001 bde

Compensate for "Compensate for header dethreading" by backing it out.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79272 05-Jul-2001 ru

mdoc(7) police: add missing .Ar in SYNOPSIS.


78864 27-Jun-2001 mikeh

Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear.

PR: bin/15456
MFC after: 2 weeks


76169 01-May-2001 markm

Compensate for header dethreading.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


62894 10-Jul-2000 kris

Don't call err() with no format string.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


31586 06-Dec-1997 wosch

Delete truss manpage link. We have now a real truss command.


31381 24-Nov-1997 charnier

Use .Nm ktrace instead of .Nm in SYNOPSIS section: otherwise, a newline is
missing.


27472 17-Jul-1997 charnier

Cosmetic in usage string.


25189 27-Apr-1997 jmg

``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)

add missing Id's
other minor clean ups


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23894 15-Mar-1997 joerg

Fix a security problem where the ktrace.out file could have been written
over a file owned by someone else.

Pointed out by: wosch
Reviewed by: sef, imp, proff@suburbia.net, bde


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20220 08-Dec-1996 wosch

Add manual page symlinks
trace.1 -> ktrace.1 and
truss.1 -> ktrace.1
for SunOS emigrants.


18399 19-Sep-1996 phk

The userland change to the utrace(2) call.


17492 10-Aug-1996 peter

s/trace -C/ktrace -C/

Pointed out by: zgabor@code.hu (Zahemszky Gabor) PR#1486


16844 30-Jun-1996 joerg

Do always create ktrace.out with mode 0600, to prevent it from
accidentally compromising information confidential to the user running
ktrace.


16579 22-Jun-1996 jraynard

Document the fact that it only works if the trace record is a regular file.


16509 19-Jun-1996 jraynard

Merged in 4.4Lite2 versions, added $Id$'s. The ktrace changes should
fix the garbage error messages printed out under certain circumstances.


8874 30-May-1995 rgrimes

Remove trailing whitespace.


2354 28-Aug-1994 ats

Reviewed by:
Submitted by:
Put in a signal handler to catch the SIGSYS signal that indicates that
ktrace was not built into the kernel and prevent ktrace to core dump
somewhere.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.