From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 13 16:12:50 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2F8416A4DF for ; Thu, 13 Jul 2006 16:12:49 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6092443D55 for ; Thu, 13 Jul 2006 16:12:48 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k6DGCfmd068675 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 13 Jul 2006 18:12:42 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k6DGCeVb068674 for hackers@freebsd.org; Thu, 13 Jul 2006 18:12:40 +0200 (CEST) Date: Thu, 13 Jul 2006 18:12:40 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20060713161240.GA68016@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Subject: [SoC]: question about execve() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 16:12:50 -0000 hi, durin my work on SoC I happened to be in a need of "catching" the transition of execve() from fbsd binary to linux binary and back. Kostik Belousov suggested using the process_exit handler event but it doesnt contain information necessary to distinguish such a switch. He proposes extending typedef void (*execlist_fn)(void *, struct proc *); with a 3rd param "struct image_params" and extending this structure with a brand info. That would let us see such brand switches by investigating p->p_sysent and imgp->brand_type. is this ok? or is there any better solution? thnx for answer roman ---------------------- www.liberalnistrana.cz