Date: Sat, 2 Apr 2011 06:13:31 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_exec.c kern_fork.c kern_ktrace.c src/sys/sys ktrace.h Message-ID: <201104020613.p326Drs6036485@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
dchagin 2011-04-02 06:13:31 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/kern kern_exec.c kern_fork.c kern_ktrace.c
sys/sys ktrace.h
Log:
SVN rev 220262 on 2011-04-02 06:13:31Z by dchagin
MFC r219041:
ktrace_resize_pool() locking slightly reworked:
1) do not take a lock around the single atomic operation.
2) do not lose the invariant of lock by dropping/acquiring
ktrace_mtx around free() or malloc().
MFC r219042:
Introduce preliminary support of the show description of the ABI of
traced process by adding two new events which records value of process
sv_flags to the trace file at process creation/execing/exiting time.
MFC r219311:
Partially rework r219042.
The reason for this is a bug at ktrops() where process dereferenced
without having a lock. This might cause a panic if ktrace was runned
with -p flag and the specified process exited between the dropping
a lock and writing sv_flags.
Since it is impossible to acquire sx lock while holding mtx switch
to use asynchronous enqueuerequest() instead of writerequest().
Rename ktr_getrequest_ne() to more understandable name.
MFC r219312:
Fix indentation in comment, double ';' in variable declaration.
Revision Changes Path
1.337.2.9 +6 -0 src/sys/kern/kern_exec.c
1.306.2.9 +4 -4 src/sys/kern/kern_fork.c
1.130.2.4 +83 -29 src/sys/kern/kern_ktrace.c
1.35.2.3 +17 -0 src/sys/sys/ktrace.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104020613.p326Drs6036485>
