John Baldwin
0b976534de
Clarify that the -c argument clears the list of tracepoints specified by
...
-t (it does not clear all tracepoints).
Submitted by: jmg, Eric van Gyzen <eric@vangyzen.net>
MFC after: 1 week
2014-08-26 21:21:57 +00:00
John Baldwin
5c506fb0b4
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
2012-05-31 14:46:02 +00:00
John Baldwin
35818d2e94
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
2012-04-05 17:13:14 +00:00
Dag-Erling Smørgrav
99afdfe58d
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
2011-10-18 08:26:12 +00:00
Dag-Erling Smørgrav
c601ad8eeb
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).
2011-10-11 20:37:10 +00:00
Kevin Lo
aa7e4bb466
Remove duplicated header files
2011-06-24 07:18:44 +00:00
Dmitry Chagin
7144d36fab
Teach kdump to understand sv_flags records in the trace files.
...
MFC after: 1 Month.
2011-02-25 22:07:23 +00:00
Joel Dahl
da52b4caaf
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
2010-12-11 08:32:16 +00:00
John Baldwin
d4523bd9cb
- Sort list of trace points.
...
- Note that 'y' (sysctl requests) is in the default set of trace points.
MFC after: 3 days
2010-07-14 18:28:46 +00:00
Ed Schouten
b7946da96b
Build usr.bin/ with WARNS=6 by default.
...
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
Xin LI
821df508e8
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
Xin LI
6f2d322192
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
John Baldwin
a56be37e68
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
2009-03-11 21:48:36 +00:00
Ruslan Ermilov
da647ae946
Spell -t option's argument by name.
2008-04-02 09:41:29 +00:00
Dag-Erling Smørgrav
6567d14f5e
Fix usage string.
2008-03-20 09:53:45 +00:00
Dag-Erling Smørgrav
60e15db992
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
2008-02-23 01:01:49 +00:00
Mike Pritchard
975f2e5cf7
Allow the -c -f file options to actually execute.
2007-02-13 00:22:29 +00:00
Tom Rhodes
df449c3551
Add needed hyphens, note the KTRACE kernel option, bump doc date.
...
PR: 85186
Submitted by: garys
2006-11-06 15:17:50 +00:00
Robert Watson
9e92c8d486
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
2006-03-14 19:32:03 +00:00
Ruslan Ermilov
6c7216df78
Sort sections.
2005-01-18 13:43:56 +00:00
David Schultz
6004362e66
Don't include sys/user.h merely for its side-effect of recursively
...
including other headers.
2004-11-27 06:51:39 +00:00
Philippe Charnier
65b386f1aa
Do not start err(3) strings with uppercase nor dot terminate them.
...
Standard sccsid[] area according to style(9).
2003-02-05 14:25:43 +00:00
David E. O'Brien
e026a48c34
Consistently use FBSDID
2002-06-30 05:25:07 +00:00
Mark Murray
01588bbd2b
Warnings fix; ANSIfy, constify, mark unused function parameter(s).
2002-04-28 13:00:16 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
David Malone
ebdb213b72
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.
2002-04-01 10:49:11 +00:00
Warner Losh
f1bb2cd2aa
remove __P
2002-03-22 01:22:50 +00:00
Giorgos Keramidas
943c2638bf
Consistently refer to the trace file of ktrace as 'trfile'.
...
PR: docs/35361
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
2002-03-03 01:12:25 +00:00
Peter Pentchev
fef3edecbb
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
2002-02-11 09:03:34 +00:00
Bruce Evans
6eabd84580
Compensate for "Compensate for header dethreading" by backing it out.
2001-10-10 17:48:44 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
33f6985557
mdoc(7) police: add missing .Ar in SYNOPSIS.
2001-07-05 06:11:10 +00:00
Mike Heffner
24b9685ca9
Sync manpage and usage. Also fix bug that would always interpret a -c as a
...
process clear.
PR: bin/15456
MFC after: 2 weeks
2001-06-27 02:52:57 +00:00
Mark Murray
6e547eabb8
Compensate for header dethreading.
2001-05-01 08:46:02 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
Warner Losh
62f882d620
getopt and friends are declared in <unistd.h>
...
getopt returns -1 not EOF.
2000-09-04 06:09:54 +00:00
Kris Kennaway
0c4d24a78f
Don't call err() with no format string.
2000-07-10 09:14:15 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Wolfram Schneider
4be1354301
Delete truss manpage link. We have now a real truss command.
1997-12-06 23:40:13 +00:00
Philippe Charnier
397e68b2a4
Use .Nm ktrace instead of .Nm in SYNOPSIS section: otherwise, a newline is
...
missing.
1997-11-24 07:23:59 +00:00
Philippe Charnier
4a744ef67d
Cosmetic in usage string.
1997-07-17 06:45:22 +00:00
John-Mark Gurney
93e0d62d1c
`appears'' ->
`appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)
...
add missing Id's
other minor clean ups
1997-04-27 08:45:46 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Joerg Wunsch
9bedbe6c7d
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
1997-03-15 10:39:12 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
Jordan K. Hubbard
1130b656e5
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.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
3f3a3c4501
Add manual page symlinks
...
trace.1 -> ktrace.1 and
truss.1 -> ktrace.1
for SunOS emigrants.
1996-12-08 16:56:40 +00:00
Poul-Henning Kamp
09ac2438bf
The userland change to the utrace(2) call.
1996-09-19 19:50:17 +00:00
Peter Wemm
16964dae41
s/trace -C/ktrace -C/
...
Pointed out by: zgabor@code.hu (Zahemszky Gabor) PR#1486
1996-08-10 09:05:17 +00:00