svn commit: r227969 - releng/9.0/sys/kern

Ryan Stone rstone at FreeBSD.org
Fri Nov 25 12:43:34 UTC 2011


Author: rstone
Date: Fri Nov 25 12:43:34 2011
New Revision: 227969
URL: http://svn.freebsd.org/changeset/base/227969

Log:
  MFC r227342.  Note that the original commit message, reproduced below, has
  error.  The final sentence should read "*without* CTF data".
  
   The in-kernel CTF parser caches the result of its first attempt to parse
   CTF data from a module.  On subsequent attempts to retrieve CTF data for
   a module, return an error if there no CTF data.
  
   This fixes a panic if you try to enable fbt probes on a module with CTF
   data twice.
  
  Approved by:	re (kib)

Modified:
  releng/9.0/sys/kern/kern_ctf.c
Directory Properties:
  releng/9.0/sys/   (props changed)
  releng/9.0/sys/amd64/include/xen/   (props changed)
  releng/9.0/sys/boot/   (props changed)
  releng/9.0/sys/boot/i386/efi/   (props changed)
  releng/9.0/sys/boot/ia64/efi/   (props changed)
  releng/9.0/sys/boot/ia64/ski/   (props changed)
  releng/9.0/sys/boot/powerpc/boot1.chrp/   (props changed)
  releng/9.0/sys/boot/powerpc/ofw/   (props changed)
  releng/9.0/sys/cddl/contrib/opensolaris/   (props changed)
  releng/9.0/sys/conf/   (props changed)
  releng/9.0/sys/contrib/dev/acpica/   (props changed)
  releng/9.0/sys/contrib/octeon-sdk/   (props changed)
  releng/9.0/sys/contrib/pf/   (props changed)
  releng/9.0/sys/contrib/x86emu/   (props changed)

Modified: releng/9.0/sys/kern/kern_ctf.c
==============================================================================
--- releng/9.0/sys/kern/kern_ctf.c	Fri Nov 25 12:20:14 2011	(r227968)
+++ releng/9.0/sys/kern/kern_ctf.c	Fri Nov 25 12:43:34 2011	(r227969)
@@ -90,7 +90,7 @@ link_elf_ctf_get(linker_file_t lf, linke
 	 * ctfcnt to -1. See below.
 	 */
 	if (ef->ctfcnt < 0)
-		return (0);
+		return (EFTYPE);
 
 	/* Now check if we've already loaded the CTF data.. */
 	if (ef->ctfcnt > 0) {


More information about the svn-src-all mailing list