Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 16:55:56 +0000
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Hartmut Brandt <harti@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r235777 - head/sys/kern
Message-ID:  <8BFFA477-46C2-49F6-804F-6D38B10AE7F7@FreeBSD.org>
In-Reply-To: <201205220723.q4M7Ng2I091715@svn.freebsd.org>

index | next in thread | previous in thread | raw e-mail


On 22. May 2012, at 07:23 , Hartmut Brandt wrote:

> Author: harti
> Date: Tue May 22 07:23:41 2012
> New Revision: 235777
> URL: http://svn.freebsd.org/changeset/base/235777
> 
> Log:
>  Make dumptid non-static. It is used by libkvm to detect whether
>  this is a VNET-kernel or not.

Just for clarifications - it's used to detect whether we are operating on
a crash dump or not in the vnet case.


> gcc used to put the static symbol into
>  the symbol table, clang does not. This fixes the 'netstat: no namelist'
>  error seen on clang+VNET systems.
> 
> Modified:
>  head/sys/kern/kern_shutdown.c
> 
> Modified: head/sys/kern/kern_shutdown.c
> ==============================================================================
> --- head/sys/kern/kern_shutdown.c	Tue May 22 07:04:23 2012	(r235776)
> +++ head/sys/kern/kern_shutdown.c	Tue May 22 07:23:41 2012	(r235777)
> @@ -151,7 +151,7 @@ static struct dumperinfo dumper;	/* our 
> 
> /* Context information for dump-debuggers. */
> static struct pcb dumppcb;		/* Registers. */
> -static lwpid_t dumptid;			/* Thread ID. */
> +lwpid_t dumptid;			/* Thread ID. */
> 
> static void poweroff_wait(void *, int);
> static void shutdown_halt(void *junk, int howto);

-- 
Bjoern A. Zeeb                                 You have to have visions!
   It does not matter how good you are. It matters what good you do!



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8BFFA477-46C2-49F6-804F-6D38B10AE7F7>