#
267654 |
|
19-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
261952 |
|
15-Feb-2014 |
jilles |
MFC r242482: kdump: Also decode fcntl commands containing underscores and digits.
The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not decoded.
|
#
260208 |
|
02-Jan-2014 |
jhb |
MFC 255708,255711,255731: Extend the support for exempting processes from being killed when swap is exhausted. - Add a new protect(1) command that can be used to set or revoke protection from arbitrary processes. Similar to ktrace it can apply a change to all existing descendants of a process as well as future descendants. - Add a new procctl(2) system call that provides a generic interface for control operations on processes (as opposed to the debugger-specific operations provided by ptrace(2)). procctl(2) uses a combination of idtype_t and an id to identify the set of processes on which to operate similar to wait6(). - Add a PROC_SPROTECT control operation to manage the protection status of a set of processes. MADV_PROTECT still works for backwards compatability. - Add a p_flag2 to struct proc (and a corresponding ki_flag2 to kinfo_proc) the first bit of which is used to track if P_PROTECT should be inherited by new child processes.
|
#
259829 |
|
24-Dec-2013 |
jhb |
MFC 255493: - Decode the idtype argument passed to wait6() in kdump and truss. - Don't treat an options argument of 0 to wait4() as an error in kdump. - Decode the wait options passed to wait4() and wait6() in truss and decode the returned rusage and exit status.
|
#
258870 |
|
03-Dec-2013 |
jhb |
MFC 253471,253620,254430,254538: Change mmap() to more optimally use superpages and provide support for tweaking alignment of virtual mappings. - Add a new address space allocation method (VMFS_OPTIMAL_SPACE) for vm_map_find() that will try to alter the alignment of a mapping to match any existing superpage mappings of the object being mapped. If no suitable address range is found with the necessary alignment, vm_map_find() will fall back to using the simple first-fit strategy (VMFS_ANY_SPACE). - Change mmap() without MAP_FIXED, shmat(), shm_map(), and the GEM mapping ioctl to use VMFS_OPTIMAL_SPACE instead of VMFS_ANY_SPACE. - MAP_ALIGNED(n) requests a mapping aligned on a boundary of (1 << n). Requests for n >= number of bits in a pointer or less than the size of a page fail with EINVAL. This matches the API provided by NetBSD. - MAP_ALIGNED_SUPER is a special case of MAP_ALIGNED. It can be used to optimize the chances of using large pages. By default it will align the mapping on a large page boundary (the system is free to choose any large page size to align to that seems best for the mapping request). However, if the object being mapped is already using large pages, then it will align the virtual mapping to match the existing large pages in the object instead. - Internally, VMFS_ALIGNED_SPACE is now renamed to VMFS_SUPER_SPACE, and VMFS_ALIGNED_SPACE(n) is repurposed for specifying a specific alignment. MAP_ALIGNED(n) maps to using VMFS_ALIGNED_SPACE(n), while MAP_ALIGNED_SUPER maps to VMFS_SUPER_SPACE. - mmap() of a device object now uses VMFS_OPTIMAL_SPACE rather than explicitly using VMFS_SUPER_SPACE. All device objects are forced to use a specific color on creation, so VMFS_OPTIMAL_SPACE is effectively equivalent.
PR: ports/184173 (exp-run)
|
#
258442 |
|
21-Nov-2013 |
jhb |
MFC 226145,226147,226148,226150,226151,226153,226157,226158,226164,226246, 226262,226329,226344,226608: Merge most "infrastructure" changes to kdump to make other MFC's to add new decodings, etc. easier: - Some of the #defines or enums for which we auto-generate naming functions may be wider than int, so use intmax_t throughout. - Auto-generate kdump_subr.h. - Use a switch statement instead of a giant if-else. - Remove a lot of (void) casts. - Bring ioctlname() in line with all the other *name() functions, which actually print the name (or the numeric value, if they can't figure out the correct name) instead of just returning a pointer to it. Also, since ioctl numbers are not and probably never will be unique, drop support for using a switch statement instead of an if/else chain. - Mostly WARNS=6 clean. - Update mkioctls to still work with both kdump and truss.
|
#
250678 |
|
15-May-2013 |
pluknet |
MFC r246711:
o Bring in sync decoding the first nfssvc(2) parameter (flags) with the current definitions location. o Respect numbers in NFSSVC_* (e.g. NFSSVC_V4ROOTEXPORT).
|
#
237663 |
|
27-Jun-2012 |
jhb |
MFC 233925,236357: 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, but are not enabled in the default set of trace points.
|
#
233205 |
|
19-Mar-2012 |
jhb |
MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2).
|
#
225736 |
|
22-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
#
223173 |
|
17-Jun-2011 |
netchild |
Add 2-clause BSD license.
Approved by: David Kirchner <dpk@dpk.net> (initial author) Requested by: Otto Moerbeek <otto@drijf.net> MFC after: 1 week
|
#
222768 |
|
06-Jun-2011 |
dchagin |
Fix regex for ptraceopname().
PR: bin/157663 Submitted by: jason wright <jason@thought.net> MFC after: 10 days
|
#
216130 |
|
02-Dec-2010 |
delphij |
Decode IPC_CREAT and IPC_EXCL for semget(2).
PR: bin/152781 Submitted by: Anton Yuzhaninov <citrin citrin ru> MFC after: 2 weeks
|
#
213479 |
|
06-Oct-2010 |
netchild |
Fix regex for some socket- and acl-related syscall values.
Submitted by: Mikhail <hidden.node@gmail.com> PR: 149295 MFC-after: 2 weeks
|
#
212728 |
|
16-Sep-2010 |
rpaulo |
Fix indenting of the previous commit.
|
#
212727 |
|
16-Sep-2010 |
rpaulo |
When generating functions to print the arguments of system calls with 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
|
#
177097 |
|
12-Mar-2008 |
jeff |
- Remove ksethrcmdname.
|
#
176471 |
|
22-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
|
#
175936 |
|
03-Feb-2008 |
des |
These are files are shell scripts; give smart editors a chance to figure it out by adding the usual shebang.
MFC after: 2 weeks
|
#
168543 |
|
09-Apr-2007 |
emaste |
Remove static ptrace_ops array and extract ptrace op names from sys/ptrace.h with mksubr.
|
#
165758 |
|
04-Jan-2007 |
rodrigc |
Add sockipprotoname() function. Decode the third parameter (protocol) 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)
|
#
165757 |
|
04-Jan-2007 |
rodrigc |
Generate sockdomainname() function with auto_if_type() instead 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)
|
#
165756 |
|
04-Jan-2007 |
rodrigc |
Add auto_if_type() function, which is similar to auto_switch_type(). 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().
|
#
165461 |
|
22-Dec-2006 |
rodrigc |
The second argument (type) to socket(2) is an enum, not a bitmask, so parse 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
|
#
162399 |
|
18-Sep-2006 |
maxim |
o optname, the third {set,get}sockopt(2) argument, is an enum, not a bitmap. Treat it accordingly.
PR: bin/101642 MFC after: 3 weeks
|
#
160295 |
|
12-Jul-2006 |
kib |
Remove slipped in spaces.
Pointed out by: maxim Approved by: pjd (mentor)
|
#
160291 |
|
12-Jul-2006 |
kib |
Check that the signal number is in range.
Submitted by: Michiel Boland <michiel boland org> MFC after: 1 week Approved by: pjd (mentor)
|
#
158766 |
|
20-May-2006 |
netchild |
Change kdump to print more useful information, i.e. it changes from 32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,0,0x1b6) 32229 telnet CALL socket(0x2,0x2,0) to 32229 telnet CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6) 32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0)
David wanted to implement the suggestions which came up at the review from arch@ too, but real life rejected this proposal. So I commit what we already got and let another volunteer pick the remaining work from the ideas list.
Submitted by: "David Kirchner" <dpk@dpk.net> Suggested by: FreeBSD ideas list page Reviewed by: arch
|