| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Approved by: David Kirchner <dpk@dpk.net> (initial author)
Requested by: Otto Moerbeek <otto@drijf.net>
MFC after: 1 week
|
|
|
|
|
|
| |
PR: bin/157663
Submitted by: jason wright <jason@thought.net>
MFC after: 10 days
|
|
|
|
|
|
|
| |
This information is available as of kernel r220740. Trace files from older
kernels will always have 0.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
Fix bug introduced in my previous commit: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().
Suggested by: jhb
MFC after: 1 Month.
|
|
|
|
| |
MFC after: 1 Month.
|
|
|
|
| |
MFC after: 1 Month.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PR: bin/152781
Submitted by: Anton Yuzhaninov <citrin citrin ru>
MFC after: 2 weeks
|
|
|
|
|
|
| |
PR: docs/151854
Submitted by: Stephen Veiss stephen of brokenbottle net
MFC after: 3 days
|
|
|
|
|
|
| |
Submitted by: Mikhail <hidden.node@gmail.com>
PR: 149295
MFC-after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bitwise parameters (e.g. mmap), print the syscall parameter value first.
The resulting output looks like the %b specifier of printf(9).
Before:
mmap(0,0x8000,PROT_READ|PROT_WRITE,...
After:
mmap(0,0x8000,0x3<PROT_READ|PROT_WRITE>,...
Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
Idea from: freebsd-arch/2006-April/005116.html
|
|
|
|
| |
Also remove some local patches to diff(1) which are now unneeded.
|
|
|
|
|
|
|
|
|
|
| |
sockaddr structures. As such, we have top copy the data structure
into a local buffer before we can reference it, otherwise we have
unaligned references (these are fixed up automatically on some CPUs,
but not on others). We do this unconditionally to make the code
easier to read and understand.
Submitted by: Grzegorz Bernacki
|
|
|
|
|
|
|
|
|
| |
printf.
- Cast the system call return value to long and use %ld in a printf in
ktrsysret().
PR: bin/123774
MFC after: 2 weeks
|
|
|
|
| |
Also add some missing $FreeBSD$ to keep svn happy.
|
|
|
|
|
|
|
|
| |
in how malloc_init is logged from (0, 0, 0) to (-1, 0, 0).
While we're here, simplify the logic.
Reviewed by: jhb (earlier version)
|
|
|
|
|
|
|
|
|
|
|
| |
ktrsyscall(). print_number() does decrement the number of arguments,
leading to infinite loops for negative values.
Reported by: Patrick Lamaiziere <patpr at davenulle dot org>,
Jonathan Pascal <jkpyvxmzsa at mailinator dot com>
Submitted by: jh
PR: bin/120055, kern/119564
MFC: 1 week
|
|
|
|
|
|
|
| |
vimage API in r195741.
Reviewed by: rwatson
Approved by: re (kib)
|
|
|
|
| |
(not waiting for an approval from mentor (julian) due to emergency)
|
|
|
|
| |
drivers/functionality and then some.
|
|
|
|
|
|
|
|
|
| |
I don't entirely like this approach, but it will only be temporarily,
namely until we get rid of COMPAT_43TTY. I do want <sys/ioctl_compat.h>
to cause a compiler error when included, because it's just there for
binary compatibility.
Reported by: Andrzej Tobola <ato iem pw edu pl>
|
|
|
|
|
|
|
| |
At first I allowed ioctl_compat.h to be included, but it just returned
an empty file. I had to do this, to keep kdump happy. I really want to
raise a compiler error when including this header, so now it will just
throw an error if you don't set COMPAT_43TTY.
|
|
|
|
| |
which is generated by mksubr.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
needed by the hal port. This will be removed before 8.0.
Add an exclusion to kdump as some structs will be redefined.
Requested by: marcus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NET_NEEDS_GIANT. netatm has been disconnected from the build for ten
months in HEAD/RELENG_7. Specifics:
- netatm include files
- netatm command line management tools
- libatm
- ATM parts in rescue and sysinstall
- sample configuration files and documents
- kernel support as a module or in NOTES
- netgraph wrapper nodes for netatm
- ctags data for netatm.
- netatm-specific device drivers.
MFC after: 3 weeks
Reviewed by: bz
Discussed with: bms, bz, harti
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
the problem. The correct fix will follow.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
were recently), a simple 'make cleandepend; make depend' is sufficient
to keep the tree buildable after a cvs update when doing incremental
builds.
However, kdump and truss use a script which searches for header files
that define ioctls, and generates C code that includes them. This
script will usually not need updating when a header file is removed,
so the normal dependency mechanism will not realize that it needs to
be re-run. One is therefore left with code that references dead files
but will only be removed by a full 'make clean', which defeats the
purpose of incremental builds.
To work around this, modify the cleandepend target in bsd.dep.mk to
also remove any files listed in a new variable named CLEANDEPFILES,
and modify kdump's and truss's Makefiles accordingly.
MFC after: 2 weeks
|
|
|
|
|
|
| |
it out by adding the usual shebang.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
requests.
MFC after: 3 days
Reported by: Michiel Boland michiel boland.org
|
|
|
|
|
|
| |
some arguments that are parsed (e.g., semctl command names).
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NET_NEEDS_GIANT, which will shortly be removed. This is done in a
away that it may be easily reattached to the build before 7.1 if
appropriate locking is added. Specifics:
- Don't install netatm include files
- Disconnect netatm command line management tools
- Don't build libatm
- Don't include ATM parts in rescue or sysinstall
- Don't install sample configuration files and documents
- Don't build kernel support as a module or in NOTES
- Don't build netgraph wrapper nodes for netatm
This removes the last remaining consumer of NET_NEEDS_GIANT.
Reviewed by: harti
Discussed with: bz, bms
Approved by: re (kensmith)
|
|
|
|
|
| |
MFC after: 1 week
Approved by: re (rwatson: "I like simple patches.")
|
|
|
|
|
|
| |
the new mmap and lseek syscalls.
Approved by: re (kensmith)
|
| |
|
|
|
|
| |
sys/ptrace.h with mksubr.
|
|
|
|
|
|
|
|
| |
activate the traces, set the LD_UTRACE (or LD_32_UTRACE) environment
variable. This also includes code in kdump(8) to parse the traces.
Reviewed by: kan, jdp
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
human-readable format. Note that we report 'realloc(p, 0)' as 'free(p)'
since both cases are encoded the same way and 'free()' is more common
than a realloc() to 0.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
of a socket() call with sockipprotoname() if the first parameter (domain)
is PF_INET or PF_INET6.
Old parsing behavior before this change:
ping6 CALL socket(PF_INET6,SOCK_RAW,0x3a)
New behavior after this change:
ping6 CALL socket(PF_INET6,SOCK_RAW,IPPROTO_ICMPV6)
|
|
|
|
|
|
|
|
|
|
|
| |
of auto_or_type.
The old parsing code would incorrectly decode a socket() call in the
ping6 program as:
CALL socket(PF_PUP|PF_ECMA|PF_APPLETALK|PF_COIP|PF_SIP,SOCK_DGRAM,0)
The new parsing code decodes the same socket() call as:
CALL socket(PF_INET6,SOCK_DGRAM,0)
|
|
|
|
|
|
|
|
| |
However, auto_if_type() uses if/else statements in C instead
of a single switch statement, when mapping an integer value to
a #define. For certain cases where multiple #define constants
alias to a single integer value, auto_if_type() makes things easier
to parse than auto_switch_type().
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it as an enum.
If an SCTP SOCK_SEQPACKET socket was opened, kdump would display this
wrong output:
socket(PF_INET,SOCK_STREAM|SOCK_RDM|SOCK_SEQPACKET,0x84)
instead of this correct output:
socket(PF_INET,SOCK_SEQPACKET,0x84)
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
Treat it accordingly.
PR: bin/101642
MFC after: 3 weeks
|
|
|
|
| |
Submitted by: ru
|
|
|
|
|
| |
Pointed out by: maxim
Approved by: pjd (mentor)
|
|
|
|
|
|
| |
Submitted by: maxim
MFC after: 1 week
Approved by: pjd (mentor)
|