svn commit: r271699 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid

2014-09-16 Thread Mark Johnston
Author: markj Date: Wed Sep 17 04:02:56 2014 New Revision: 271699 URL: http://svnweb.freebsd.org/changeset/base/271699 Log: Implement a workaround to allow this test program to be compiled with clang. It seems that if a pragma is used to define a weak alias for a local function, the pragma

Re: svn commit: r265703 - in head: share/man/man4 sys/dev/bce sys/dev/bxe sys/modules/bce

2014-09-17 Thread Mark Johnston
On Wed, Sep 17, 2014 at 11:02:00AM -0400, John Baldwin wrote: On Monday, September 15, 2014 04:31:13 PM David Somayajulu wrote: Hi Andrey, When I didn't have the clean override, make clean was not cleaning properly when I built a standalone loadable driver. Perhaps we can change clean in

svn commit: r271937 - in head/lib/libproc: . test tests

2014-09-21 Thread Mark Johnston
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libproc/tests/proc_test.c Sun Sep 21 21:25:41 2014 (r271937) @@ -0,0 +1,347 @@ +/*- + * Copyright (c) 2014 Mark Johnston ma...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source

svn commit: r271938 - head/tools/test/dtrace

2014-09-21 Thread Mark Johnston
Author: markj Date: Sun Sep 21 21:31:16 2014 New Revision: 271938 URL: http://svnweb.freebsd.org/changeset/base/271938 Log: Ignore a test program which doesn't compile at the moment. It will be addresed properly when integrating the DTrace tests with Kyua. Modified:

svn commit: r272002 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-09-22 Thread Mark Johnston
Author: markj Date: Mon Sep 22 21:02:38 2014 New Revision: 272002 URL: http://svnweb.freebsd.org/changeset/base/272002 Log: Remove some variables that are no longer used as of r271413. Reported by: Coverity CID: 1238924 X-MFC-With: r271413 Modified:

svn commit: r272003 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-09-22 Thread Mark Johnston
Author: markj Date: Mon Sep 22 21:09:30 2014 New Revision: 272003 URL: http://svnweb.freebsd.org/changeset/base/272003 Log: Remove an incorrect close(2) call that was added in r271413. Reported by: Coverity CID: 1238923 X-MFC-With: r271413 Modified:

svn commit: r272035 - head/etc/defaults

2014-09-23 Thread Mark Johnston
Author: markj Date: Tue Sep 23 18:38:06 2014 New Revision: 272035 URL: http://svnweb.freebsd.org/changeset/base/272035 Log: Remove settings for pkg_* scripts which are no longer present. MFC after:1 week Modified: head/etc/defaults/periodic.conf Modified:

svn commit: r272125 - head/lib/libproc

2014-09-25 Thread Mark Johnston
Author: markj Date: Thu Sep 25 19:08:06 2014 New Revision: 272125 URL: http://svnweb.freebsd.org/changeset/base/272125 Log: Factor out some of the duplicated code in the symbol lookup functions, in preparation for adding userland CTF support to DTrace. MFC after:1 month Sponsored

svn commit: r272157 - head/cddl/contrib/opensolaris/cmd/dtrace

2014-09-26 Thread Mark Johnston
Author: markj Date: Fri Sep 26 07:01:27 2014 New Revision: 272157 URL: http://svnweb.freebsd.org/changeset/base/272157 Log: Fix the description of the -h option. Reported by: swills MFC after:3 days Modified: head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.1 Modified:

svn commit: r272346 - head/share/mk

2014-09-30 Thread Mark Johnston
Author: markj Date: Wed Oct 1 04:28:39 2014 New Revision: 272346 URL: https://svnweb.freebsd.org/changeset/base/272346 Log: Correct the way that libelf is linked when USDT is used. Modified: head/share/mk/bsd.dep.mk Modified: head/share/mk/bsd.dep.mk

svn commit: r272378 - in head: share/man/man4 sys/netinet

2014-10-01 Thread Mark Johnston
Author: markj Date: Wed Oct 1 18:07:34 2014 New Revision: 272378 URL: https://svnweb.freebsd.org/changeset/base/272378 Log: Add a sysctl, net.inet.icmp.tstamprepl, which can be used to disable replies to ICMP Timestamp packets. PR: 193689 Submitted by: Anthony Cornehl

svn commit: r272455 - head/cddl/contrib/opensolaris/cmd/dtrace

2014-10-02 Thread Mark Johnston
Author: markj Date: Thu Oct 2 22:33:35 2014 New Revision: 272455 URL: https://svnweb.freebsd.org/changeset/base/272455 Log: Have dtrace(1) handle SIGPIPE by cleaning up and exiting. Additionally, install signal handlers when running in list mode (-l), and acknowledge interrupts by cleaning

svn commit: r272488 - in head: . cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf cddl/contrib/opensolaris/lib/libdtrace/common cddl/lib/libdtrace lib/libproc lib/libproc/tests lib/librtld_db

2014-10-03 Thread Mark Johnston
Author: markj Date: Fri Oct 3 23:20:37 2014 New Revision: 272488 URL: https://svnweb.freebsd.org/changeset/base/272488 Log: Hook up support for userland CTF support in DTrace. This required some modifications to libproc to support fetching the CTF info for a given file. With this

svn commit: r272489 - head/lib/libproc

2014-10-03 Thread Mark Johnston
Author: markj Date: Sat Oct 4 02:34:30 2014 New Revision: 272489 URL: https://svnweb.freebsd.org/changeset/base/272489 Log: Remove an incorrect and useless debug print. X-MFC-With: r272488 Modified: head/lib/libproc/proc_sym.c Modified: head/lib/libproc/proc_sym.c

svn commit: r272576 - head

2014-10-05 Thread Mark Johnston
Author: markj Date: Sun Oct 5 22:13:13 2014 New Revision: 272576 URL: https://svnweb.freebsd.org/changeset/base/272576 Log: Fix dependency errors when linking libproc. Reported by: Oliver Hartmann X-MFC-With: r272488 Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

svn commit: r272671 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-10-06 Thread Mark Johnston
Author: markj Date: Mon Oct 6 21:52:40 2014 New Revision: 272671 URL: https://svnweb.freebsd.org/changeset/base/272671 Log: Treat D keywords as identifiers in certain postfix expressions. This allows one to, for example, access the provider field of a struct g_consumer, even though

svn commit: r272763 - head/usr.sbin/newsyslog

2014-10-08 Thread Mark Johnston
Author: markj Date: Wed Oct 8 17:44:30 2014 New Revision: 272763 URL: https://svnweb.freebsd.org/changeset/base/272763 Log: If we fail to send a signal after rotation, print the pidfile from which the corresponding PID was obtained. PR: 194143 Submitted by: Lyndon Nerenberg

svn commit: r272766 - in head/sys: amd64/amd64 amd64/include arm/arm arm/include i386/i386 i386/include mips/include mips/mips x86/x86

2014-10-08 Thread Mark Johnston
Author: markj Date: Wed Oct 8 20:25:21 2014 New Revision: 272766 URL: https://svnweb.freebsd.org/changeset/base/272766 Log: Pass up the error status of minidumpsys() to its callers. PR: 193761 Submitted by: Conrad Meyer conrad.me...@isilon.com Sponsored by: EMC / Isilon

svn commit: r272834 - head/cddl/contrib/opensolaris/cmd/lockstat

2014-10-09 Thread Mark Johnston
Author: markj Date: Thu Oct 9 17:45:58 2014 New Revision: 272834 URL: https://svnweb.freebsd.org/changeset/base/272834 Log: Document the CPU+Pri_Class column rather than CPU+PRI, as the latter isn't used or implemented on FreeBSD. Reported by: kmacy Reviewed by: kmacy, rpaulo MFC

svn commit: r272851 - vendor/illumos/dist/man/man4

2014-10-09 Thread Mark Johnston
Author: markj Date: Thu Oct 9 23:11:36 2014 New Revision: 272851 URL: https://svnweb.freebsd.org/changeset/base/272851 Log: 5202 want ctf(4) Reviewed by: Keith M Wesolowski wesol...@foobazco.org Reviewed by: Jerry Jelinek jerry.jeli...@joyent.com Reviewed by: Garrett D'Amore

svn commit: r273115 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2014-10-14 Thread Mark Johnston
Author: markj Date: Wed Oct 15 03:15:46 2014 New Revision: 273115 URL: https://svnweb.freebsd.org/changeset/base/273115 Log: Remove a build artifact of the USDT tests. MFC after:3 days Deleted: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/main.c

svn commit: r273186 - head/share/mk

2014-10-16 Thread Mark Johnston
Author: markj Date: Thu Oct 16 21:13:46 2014 New Revision: 273186 URL: https://svnweb.freebsd.org/changeset/base/273186 Log: Don't define rules based on PROGS if PROGS is empty. Reviewed by: sjg, ngie MFC after:1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r273236 - head/sys/dev/hwpmc

2014-10-17 Thread Mark Johnston
Author: markj Date: Fri Oct 17 19:04:24 2014 New Revision: 273236 URL: https://svnweb.freebsd.org/changeset/base/273236 Log: Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy PMCs if a process exits or

svn commit: r273342 - head/sys/kern

2014-10-20 Thread Mark Johnston
Author: markj Date: Mon Oct 20 20:21:40 2014 New Revision: 273342 URL: https://svnweb.freebsd.org/changeset/base/273342 Log: Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock and unp_link_rwlock. MFC after:3 days Modified: head/sys/kern/subr_witness.c

svn commit: r273365 - head/share/mk

2014-10-20 Thread Mark Johnston
Author: markj Date: Tue Oct 21 04:30:00 2014 New Revision: 273365 URL: https://svnweb.freebsd.org/changeset/base/273365 Log: Fix a few small bugs in the DTrace USDT rules: * anchor search strings appropriately, * use .ALLSRC to pass the full path to the D script to dtrace(1), * don't

svn commit: r273370 - head/cddl/lib/libdtrace

2014-10-20 Thread Mark Johnston
Author: markj Date: Tue Oct 21 05:19:08 2014 New Revision: 273370 URL: https://svnweb.freebsd.org/changeset/base/273370 Log: Correct the calculation of tcps_rto in the struct tcpcb - tcpsinfo_t translator. Submitted by: Grenville Armitage garmit...@swin.edu.au MFC after:1 week

svn commit: r273488 - head/usr.sbin/pciconf

2014-10-22 Thread Mark Johnston
Author: markj Date: Wed Oct 22 23:35:56 2014 New Revision: 273488 URL: https://svnweb.freebsd.org/changeset/base/273488 Log: Fix some buglets in the error-handling of getdevice(). In particular, report an error if the argument to pciconf -a doesn't have a unit number, rather than triggering

svn commit: r273491 - stable/10/usr.bin/elfdump

2014-10-22 Thread Mark Johnston
Author: markj Date: Wed Oct 22 23:55:08 2014 New Revision: 273491 URL: https://svnweb.freebsd.org/changeset/base/273491 Log: MFC r271692: Fix a typo. Modified: stable/10/usr.bin/elfdump/elfdump.1 Directory Properties: stable/10/ (props changed) Modified:

svn commit: r273490 - stable/9/usr.bin/elfdump

2014-10-22 Thread Mark Johnston
Author: markj Date: Wed Oct 22 23:55:06 2014 New Revision: 273490 URL: https://svnweb.freebsd.org/changeset/base/273490 Log: MFC r271692: Fix a typo. Modified: stable/9/usr.bin/elfdump/elfdump.1 Directory Properties: stable/9/usr.bin/elfdump/ (props changed) Modified:

svn commit: r273553 - stable/9/usr.sbin/newsyslog

2014-10-23 Thread Mark Johnston
Author: markj Date: Thu Oct 23 18:48:43 2014 New Revision: 273553 URL: https://svnweb.freebsd.org/changeset/base/273553 Log: MFC 272763: If we fail to send a signal after rotation, print the pidfile from which the corresponding PID was obtained. PR: 194143 Modified:

svn commit: r273554 - stable/10/usr.sbin/newsyslog

2014-10-23 Thread Mark Johnston
Author: markj Date: Thu Oct 23 18:50:44 2014 New Revision: 273554 URL: https://svnweb.freebsd.org/changeset/base/273554 Log: MFC r272763: If we fail to send a signal after rotation, print the pidfile from which the corresponding PID was obtained. PR: 194143 Modified:

svn commit: r273596 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

2014-10-24 Thread Mark Johnston
Author: markj Date: Fri Oct 24 17:24:29 2014 New Revision: 273596 URL: https://svnweb.freebsd.org/changeset/base/273596 Log: MFC r258902: The uaddr, ufunc, umod and usym functions all seem to work as expected on FreeBSD, so stop hiding them behind a #if defined(sun). Modified:

svn commit: r273595 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common

2014-10-24 Thread Mark Johnston
Author: markj Date: Fri Oct 24 17:24:29 2014 New Revision: 273595 URL: https://svnweb.freebsd.org/changeset/base/273595 Log: MFC r258902: The uaddr, ufunc, umod and usym functions all seem to work as expected on FreeBSD, so stop hiding them behind a #if defined(sun). Modified:

svn commit: r273605 - head/lib/libc/net

2014-10-24 Thread Mark Johnston
Author: markj Date: Fri Oct 24 20:29:14 2014 New Revision: 273605 URL: https://svnweb.freebsd.org/changeset/base/273605 Log: Eliminate conf_lock and instead rely on the NSS write lock to protect NSS configuration state. As a side effect, this fixes a race condition which can occur if

svn commit: r273717 - head/lib/libc/gen

2014-10-26 Thread Mark Johnston
Author: markj Date: Mon Oct 27 04:09:23 2014 New Revision: 273717 URL: https://svnweb.freebsd.org/changeset/base/273717 Log: getgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, so this bug is no longer valid. MFC after:3 days Modified:

svn commit: r273765 - stable/10/cddl/lib/libdtrace

2014-10-28 Thread Mark Johnston
Author: markj Date: Tue Oct 28 06:17:25 2014 New Revision: 273765 URL: https://svnweb.freebsd.org/changeset/base/273765 Log: MFC r273370: Correct the calculation of tcps_rto in the struct tcpcb - tcpsinfo_t translator. Modified: stable/10/cddl/lib/libdtrace/tcp.d Directory Properties:

svn commit: r274149 - head/etc/mtree

2014-11-05 Thread Mark Johnston
Author: markj Date: Wed Nov 5 22:50:33 2014 New Revision: 274149 URL: https://svnweb.freebsd.org/changeset/base/274149 Log: Create a directory for the PAM tests. Modified: head/etc/mtree/BSD.tests.dist Modified: head/etc/mtree/BSD.tests.dist

svn commit: r274156 - stable/9/sys/dev/hwpmc

2014-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 6 01:30:15 2014 New Revision: 274156 URL: https://svnweb.freebsd.org/changeset/base/274156 Log: MFC r273236: Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy PMCs if a

svn commit: r274155 - stable/10/sys/dev/hwpmc

2014-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 6 01:30:13 2014 New Revision: 274155 URL: https://svnweb.freebsd.org/changeset/base/274155 Log: MFC r273236: Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy PMCs if a

svn commit: r274157 - stable/10/sys/kern

2014-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 6 01:34:43 2014 New Revision: 274157 URL: https://svnweb.freebsd.org/changeset/base/274157 Log: MFC r273342: Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock and unp_link_rwlock. Modified: stable/10/sys/kern/subr_witness.c

svn commit: r274158 - stable/9/sys/kern

2014-11-05 Thread Mark Johnston
Author: markj Date: Thu Nov 6 01:34:44 2014 New Revision: 274158 URL: https://svnweb.freebsd.org/changeset/base/274158 Log: MFC r273342: Fix a typo from r189544, which replaced unp_global_rwlock with unp_list_lock and unp_link_rwlock. Modified: stable/9/sys/kern/subr_witness.c Directory

svn commit: r274200 - head/share/mk

2014-11-06 Thread Mark Johnston
Author: markj Date: Thu Nov 6 22:46:40 2014 New Revision: 274200 URL: https://svnweb.freebsd.org/changeset/base/274200 Log: Automatically build with debug symbols when building with WITH_CTF. Otherwise there's nothing for ctfconvert to do, and it ends up emitting an error for each object

svn commit: r274299 - head/share/mk

2014-11-08 Thread Mark Johnston
Author: markj Date: Sat Nov 8 18:16:39 2014 New Revision: 274299 URL: https://svnweb.freebsd.org/changeset/base/274299 Log: Revert r274200. Implicitly setting DEBUG_FLAGS when WITH_CTF is true is not the right way to do this. Requested by: kan Modified: head/share/mk/bsd.lib.mk

svn commit: r274564 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2014-11-15 Thread Mark Johnston
Author: markj Date: Sun Nov 16 04:07:53 2014 New Revision: 274564 URL: https://svnweb.freebsd.org/changeset/base/274564 Log: Fix a couple of bugs around the handling of structs and unions of size zero. These would cause ctfconvert(1) to return an error when attempting to resolve valid C

svn commit: r274565 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2014-11-15 Thread Mark Johnston
Author: markj Date: Sun Nov 16 04:10:23 2014 New Revision: 274565 URL: https://svnweb.freebsd.org/changeset/base/274565 Log: Remove an incorrect optimization. The type IDs of each member of a struct or union must be checked when determine whether two types are equivalent. This bug could

svn commit: r274569 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2014-11-15 Thread Mark Johnston
Author: markj Date: Sun Nov 16 04:13:42 2014 New Revision: 274569 URL: https://svnweb.freebsd.org/changeset/base/274569 Log: Only compare visitation counters if they've both been set for the current type graph walk. Reviewed by: Robert Mustacchi r...@joyent.com MFC after:2 weeks

svn commit: r274637 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-11-17 Thread Mark Johnston
Author: markj Date: Mon Nov 17 22:22:16 2014 New Revision: 274637 URL: https://svnweb.freebsd.org/changeset/base/274637 Log: DTrace imposes a 128-byte limit on the length of the function component of a probe name. When dtrace -G builds up a DOF section for the specified provider(s), the

svn commit: r275011 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-11-24 Thread Mark Johnston
Author: markj Date: Tue Nov 25 06:43:17 2014 New Revision: 275011 URL: https://svnweb.freebsd.org/changeset/base/275011 Log: The module load address always needs to be included when setting the dm_*_va fields of dt_module_t. Previously, this was only done on architectures where kernel

svn commit: r275012 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-11-24 Thread Mark Johnston
Author: markj Date: Tue Nov 25 07:01:38 2014 New Revision: 275012 URL: https://svnweb.freebsd.org/changeset/base/275012 Log: Adjust some checks missed in r274637, now that pi_rname can be NULL. Additionally fix a misparenthesization in the same check, noticed while fixing the first bug.

svn commit: r275465 - stable/10/usr.sbin/pciconf

2014-12-03 Thread Mark Johnston
Author: markj Date: Wed Dec 3 19:44:22 2014 New Revision: 275465 URL: https://svnweb.freebsd.org/changeset/base/275465 Log: MFC r273488: Fix some bugs in the error handling of getdevice(). PR: 194506 Modified: stable/10/usr.sbin/pciconf/pciconf.c Directory Properties: stable/10/

svn commit: r275466 - stable/9/usr.sbin/pciconf

2014-12-03 Thread Mark Johnston
Author: markj Date: Wed Dec 3 19:44:24 2014 New Revision: 275466 URL: https://svnweb.freebsd.org/changeset/base/275466 Log: MFC r273488: Fix some bugs in the error handling of getdevice(). PR: 194506 Modified: stable/9/usr.sbin/pciconf/pciconf.c Directory Properties:

svn commit: r275516 - in stable/10/cddl/contrib/opensolaris/lib: libctf/common libdtrace/common

2014-12-05 Thread Mark Johnston
Author: markj Date: Fri Dec 5 18:55:31 2014 New Revision: 275516 URL: https://svnweb.freebsd.org/changeset/base/275516 Log: MFC r271695: Fix some incorrect endianness checks. Modified: stable/10/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c

svn commit: r275517 - in stable/9/cddl/contrib/opensolaris/lib: libctf/common libdtrace/common

2014-12-05 Thread Mark Johnston
Author: markj Date: Fri Dec 5 18:55:32 2014 New Revision: 275517 URL: https://svnweb.freebsd.org/changeset/base/275517 Log: MFC r271695: Fix some incorrect endianness checks. Modified: stable/9/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c

svn commit: r275592 - in head/cddl: contrib/opensolaris/lib/libctf/common lib/libctf

2014-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 8 04:35:34 2014 New Revision: 275592 URL: https://svnweb.freebsd.org/changeset/base/275592 Log: MFV r272851: 5202 want ctf(4) illumos/illumos-gate@fe2e029eea29fd49d0d9058dbd5b79a252667e6b Added: head/cddl/contrib/opensolaris/lib/libctf/common/ctf.5

svn commit: r275593 - head/sys/netinet6

2014-12-07 Thread Mark Johnston
Author: markj Date: Mon Dec 8 04:44:40 2014 New Revision: 275593 URL: https://svnweb.freebsd.org/changeset/base/275593 Log: Add refcounting to IPv6 DAD objects and simplify the DAD code to fix a number of races which could cause double frees or use-after-frees when performing DAD on an

svn commit: r275695 - head/sys/netinet6

2014-12-10 Thread Mark Johnston
Author: markj Date: Thu Dec 11 00:41:54 2014 New Revision: 275695 URL: https://svnweb.freebsd.org/changeset/base/275695 Log: Fix a bug in r266857: nd6_dad_find() must return NULL if it doesn't find a matching element in the DAD queue. Reported by: Holger Hans Peter Freyther

svn commit: r275700 - head/sys/netinet6

2014-12-11 Thread Mark Johnston
Author: markj Date: Thu Dec 11 09:16:45 2014 New Revision: 275700 URL: https://svnweb.freebsd.org/changeset/base/275700 Log: Revert r275695: nd6_dad_find() was already correct. Reported by: ae, kib Pointy hat to:markj Modified: head/sys/netinet6/nd6_nbr.c Modified:

Re: svn commit: r275695 - head/sys/netinet6

2014-12-11 Thread Mark Johnston
On Thu, Dec 11, 2014 at 11:44:44AM +0300, Andrey V. Elsukov wrote: On 11.12.2014 03:41, Mark Johnston wrote: Author: markj Date: Thu Dec 11 00:41:54 2014 New Revision: 275695 URL: https://svnweb.freebsd.org/changeset/base/275695 Log: Fix a bug in r266857: nd6_dad_find() must

svn commit: r276142 - in head/sys: amd64/amd64 cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 cddl/dev/dtrace/mips cddl/dev/dtrace/powerpc i386/i386 mips/mips powerpc/aim sys

2014-12-23 Thread Mark Johnston
Author: markj Date: Tue Dec 23 15:38:19 2014 New Revision: 276142 URL: https://svnweb.freebsd.org/changeset/base/276142 Log: Restore the trap type argument to the DTrace trap hook, removed in r268600. It's redundant at the moment since it can be obtained from the trapframe on the

svn commit: r276143 - head/lib/libproc

2014-12-23 Thread Mark Johnston
Author: markj Date: Tue Dec 23 15:40:57 2014 New Revision: 276143 URL: https://svnweb.freebsd.org/changeset/base/276143 Log: Fix a memory leak that occured when looking up CTF info for a symbol. Modified: head/lib/libproc/proc_sym.c Modified: head/lib/libproc/proc_sym.c

svn commit: r276144 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-23 Thread Mark Johnston
Author: markj Date: Tue Dec 23 15:42:33 2014 New Revision: 276144 URL: https://svnweb.freebsd.org/changeset/base/276144 Log: We can stop iterating once we've found the DOF section. Submitted by: Fedor Indutny fe...@indutny.com Modified:

Re: svn commit: r276142 - in head/sys: amd64/amd64 cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 cddl/dev/dtrace/mips cddl/dev/dtrace/powerpc i386/i386 mips/mips powerpc/aim sys

2014-12-23 Thread Mark Johnston
On Tue, Dec 23, 2014 at 08:45:57AM -0700, Ian Lepore wrote: On Tue, 2014-12-23 at 15:38 +, Mark Johnston wrote: Author: markj Date: Tue Dec 23 15:38:19 2014 New Revision: 276142 URL: https://svnweb.freebsd.org/changeset/base/276142 Log: Restore the trap type argument

svn commit: r276250 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 26 18:53:29 2014 New Revision: 276250 URL: https://svnweb.freebsd.org/changeset/base/276250 Log: DOF tables are aligned according to the DOF section's alignment constraint, so take this into account when iterating over DOF tables. PR: 19

svn commit: r276264 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 26 22:49:27 2014 New Revision: 276264 URL: https://svnweb.freebsd.org/changeset/base/276264 Log: MFC r275011: The module load address always needs to be included when setting the dm_*_va fields of dt_module_t. Previously, this was only done on architectures where

svn commit: r276265 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 26 22:50:34 2014 New Revision: 276265 URL: https://svnweb.freebsd.org/changeset/base/276265 Log: MFC r275011: The module load address always needs to be included when setting the dm_*_va fields of dt_module_t. Previously, this was only done on architectures where

svn commit: r276266 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 26 22:52:43 2014 New Revision: 276266 URL: https://svnweb.freebsd.org/changeset/base/276266 Log: MFC r272671: Treat D keywords as identifiers in certain postfix expressions. This allows one to, for example, access the provider field of a struct g_consumer, even

svn commit: r276267 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common

2014-12-26 Thread Mark Johnston
Author: markj Date: Fri Dec 26 22:52:44 2014 New Revision: 276267 URL: https://svnweb.freebsd.org/changeset/base/276267 Log: MFC r272671: Treat D keywords as identifiers in certain postfix expressions. This allows one to, for example, access the provider field of a struct g_consumer, even

svn commit: r278114 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2015-02-02 Thread Mark Johnston
Author: markj Date: Mon Feb 2 20:48:31 2015 New Revision: 278114 URL: https://svnweb.freebsd.org/changeset/base/278114 Log: Let the standard deviation of the empty set be 0. This is consistent with the behaviour for averages, and fixes a crash that can occur when attempting to print a

svn commit: r278138 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/plockstat

2015-02-02 Thread Mark Johnston
Author: markj Date: Tue Feb 3 06:16:18 2015 New Revision: 278138 URL: https://svnweb.freebsd.org/changeset/base/278138 Log: Use a MIME type of text/plain for a couple of shell scripts with a file extension of .exe. MFC after:1 week Modified: Directory Properties:

svn commit: r278136 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-02-02 Thread Mark Johnston
Author: markj Date: Tue Feb 3 05:38:52 2015 New Revision: 278136 URL: https://svnweb.freebsd.org/changeset/base/278136 Log: Diff reduction with illumos, in preparation for merging r266993 from the vendor branch. No functional change. MFC after:1 week Modified:

svn commit: r278139 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: pid plockstat

2015-02-02 Thread Mark Johnston
Author: markj Date: Tue Feb 3 06:22:46 2015 New Revision: 278139 URL: https://svnweb.freebsd.org/changeset/base/278139 Log: Avoid hard-coding a path to ksh in scripts that are executed directly by the test harness. This is a problem in many of the *.ksh test scripts as well, but those

svn commit: r278137 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-02-02 Thread Mark Johnston
Author: markj Date: Tue Feb 3 06:04:16 2015 New Revision: 278137 URL: https://svnweb.freebsd.org/changeset/base/278137 Log: Continue to handle the case where state is NULL, though this currently cannot happen on FreeBSD. r278136 overlooked the fact that a destructor registered with

svn commit: r278370 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-02-07 Thread Mark Johnston
Author: markj Date: Sun Feb 8 03:55:12 2015 New Revision: 278370 URL: https://svnweb.freebsd.org/changeset/base/278370 Log: Fix a typo in r278137: make sure to free provider state. X-MFC-With: r278136 Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Modified:

svn commit: r278934 - in head: cddl/contrib/opensolaris/lib/libdtrace/common share/mk

2015-02-17 Thread Mark Johnston
Author: markj Date: Wed Feb 18 03:54:54 2015 New Revision: 278934 URL: https://svnweb.freebsd.org/changeset/base/278934 Log: Remove drti.o's dependency on libelf. This makes it possible to add DTrace probes to userland programs and libraries without also needing to link libelf. dtrace

svn commit: r278655 - in head/sys: amd64/amd64 i386/i386

2015-02-12 Thread Mark Johnston
Author: markj Date: Fri Feb 13 01:35:53 2015 New Revision: 278655 URL: https://svnweb.freebsd.org/changeset/base/278655 Log: Add support for decoding multibyte NOPs. Differential Revision:https://reviews.freebsd.org/D1830 Reviewed by: jhb, kib MFC after:2 weeks Sponsored

Re: svn commit: r277788 - head/sys/dev/virtio/block

2015-01-26 Thread Mark Johnston
On Tue, Jan 27, 2015 at 05:34:47AM +, Bryan Venteicher wrote: Author: bryanv Date: Tue Jan 27 05:34:46 2015 New Revision: 277788 URL: https://svnweb.freebsd.org/changeset/base/277788 Log: Rework vtblk dump handling of in flight requests Previously, the driver resets the device

svn commit: r277961 - head/lib/libproc

2015-01-30 Thread Mark Johnston
Author: markj Date: Sat Jan 31 03:22:00 2015 New Revision: 277961 URL: https://svnweb.freebsd.org/changeset/base/277961 Log: Stop iterating and return if the caller-supplied callback function returns a non-zero value. MFC after:1 week Modified: head/lib/libproc/proc_sym.c

Re: svn commit: r277667 - in head/lib/libproc: . tests

2015-01-24 Thread Mark Johnston
On Sun, Jan 25, 2015 at 12:34:44AM +, Mark Johnston wrote: Author: markj Date: Sun Jan 25 00:34:43 2015 New Revision: 277667 URL: https://svnweb.freebsd.org/changeset/base/277667 Log: Ensure that we don't try to demangle a symbol name if we failed to look up the symbol. Add a test

svn commit: r277668 - head/share/man/man9

2015-01-24 Thread Mark Johnston
Author: markj Date: Sun Jan 25 00:36:42 2015 New Revision: 277668 URL: https://svnweb.freebsd.org/changeset/base/277668 Log: Document the fact that modules declared with SYSCALL_MODULE(9) have their names prefixed with sys/. MFC after:3 days Modified:

svn commit: r277667 - in head/lib/libproc: . tests

2015-01-24 Thread Mark Johnston
00:34:43 2015 (r277667) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2014 Mark Johnston ma...@freebsd.org + * Copyright (c) 2014, 2015 Mark Johnston ma...@freebsd.org * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -295,6 +295,43

svn commit: r277669 - head/lib/libutil

2015-01-24 Thread Mark Johnston
Author: markj Date: Sun Jan 25 00:47:06 2015 New Revision: 277669 URL: https://svnweb.freebsd.org/changeset/base/277669 Log: gr_equal(): Fix a crash that could occur if the first group's member list was longer than the second's. There is no need to compute and compare the member list

svn commit: r278009 - in head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common: misc usdt

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 23:02:27 2015 New Revision: 278009 URL: https://svnweb.freebsd.org/changeset/base/278009 Log: Remove hard-coded invocations of gcc; use cc(1) instead. MFC after:1 week Modified:

svn commit: r278008 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 22:56:38 2015 New Revision: 278008 URL: https://svnweb.freebsd.org/changeset/base/278008 Log: Remove a makefile that isn't present upstream. MFC after:1 week Deleted: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/Makefile

svn commit: r278011 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 23:11:57 2015 New Revision: 278011 URL: https://svnweb.freebsd.org/changeset/base/278011 Log: Use syscall::exit instead of the nonexistent syscall::rexit. MFC after:1 week Modified:

svn commit: r278012 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 23:12:29 2015 New Revision: 278012 URL: https://svnweb.freebsd.org/changeset/base/278012 Log: Fix mktemp(1) usage. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/tst.corruptenv.ksh Modified:

svn commit: r278007 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/scripting

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 22:53:18 2015 New Revision: 278007 URL: https://svnweb.freebsd.org/changeset/base/278007 Log: Fix a number of DTrace scripting tests: * Avoid hard-coding program paths. * Use -x when searching for oneself in ps(1) output. * Use the correct keyword (egid

svn commit: r278006 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/proc

2015-01-31 Thread Mark Johnston
Author: markj Date: Sat Jan 31 22:38:43 2015 New Revision: 278006 URL: https://svnweb.freebsd.org/changeset/base/278006 Log: Fix some proc provider tests: * Avoid hard-coding program paths, except when it's necessary in order to override the use of a shell builtin. * Translate struct

svn commit: r276727 - head/sys/kern

2015-01-05 Thread Mark Johnston
Author: markj Date: Mon Jan 5 23:07:22 2015 New Revision: 276727 URL: https://svnweb.freebsd.org/changeset/base/276727 Log: Use crcopysafe(9) to make a copy of a process' credential struct. crcopy(9) may perform a blocking memory allocation, which is unsafe when holding a mutex.

svn commit: r276732 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common

2015-01-05 Thread Mark Johnston
Author: markj Date: Tue Jan 6 02:13:49 2015 New Revision: 276732 URL: https://svnweb.freebsd.org/changeset/base/276732 Log: MFC r276250: DOF tables are aligned according to the DOF section's alignment constraint, so take this into account when iterating over DOF tables. PR: 19

svn commit: r276731 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

2015-01-05 Thread Mark Johnston
Author: markj Date: Tue Jan 6 02:13:48 2015 New Revision: 276731 URL: https://svnweb.freebsd.org/changeset/base/276731 Log: MFC r276250: DOF tables are aligned according to the DOF section's alignment constraint, so take this into account when iterating over DOF tables. PR: 19

svn commit: r276772 - in head/sys: amd64/include arm/arm arm/include conf i386/include kern mips/include mips/mips pc98/include powerpc/aim powerpc/booke powerpc/include powerpc/powerpc sparc64/inc...

2015-01-06 Thread Mark Johnston
Author: markj Date: Wed Jan 7 01:01:39 2015 New Revision: 276772 URL: https://svnweb.freebsd.org/changeset/base/276772 Log: Factor out duplicated code from dumpsys() on each architecture into generic code in sys/kern/kern_dump.c. Most dumpsys() implementations are nearly identical and

svn commit: r278690 - head/usr.sbin/gssd

2015-02-13 Thread Mark Johnston
Author: markj Date: Fri Feb 13 18:32:55 2015 New Revision: 278690 URL: https://svnweb.freebsd.org/changeset/base/278690 Log: Check for an error from daemon(3), and correct the check for an error from socket(2). MFC after:3 days Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r278691 - head/usr.sbin/gssd

2015-02-13 Thread Mark Johnston
Author: markj Date: Fri Feb 13 18:34:04 2015 New Revision: 278691 URL: https://svnweb.freebsd.org/changeset/base/278691 Log: Add an auto-generated file to CLEANFILES. MFC after:3 days Sponsored by: EMC / Isilon Storage Division Modified: head/usr.sbin/gssd/Makefile Modified:

svn commit: r278738 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io

2015-02-13 Thread Mark Johnston
Author: markj Date: Sat Feb 14 00:03:43 2015 New Revision: 278738 URL: https://svnweb.freebsd.org/changeset/base/278738 Log: Tweak the fds test program so that it actually compiles. Also use 0 instead of -1 for the bogus ioctl command so that dmesg doesn't get spammed with sign extension

svn commit: r276848 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2015-01-08 Thread Mark Johnston
Author: markj Date: Thu Jan 8 18:45:16 2015 New Revision: 276848 URL: https://svnweb.freebsd.org/changeset/base/276848 Log: Revert r274569. It seems to be causing a crash when merging CTF data for recent i386 GENERIC kernels. Reported by: David Wolfskill Modified:

svn commit: r278984 - head/sys/kern

2015-02-18 Thread Mark Johnston
Author: markj Date: Thu Feb 19 03:32:48 2015 New Revision: 278984 URL: https://svnweb.freebsd.org/changeset/base/278984 Log: Remove unnecessary checks for a return value of NULL from M_WAITOK allocations. MFC after:3 days Modified: head/sys/kern/kern_ctf.c Modified:

svn commit: r278983 - head/sys/kern

2015-02-18 Thread Mark Johnston
Author: markj Date: Thu Feb 19 03:29:46 2015 New Revision: 278983 URL: https://svnweb.freebsd.org/changeset/base/278983 Log: Free the zlib stream after expanding a compressed CTF section. Note that this memory would only be leaked once, since CTF info for a kld file is cached after the

svn commit: r280125 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2015-03-15 Thread Mark Johnston
Author: markj Date: Sun Mar 15 21:57:44 2015 New Revision: 280125 URL: https://svnweb.freebsd.org/changeset/base/280125 Log: Add a missing format string argument. PR: 197391 MFC after:3 days Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c Modified:

svn commit: r280132 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2015-03-15 Thread Mark Johnston
Author: markj Date: Mon Mar 16 01:15:08 2015 New Revision: 280132 URL: https://svnweb.freebsd.org/changeset/base/280132 Log: Remove unused upstream DTrace provider implementations that are duplicates of providers under sys/cddl/dev/. Also remove sdt_subr.c, which isn't used in FreeBSD's SDT

svn commit: r280200 - stable/9/cddl/contrib/opensolaris/tools/ctf/cvt

2015-03-17 Thread Mark Johnston
Author: markj Date: Wed Mar 18 02:29:00 2015 New Revision: 280200 URL: https://svnweb.freebsd.org/changeset/base/280200 Log: MFC r280125: Add a missing format string argument. PR: 197391 Modified: stable/9/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c Directory Properties:

<    1   2   3   4   5   6   7   8   9   10   >