From owner-freebsd-current@FreeBSD.ORG Mon Jan 22 23:18:38 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8853716A400 for ; Mon, 22 Jan 2007 23:18:38 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5DDCE13C467 for ; Mon, 22 Jan 2007 23:18:38 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id E542147EB3; Mon, 22 Jan 2007 18:18:37 -0500 (EST) Date: Mon, 22 Jan 2007 23:18:37 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Divacky Roman In-Reply-To: <20070122213039.GA51752@stud.fit.vutbr.cz> Message-ID: <20070122231754.A17361@fledge.watson.org> References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122184807.GA26839@home.c0mplx.org> <20070122213039.GA51752@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Kurt Jaeger , freebsd-current@freebsd.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2007 23:18:38 -0000 > On Mon, Jan 22, 2007 at 07:48:07PM +0100, Kurt Jaeger wrote: >> Hi! >> >> Alex Leidinger wrote: >>> If you use a linux program, please add compat.linux.osrelease=2.6.16 to >>> /etc/sysctl.conf (my desktop is running with 2.6.16 emulation since some >>> days already). After the next boot (or after running "sysctl >>> compat.linux.osrelease=2.6.16", please make sure no linux program is >>> running already) any linux program will start with a linux kernel version >>> of 2.6.16 instead of 2.4.2. >> >> Is it possible to provide a program that lists the processes running under >> linux emu ? > > I dont think so... the distinguishing in kernel is done by comparing > p->p_sysent. but its usually very easy to say what is a linux program > > just try to kldunload linux module and if that doesnt succeed look at your > ps ax output for suspicous programs (acroread, skype etc.) This might well be something useful to add though -- an ABI name exported via kinfo_proc or such. It would also be useful for telling whether processes are 32-bit or 64-bit native processes, etc. Robert N M Watson Computer Laboratory University of Cambridge