From owner-freebsd-hackers@freebsd.org Sun Dec 18 02:20:28 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6957BC830E9 for ; Sun, 18 Dec 2016 02:20:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 355F268B for ; Sun, 18 Dec 2016 02:20:27 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 23AAF33442; Sun, 18 Dec 2016 03:20:19 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6a7Sz2Wx5j9I; Sun, 18 Dec 2016 03:20:18 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 91EB933441 for ; Sun, 18 Dec 2016 03:20:18 +0100 (CET) To: "freebsd-hackers@freebsd.org" From: Willem Jan Withagen Subject: binding by different process on the same port Message-ID: <896832c9-7d63-cd9a-b0e9-7ad32e90568a@digiware.nl> Date: Sun, 18 Dec 2016 03:20:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 02:20:28 -0000 Hi, I thought that the following was not (easily) possible? wjw ceph-osd-1 93349 14 tcp4 *:6804 *:* wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* Or is it due to: - using SO_REUSEADDR - the fact that one address is more specific than the other and as such they are considered different? --WjW From owner-freebsd-hackers@freebsd.org Sun Dec 18 08:47:28 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BF9CC8315F for ; Sun, 18 Dec 2016 08:47:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7811C208 for ; Sun, 18 Dec 2016 08:47:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 77783C8315E; Sun, 18 Dec 2016 08:47:28 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 771FCC8315D for ; Sun, 18 Dec 2016 08:47:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 41B5D206 for ; Sun, 18 Dec 2016 08:47:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id ED1141FE1B5; Sun, 18 Dec 2016 09:47:23 +0100 (CET) Subject: Re: OFED compilation To: Vijay Singh References: <93fdb580-faa1-d25b-868f-19534dca1f9e@selasky.org> Cc: "freebsd-hackers@freebsd.org" From: Hans Petter Selasky Message-ID: <44fcbd74-d222-4750-79f6-427044a77638@selasky.org> Date: Sun, 18 Dec 2016 09:46:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 08:47:28 -0000 On 12/17/16 18:34, Vijay Singh wrote: > I am looking at 9.2 and 10.3. > > On Dec 17, 2016 1:00 AM, "Hans Petter Selasky" wrote: > >> On 12/17/16 01:18, Vijay Singh wrote: >> >>> Why does the OFED use no-depend in the makefile? >>> >>> >> Which version of FreeBSD is this? I don't see it in 12-current. >> >> --HPS I believe this issue is fixed in FreeBSD-11/12. The fix will most likely not be MFC'ed to 9/10. --HPS From owner-freebsd-hackers@freebsd.org Sun Dec 18 15:57:09 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BD99C8780B for ; Sun, 18 Dec 2016 15:57:09 +0000 (UTC) (envelope-from jan@digitaldaemon.com) Received: from digitaldaemon.com (digitaldaemon.com [162.217.114.50]) by mx1.freebsd.org (Postfix) with SMTP id 1FB3D12E4 for ; Sun, 18 Dec 2016 15:57:08 +0000 (UTC) (envelope-from jan@digitaldaemon.com) Received: (qmail 41692 invoked by uid 89); 18 Dec 2016 15:50:26 -0000 Received: from c-73-198-164-157.hsd1.nj.comcast.net (HELO ?192.168.0.6?) (jan@digitaldaemon.com@73.198.164.157) by digitaldaemon.com with SMTP; 18 Dec 2016 15:50:26 -0000 Mime-Version: 1.0 (1.0) Subject: Re: binding by different process on the same port From: Jan Knepper X-Mailer: iPhone Mail (14B150) In-Reply-To: <896832c9-7d63-cd9a-b0e9-7ad32e90568a@digiware.nl> Date: Sun, 18 Dec 2016 10:50:26 -0500 Cc: "freebsd-hackers@freebsd.org" Message-Id: <4CD224CB-1114-4361-B46D-5A3E7455DA0B@digitaldaemon.com> References: <896832c9-7d63-cd9a-b0e9-7ad32e90568a@digiware.nl> To: Willem Jan Withagen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 15:57:09 -0000 I would guess > wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* was started first. Claiming a specific port on a specific IP address... Jan ManiaC++ Jan Knepper > On Dec 17, 2016, at 21:20, Willem Jan Withagen wrote: > > Hi, > > I thought that the following was not (easily) possible? > wjw ceph-osd-1 93349 14 tcp4 *:6804 *:* > wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* > > Or is it due to: > - using SO_REUSEADDR > - the fact that one address is more specific than the other and as > such they are considered different? > > --WjW > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Sun Dec 18 19:21:35 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D32B1C87F2E for ; Sun, 18 Dec 2016 19:21:35 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CC201B09 for ; Sun, 18 Dec 2016 19:21:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id EC48533092; Sun, 18 Dec 2016 20:21:32 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id thMDfV-sg6Ye; Sun, 18 Dec 2016 20:21:32 +0100 (CET) Received: from [192.168.10.10] (asus [192.168.10.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 32E2733091; Sun, 18 Dec 2016 20:21:32 +0100 (CET) Subject: Re: binding by different process on the same port To: Jan Knepper , "freebsd-hackers@freebsd.org" References: <896832c9-7d63-cd9a-b0e9-7ad32e90568a@digiware.nl> <4CD224CB-1114-4361-B46D-5A3E7455DA0B@digitaldaemon.com> From: Willem Jan Withagen Message-ID: <357e648a-d136-c251-bcdd-35eae31527d5@digiware.nl> Date: Sun, 18 Dec 2016 20:21:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <4CD224CB-1114-4361-B46D-5A3E7455DA0B@digitaldaemon.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 19:21:36 -0000 On 18-12-2016 16:50, Jan Knepper wrote: > I would guess > >> wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* > > was started first. Claiming a specific port on a specific IP address... Well I've been trying to recreate the situation with a fake server programs, one binds on localhost:port and the other on 0.0.0.0:port. And the order does not matter, but I have not (yet) been able to actually register on a port for the second time. So it needs a bit more than just: socket, bind, listen, accept --WjW > Jan > > > > ManiaC++ > Jan Knepper > > On Dec 17, 2016, at 21:20, Willem Jan Withagen > wrote: > >> Hi, >> >> I thought that the following was not (easily) possible? >> wjw ceph-osd-1 93349 14 tcp4 *:6804 *:* >> wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* >> >> Or is it due to: >> - using SO_REUSEADDR >> - the fact that one address is more specific than the other and as >> such they are considered different? >> >> --WjW >> _______________________________________________ >> freebsd-hackers@freebsd.org >> mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org >> " From owner-freebsd-hackers@freebsd.org Mon Dec 19 19:19:30 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65753C885B1 for ; Mon, 19 Dec 2016 19:19:30 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 220CC1F02 for ; Mon, 19 Dec 2016 19:19:30 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTP id uBJJJMC3079925 for ; Mon, 19 Dec 2016 14:19:27 -0500 (EST) (envelope-from george+freebsd@m5p.com) To: freebsd-hackers@freebsd.org From: George Mitchell Subject: USB ppbus? Message-ID: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> Date: Mon, 19 Dec 2016 14:19:22 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=10.0 tests=ALL_TRUSTED, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mattapan.m5p.com X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.1 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Mon, 19 Dec 2016 14:19:28 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 19:19:30 -0000 I have a USB cable that terminates in a DB25 connector. Inside is a Prolific Technology PL2305: http://prolificusa.com/files/ds_pl2305I_v1.0.pdf It probes as a ulpt. I would love if there existed such a thing as a uppi device. Does it sound possible to get to such a result by extending the ppbus code to know about USB? Or might it be simpler to try to add the ppi ioctls (PPIGDATA, etc.) to ulpt.c? -- George From owner-freebsd-hackers@freebsd.org Mon Dec 19 21:16:27 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E9A9C88D41 for ; Mon, 19 Dec 2016 21:16:27 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F1DCF1FA2 for ; Mon, 19 Dec 2016 21:16:26 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id t184so28435551qkd.0 for ; Mon, 19 Dec 2016 13:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=RaTnREku8rn/CbJ8IKstt1qcwHcGIZhByPc9CeD5yhQ=; b=sEaf6rK44qh/XL2m6HZtZpfjEHx7m0MkaMFJj4HJxQFddB0iEGOo2UURspd+wSQoXA RAk8WPegHMr1+J1aB9mWJ1ydIZfgwOZA4Nx/m6StHeiFqTKrE0Hl4hQ86uuqikyV/35z 7EEwthedhslSNF4cXS7wrQDyEN2kMyODbdQsHErLm3fELNaTfmsdeOvq1BZNM8STpnRI 5S4UUvWrXpD6n3AMaztLd6D0HUDj58fX7ZCsVKGWWc5TAi3vY13X32iuaxp2XszCrMol BturbPkXGvPOr3rXm6RrIGnQLX7SqYUiZzyh4RHEU/AGSSgL7f9ea2uNoQLH7NrYFuBi XobQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=RaTnREku8rn/CbJ8IKstt1qcwHcGIZhByPc9CeD5yhQ=; b=YR+NzKJ+3HNFzD9zX87KgOStXIIYUHMRNSP3jj+X/BEvQZTAVxdAONJRHpaXraiECk JFhrH24HCiR1ag7U1wrOPbHgqJwwV7tGqR90OqRBRsYYug3GbRfpvPAjj1TqXjGy02Cg 8PiS2KZDWY0EkSyvKRwYf0dopUwbaUUwIYHnINfqQMJ0R0b6nw8bDJZi1UxK4pqTQfVG bK6YCdbLt7vmV2Lox9C/B+2cadGSH2y3MlxLzmLzW/A51ClCjJcncN54G9X0nErZgW/n QZfPqWNLLYrQGuchvQjRuYCV211l/xAdc6K76qGxDi2WthA3F7+gFMDRxjNL3SK/Hcsr Ue8Q== X-Gm-Message-State: AIkVDXLZPqIbyrB4kTjwkSc9fQA1unLdjktcwD5XhYIDQXf33QbL93ruzYp2TXIAfBHC3sUBFvsPGNA1Dp50Rg== X-Received: by 10.55.103.133 with SMTP id b127mr2741636qkc.16.1482182185979; Mon, 19 Dec 2016 13:16:25 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.181.208 with HTTP; Mon, 19 Dec 2016 13:16:25 -0800 (PST) From: Alan Somers Date: Mon, 19 Dec 2016 14:16:25 -0700 X-Google-Sender-Auth: _iyDyVWlFPQRCGp4Q6cPrWWcMK8 Message-ID: Subject: Setting a dump device from db> ? To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 21:16:27 -0000 Is it possible to set a dump device from loader.conf or from the db> prompt? I'm trying to investigate a panic in mpr(4), but I can only reproduce it during the boot, before rc(8) has set my dump device. It looks like ada(4) initializes before mpr(4), so I should be able to dump to an ada device, if only I can figure out how. If not, I suppose I'll have to try gdb over firewire. -Alan From owner-freebsd-hackers@freebsd.org Mon Dec 19 21:27:13 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DEF5C88152 for ; Mon, 19 Dec 2016 21:27:13 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E28721586; Mon, 19 Dec 2016 21:27:12 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt0-x22c.google.com with SMTP id w33so159558308qtc.3; Mon, 19 Dec 2016 13:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J6qkXDw7mt+LpldZJKdLCUElIZn1yLJLqILzNJxM2SU=; b=O0DWqOOOZfO0Mjool0Aw4TqwBRdAls9hz+zbHByGCNJNnaljAQnKvxUhRMcXKtijX+ Nx9SwIoFxO0MOZxG9Z1PyhkXk34d87uetATdL6uzVkdKszc5ZayRCqEXl7bf+PUCA5Tq om+m7Q56PizLdDout4SWb/yoOz7SPoTIHbdKKewPWClyhc1/UiIa+/eoJ8K711Q+NBob 5qGFZT3BJvT4O3BrLkclHVcW/kllGykNB7qIFFIX50n5gDpV52lDBX1kv1HgXyqHiTkk 508JWjz4rGZL9U1cfh1cJz5h357w0cmZWDNfwu/5igSHpJEJJ5Tvy+7GmQV+SetsAmca Levw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=J6qkXDw7mt+LpldZJKdLCUElIZn1yLJLqILzNJxM2SU=; b=g6I5zF8hcimsBU6tXbuEEpHy88SE7wep/CtUKrNxKr9jn2boN67ho2TA0tl2J9N9Zr 3CnlWiyPieBEj5Mr90PYx8QC1RlIyi3UOB0aKx8OvQNMXx804X8XaiCN+Y9FcAkLAXOC qrwlPoWtKbk7XGLCG+KWM+1RU7OhDSVLwz9jrAhixMO8oM2N/Qy3l+lCJIKafu1SrU7w KfeD8euFXnTVr6Wps1sXwKwnYN8xYn7dvx7ZhnjAV3zF+2qymOI4TjflDcNnsnJVrlAx YPvH8nRBavtti+UgohlAOcJipV6pppDkJKUuYQCe4sP9anDafaDLOfneP8kxwk0CaDO7 K/Uw== X-Gm-Message-State: AIkVDXKOJoaZoN20LfZMd3ldXYLH8PxtF52mVd8nqdOmo0cPtVFJRHwdCX0buUln5dwBBw== X-Received: by 10.237.37.196 with SMTP id y4mr19323138qtc.8.1482182832043; Mon, 19 Dec 2016 13:27:12 -0800 (PST) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id 29sm11409426qtu.21.2016.12.19.13.27.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Dec 2016 13:27:11 -0800 (PST) Sender: Mark Johnston Date: Mon, 19 Dec 2016 13:33:08 -0800 From: Mark Johnston To: Alan Somers Cc: "freebsd-hackers@freebsd.org" Subject: Re: Setting a dump device from db> ? Message-ID: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 21:27:13 -0000 On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: > Is it possible to set a dump device from loader.conf or from the db> > prompt? I'm trying to investigate a panic in mpr(4), but I can only > reproduce it during the boot, before rc(8) has set my dump device. It > looks like ada(4) initializes before mpr(4), so I should be able to > dump to an ada device, if only I can figure out how. If not, I > suppose I'll have to try gdb over firewire. You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and init_dumpdev(). This should probably be documented in loader.conf(5). From owner-freebsd-hackers@freebsd.org Mon Dec 19 21:51:25 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0511AC88BB1 for ; Mon, 19 Dec 2016 21:51:25 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 63392158F for ; Mon, 19 Dec 2016 21:51:23 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.7.181]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPSA (Nemesis) id 0MNPzx-1cClFF22PJ-006tGm for ; Mon, 19 Dec 2016 22:51:16 +0100 Received: from bsch by becker.bs.l with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cJ5q0-0002SB-0T for freebsd-hackers@freebsd.org; Mon, 19 Dec 2016 22:51:16 +0100 Date: Mon, 19 Dec 2016 22:51:15 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: Where is Gdb's start command? Message-ID: <20161219215115.GA8918@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) Sender: Bertram Scharpf X-Provags-ID: V03:K0:NU4BhV8XsGIf/JkJusrqwu9dPiDUgfqM2eXtDx7ZBTQ2bTuEXTb Huw2SWMwOChJHC58N/RMSmaEMVo5QSCs4SKSBa5vIJTVzHyleCGZTqrsSkePDNCwSgejyh7 3GGFDt1J7JgFIGlvhf/vNNeA60LcmpiyVJKM3WsIPMv1vOQ/8xKfo+ZX4+a4aaeCN/De7Uc o1ReIupo26r/O4MNjLyYQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:JTRRZmEVHNU=:t2+GikFp65/yX35BrrHL6E ZshgnGGKGDM/qjz5aqqu29MEhKmoPRGrokkCD3wsMvZ87NrE8D19DwhxAOptkFE0MKBULAGHx 9pBwnXxd/ruOoNyYi/WXHMKnKnBGbLDdbYR/orGWLP2JMVrqMhIOOPG038AQoiEtvuRKojAIY /PqALpHQ5k2jp5IX+oZHi49rkeJAYojdQBboQ7mbfzG5ksK+n3EOWlP0B6HAmz9bGX8QdYysh NnzqFn/h82OW1YIPeXGC61pqhsJ65eSS/VGbE8beBNjzpRauQM1JsBsrsHNQqE9/3P9gI7OUR xzgD/6flmgSbGBqWWww3pPAVwvds21Dsh8gd+E7jS3eWsEkj73XcRVwZ+nGJME2u9eGNeagY6 Xjv5LmFG9+4R2238334OL8EZuu1EtWf21QGbw/ekU7PhQvcAEmIawDv9EcX6Xl0QSvF4aq4Y/ gn27cstvPs+nrG5HIrsWExH5IqYMpKNqIAvrWi0O+n7AtDOvmjxnR+Q6X3OJYDUQqEmcgfZoQ S0/8XWQ71E2ZzQi27IKVWBgevQ7JyqVEq37qRbUoWcA9dSbeBBm9hk66PpEnScM8mM+lD7Hsh wa74a5PflV20rEPOvERCrNBai/oxu4Igw5hz7ycQ5POwEZQBVg9ByxwqqZezy2qYx+MueXpgt ZFIthqm7qw/PczSS8t9wEY5tsDRggoMvyqjUHICQPwdBaVPUbo+GQ4kvi1+gRt8+6v3s= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 21:51:25 -0000 Hi, I do not actually want to debug something but rather write some Gdb examples for a tutorial. I would like the program to stop at the first instruction of main(). Normally I do this using the command "start". But on my FreeBSD this command doesn't seem to exist. (gdb) n The program is not being run. (gdb) start Undefined command: "start". Try "help". (gdb) help start Undefined command: "start". Try "help". Why isn't it defined? What should I say instead? $ gdb -version GNU gdb 6.1.1 [FreeBSD] ... $ uname -r 10.3-STABLE Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-hackers@freebsd.org Mon Dec 19 22:01:50 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4CB28C88FF6 for ; Mon, 19 Dec 2016 22:01:50 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (unknown [IPv6:2001:4060:1:1001::14:54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15FD91EC1 for ; Mon, 19 Dec 2016 22:01:49 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPSA id 5A666F6B7E for ; Mon, 19 Dec 2016 23:01:46 +0100 (CET) Subject: Re: Where is Gdb's start command? To: freebsd-hackers@freebsd.org References: <20161219215115.GA8918@becker.bs.l> From: Andreas Tobler Message-ID: <69318469-42ce-ceba-3892-94d9a100226a@fgznet.ch> Date: Mon, 19 Dec 2016 23:03:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161219215115.GA8918@becker.bs.l> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: Obelix Submit on 127.0.1.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 22:01:50 -0000 On 19.12.16 22:51, Bertram Scharpf wrote: > Hi, > > I do not actually want to debug something but rather write > some Gdb examples for a tutorial. I would like the program > to stop at the first instruction of main(). Normally I do > this using the command "start". But on my FreeBSD this > command doesn't seem to exist. > > (gdb) n > The program is not being run. > (gdb) start > Undefined command: "start". Try "help". > (gdb) help start > Undefined command: "start". Try "help". > > Why isn't it defined? What should I say instead? > > $ gdb -version > GNU gdb 6.1.1 [FreeBSD] > ... > $ uname -r > 10.3-STABLE > > Thanks in advance. If you use the ports devel/gdb the start command works as documented. If you are bound to the src gdb then you might want to try the 'run' command. Personally I'd recommend using the ports gdb. Andreas From owner-freebsd-hackers@freebsd.org Mon Dec 19 22:16:41 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5396C882D8 for ; Mon, 19 Dec 2016 22:16:41 +0000 (UTC) (envelope-from benlaurie@gmail.com) Received: from mail-wj0-x229.google.com (mail-wj0-x229.google.com [IPv6:2a00:1450:400c:c01::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5925915E9 for ; Mon, 19 Dec 2016 22:16:41 +0000 (UTC) (envelope-from benlaurie@gmail.com) Received: by mail-wj0-x229.google.com with SMTP id tk12so162418141wjb.3 for ; Mon, 19 Dec 2016 14:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=//DtVk/YGRUtt8LW+XImxXagyePdeOFbnnX69j231WA=; b=vLaU4h3Eyed+fK9gOFsjhU626+UhoNJlCwO1TanJ//8rCF7a9K7z7pqmm2rw3EJvQZ H6FLFIh0SQkLMA7NJkbLXK7jNkk0xEUXImld7stOcQQM1ZAYzkKJNrD28/WWFI4Oc3Ak zNS1eY8tANiLXa0rJLJuFbfqCPQKLgayefdeuufWXqRy80TGTnVC5g6Sp8XusxDDMfMh +fQtLfojrPEv5/Nrb9DcubL9Je8fXJEtU5ugy9DHGYHwfa+H7IhwOc8FtfBzOZ02erDq CaL9j8jbeMhxLpp2S2GQ7fZ6Pmb09u9E0ZBDkyUdEl55L+oZFB1qdD3VF8BAOEUBrCkn ukMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=//DtVk/YGRUtt8LW+XImxXagyePdeOFbnnX69j231WA=; b=OE6fVjXCh3FYp+OKhuWYbIXlmFhz2GmLGAounM3FJ7wTYyq0kxaV9/bmA2Csg/glNH Mw8zar/JCS87lXQspCriuU/oCObVpe3t9HJv/GUI3Mg2f95wTB7UhnjRFCjQnoQAPijA 6pp1MqJZDoKyOXlfJMUPnw8s+vpNDhAR2SGEdcsCuRLpn9cO4Z7UMMNOb+9sCpV1WuKs TAivAqwJC5DksldLcBHQFkQcsprciSrvdjyMS/xZL9HGjRhUXCbaRRIKNvuG88fO6HLS wLXTKI337qPyWmsfJG4KW8vARjNMjN92y3V2aJbGW1gVsXxV+IGfB4WHz7QtoSUkhtKq +ZTg== X-Gm-Message-State: AIkVDXLDw2Zr1nxUZpVo7v6zRPSULfklVjgNo0FivdlvvLyOm+IRKC3Z2Vpn7jJ+IUpAtamUexbCVZR0W+QKOg== X-Received: by 10.194.221.4 with SMTP id qa4mr18815363wjc.179.1482185798616; Mon, 19 Dec 2016 14:16:38 -0800 (PST) MIME-Version: 1.0 Sender: benlaurie@gmail.com Received: by 10.28.5.72 with HTTP; Mon, 19 Dec 2016 14:16:38 -0800 (PST) In-Reply-To: <20161219215115.GA8918@becker.bs.l> References: <20161219215115.GA8918@becker.bs.l> From: Ben Laurie Date: Mon, 19 Dec 2016 22:16:38 +0000 X-Google-Sender-Auth: 6ye9H8O25B1_6vDK-mXd8xsq_uw Message-ID: Subject: Re: Where is Gdb's start command? To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 22:16:41 -0000 b main r On 19 December 2016 at 21:51, Bertram Scharpf wrote: > Hi, > > I do not actually want to debug something but rather write > some Gdb examples for a tutorial. I would like the program > to stop at the first instruction of main(). Normally I do > this using the command "start". But on my FreeBSD this > command doesn't seem to exist. > > (gdb) n > The program is not being run. > (gdb) start > Undefined command: "start". Try "help". > (gdb) help start > Undefined command: "start". Try "help". > > Why isn't it defined? What should I say instead? > > $ gdb -version > GNU gdb 6.1.1 [FreeBSD] > ... > $ uname -r > 10.3-STABLE > > Thanks in advance. > > Bertram > > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germany > http://www.bertram-scharpf.de > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Mon Dec 19 22:19:03 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B3A7C884B5 for ; Mon, 19 Dec 2016 22:19:03 +0000 (UTC) (envelope-from grog@lemis.com) Received: from www.lemis.com (www.lemis.com [208.86.226.86]) by mx1.freebsd.org (Postfix) with ESMTP id 296B41907 for ; Mon, 19 Dec 2016 22:19:02 +0000 (UTC) (envelope-from grog@lemis.com) Received: from eureka.lemis.com (www.lemis.com [208.86.226.86]) by www.lemis.com (Postfix) with ESMTP id 733911B72803; Mon, 19 Dec 2016 22:18:56 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id 2BB384494B1; Tue, 20 Dec 2016 09:18:55 +1100 (AEDT) Date: Tue, 20 Dec 2016 09:18:55 +1100 From: Greg 'groggy' Lehey To: Bertram Scharpf Cc: freebsd-hackers@freebsd.org Subject: Re: Where is Gdb's start command? Message-ID: <20161219221855.GB16173@eureka.lemis.com> References: <20161219215115.GA8918@becker.bs.l> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <20161219215115.GA8918@becker.bs.l> Organization: The FreeBSD Project Phone: +61-3-5346-1370, +61-3-5309-0418 Mobile: 0401 265 606. Use only as instructed. WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 22:19:03 -0000 --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 19 December 2016 at 22:51:15 +0100, Bertram Scharpf wrote: > Hi, > > I do not actually want to debug something but rather write > some Gdb examples for a tutorial. I would like the program > to stop at the first instruction of main(). Normally I do > this using the command "start". I've never seen this before. > But on my FreeBSD this command doesn't seem to exist. > > (gdb) n > The program is not being run. > (gdb) start > Undefined command: "start". Try "help". > (gdb) help start > Undefined command: "start". Try "help". > > Why isn't it defined? What should I say instead? It is defined, just not in terms that you're expecting. run or r. But that will run the program. First you need to set a breakpoint where you want to stop: (gdb) b main (gbb) r Greg -- Sent from my desktop computer. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlhYXM8ACgkQIubykFB6QiPRrwCgq+09zvPB1epzHNHbyoJXUBo/ +zEAoJ24mK0jWKHpG0dMbs21J44ZPuq0 =Ouyk -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- From owner-freebsd-hackers@freebsd.org Tue Dec 20 16:49:47 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98D1FC89ED6 for ; Tue, 20 Dec 2016 16:49:47 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63B0115F9 for ; Tue, 20 Dec 2016 16:49:47 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 4D3813392F; Tue, 20 Dec 2016 17:49:44 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5LvM782EHLKw; Tue, 20 Dec 2016 17:49:43 +0100 (CET) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 5E6B43392E; Tue, 20 Dec 2016 17:49:43 +0100 (CET) Subject: Re: binding by different process on the same port To: Jan Knepper , "freebsd-hackers@freebsd.org" References: <896832c9-7d63-cd9a-b0e9-7ad32e90568a@digiware.nl> <4CD224CB-1114-4361-B46D-5A3E7455DA0B@digitaldaemon.com> <357e648a-d136-c251-bcdd-35eae31527d5@digiware.nl> From: Willem Jan Withagen Message-ID: <65e3c99d-1267-c719-5da4-49ae88336086@digiware.nl> Date: Tue, 20 Dec 2016 17:49:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <357e648a-d136-c251-bcdd-35eae31527d5@digiware.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 16:49:47 -0000 On 18-12-2016 20:21, Willem Jan Withagen wrote: > On 18-12-2016 16:50, Jan Knepper wrote: >> I would guess >> >>> wjw ceph-osd-0 93336 43 tcp4 127.0.0.1:6804 *:* >> >> was started first. Claiming a specific port on a specific IP address... > > Well I've been trying to recreate the situation with a fake server > programs, one binds on localhost:port and the other on 0.0.0.0:port. And > the order does not matter, but I have not (yet) been able to actually > register on a port for the second time. > > So it needs a bit more than just: > socket, bind, listen, accept 'mmmm, There is SO_REUSEPORT, which explains the exact behaviour of what is going on: SO_REUSEPORT allows completely duplicate bindings by multiple processes if they all set SO_REUSEPORT before binding the port. This option permits multiple instances of a program to each receive UDP/IP i multicast or broadcast datagrams destined for the bound port. But the flag is not explicitly set in the code. But there is a LOT of info on the net about Linux <> FreeBSD on SO_REUSE{ADRR,PORT}. So i guess that I have enough things to read over X-mas. --WjW From owner-freebsd-hackers@freebsd.org Tue Dec 20 17:58:23 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3F0DC89A34 for ; Tue, 20 Dec 2016 17:58:23 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E99EC2 for ; Tue, 20 Dec 2016 17:58:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 64AAE1FE023; Tue, 20 Dec 2016 18:58:19 +0100 (CET) Subject: Re: USB ppbus? To: George Mitchell , freebsd-hackers@freebsd.org References: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> From: Hans Petter Selasky Message-ID: <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> Date: Tue, 20 Dec 2016 18:57:50 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 17:58:23 -0000 On 12/19/16 20:19, George Mitchell wrote: > I have a USB cable that terminates in a DB25 connector. Inside is a > Prolific Technology PL2305: > http://prolificusa.com/files/ds_pl2305I_v1.0.pdf > It probes as a ulpt. I would love if there existed such a thing as > a uppi device. Does it sound possible to get to such a result by > extending the ppbus code to know about USB? Or might it be simpler > to try to add the ppi ioctls (PPIGDATA, etc.) to ulpt.c? -- George Hi George, There is currently no such thing. ulpt only provides a raw character device. The ppbus could possibly be implemented in userspace using libcuse. --HPS From owner-freebsd-hackers@freebsd.org Tue Dec 20 18:15:13 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7009EC8967B for ; Tue, 20 Dec 2016 18:15:13 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AD30130F for ; Tue, 20 Dec 2016 18:15:13 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTP id uBKIF2vt088967 for ; Tue, 20 Dec 2016 13:15:08 -0500 (EST) (envelope-from george+freebsd@m5p.com) Subject: Re: USB ppbus? To: freebsd-hackers@freebsd.org References: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> From: George Mitchell Message-ID: Date: Tue, 20 Dec 2016 13:15:02 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=10.0 tests=ALL_TRUSTED, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mattapan.m5p.com X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.1 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Tue, 20 Dec 2016 13:15:11 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 18:15:13 -0000 On 12/20/16 12:57, Hans Petter Selasky wrote: > On 12/19/16 20:19, George Mitchell wrote: >> I have a USB cable that terminates in a DB25 connector. Inside is a >> Prolific Technology PL2305: >> http://prolificusa.com/files/ds_pl2305I_v1.0.pdf >> It probes as a ulpt. I would love if there existed such a thing as >> a uppi device. Does it sound possible to get to such a result by >> extending the ppbus code to know about USB? Or might it be simpler >> to try to add the ppi ioctls (PPIGDATA, etc.) to ulpt.c? -- George > > Hi George, > > There is currently no such thing. ulpt only provides a raw character > device. The ppbus could possibly be implemented in userspace using libcuse. > > --HPS > > [...] Thanks for the response. I think I could kludge the ioctls I want into ulpt.c by learning more about the USB system works. Possibly. On a good day. -- George From owner-freebsd-hackers@freebsd.org Tue Dec 20 18:41:47 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14E9CC87404 for ; Tue, 20 Dec 2016 18:41:47 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7E671689 for ; Tue, 20 Dec 2016 18:41:46 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: f566ee32-c6e3-11e6-8c89-112185c90658 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id f566ee32-c6e3-11e6-8c89-112185c90658; Tue, 20 Dec 2016 18:41:46 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id uBKIfbkQ004011; Tue, 20 Dec 2016 11:41:37 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1482259297.48539.30.camel@freebsd.org> Subject: Re: USB ppbus? From: Ian Lepore To: George Mitchell , freebsd-hackers@freebsd.org Date: Tue, 20 Dec 2016 11:41:37 -0700 In-Reply-To: References: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 18:41:47 -0000 On Tue, 2016-12-20 at 13:15 -0500, George Mitchell wrote: > On 12/20/16 12:57, Hans Petter Selasky wrote: > > > > On 12/19/16 20:19, George Mitchell wrote: > > > > > > I have a USB cable that terminates in a DB25 connector.  Inside > > > is a > > > Prolific Technology PL2305: > > > http://prolificusa.com/files/ds_pl2305I_v1.0.pdf > > > It probes as a ulpt.  I would love if there existed such a thing > > > as > > > a uppi device.  Does it sound possible to get to such a result by > > > extending the ppbus code to know about USB?  Or might it be > > > simpler > > > to try to add the ppi ioctls (PPIGDATA, etc.) to ulpt.c?   -- > > > George > > Hi George, > > > > There is currently no such thing. ulpt only provides a raw > > character > > device. The ppbus could possibly be implemented in userspace using > > libcuse. > > > > --HPS > > > > [...] > Thanks for the response.  I think I could kludge the ioctls I want > into > ulpt.c by learning more about the USB system works.  Possibly.  On a > good day.                                                    -- > George > IMO, ppbus solves a 1990s problem that we don't much have anymore: multiplexing multiple concurrent (or time-slice-shared) users of a single parallel port that may have multiple non-printer devices daisy- chained on it. If the only thing you're looking for is the ability to treat some of the DB25 pins as gpio pins, just adding the ioctls to ulpt.c might be the way to go. Another possiblity, if all you're after is gpio on the end of a usb wire, is to use an FTDI usb-serial adapter and then use either the existing ioctl() interface in the uftdi driver (see uftdi(4) manpage), or libusb and libftdi (I'm not sure the latter has ever been ported to freebsd). -- Ian From owner-freebsd-hackers@freebsd.org Tue Dec 20 19:26:27 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0900C891ED for ; Tue, 20 Dec 2016 19:26:27 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5155CD5C; Tue, 20 Dec 2016 19:26:27 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTP id uBKJQKFq089537; Tue, 20 Dec 2016 14:26:25 -0500 (EST) (envelope-from george+freebsd@m5p.com) Subject: Re: USB ppbus? To: Ian Lepore , freebsd-hackers@freebsd.org References: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> <1482259297.48539.30.camel@freebsd.org> From: George Mitchell Message-ID: <7cd409d4-cb49-6384-180b-51e58ca54a66@m5p.com> Date: Tue, 20 Dec 2016 14:26:20 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1482259297.48539.30.camel@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=10.0 tests=ALL_TRUSTED, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mattapan.m5p.com X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.1 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Tue, 20 Dec 2016 14:26:26 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 19:26:27 -0000 On 12/20/16 13:41, Ian Lepore wrote: > On Tue, 2016-12-20 at 13:15 -0500, George Mitchell wrote: >> [...] >> Thanks for the response. I think I could kludge the ioctls I want >> into >> ulpt.c by learning more about the USB system works. Possibly. On a >> good day. -- >> George >> > > IMO, ppbus solves a 1990s problem that we don't much have anymore: > multiplexing multiple concurrent (or time-slice-shared) users of a > single parallel port that may have multiple non-printer devices daisy- > chained on it. > > If the only thing you're looking for is the ability to treat some of > the DB25 pins as gpio pins, just adding the ioctls to ulpt.c might be > the way to go. > > Another possiblity, if all you're after is gpio on the end of a usb > wire, is to use an FTDI usb-serial adapter and then use either the > existing ioctl() interface in the uftdi driver (see uftdi(4) manpage), > or libusb and libftdi (I'm not sure the latter has ever been ported to > freebsd). > > -- Ian > [...] Thanks. I need the DB25 Centronics interface on the end of a USB wire, so I guess I'll learn more about the USB system. Musing: Has any other presently defunct company exerted such an influence on computer interfacing over the years than Centronics Data Computer Corporation? (Yes, I know they defined the 36-pin "blue ribbon" interface, and that IBM promulgated the DB25 connector for it, but electrically it was the Centronics interface.) -- George From owner-freebsd-hackers@freebsd.org Tue Dec 20 20:45:05 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44DCDC89A69 for ; Tue, 20 Dec 2016 20:45:05 +0000 (UTC) (envelope-from nicolaspapp@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D9D216D5 for ; Tue, 20 Dec 2016 20:45:05 +0000 (UTC) (envelope-from nicolaspapp@gmail.com) Received: by mail-oi0-x236.google.com with SMTP id w63so190381219oiw.0 for ; Tue, 20 Dec 2016 12:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=A38lIq6CiSwuzz5t5jeEP0b6NZgdh5aCbizREeW4Vzk=; b=HcbQGV9VSldkyjAlzgFwo3W+MSXucGyfvuUc+GCpQ6Hdjira9vA8UvtE1yHOkbTISf LY1+13VAbbjktdDyrLaFn9rs5IssT5TqGGJdy1AbqLJe5nbGcity7dVcwdzSiHdWkwGT Nuu/+14Qo5S7A5G21AVWLJybBeZyELEZ9SKKD2U8Qjhs6dQUwJ92uf9/TOumIEKxbOm9 jRjGk6GCsPxm4Tf+kYRgOiS5/7yQf2dgfYU2PNbc7ylVrSt9v+FD/2DSoT3Ykd4l4LEA jJUVRxCrNHeoyf9x0bawapNScUZYOulQ1ZxRvoHx2Zn6OTLbpSuuRXFQBQmvSZWaXcYx W6WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=A38lIq6CiSwuzz5t5jeEP0b6NZgdh5aCbizREeW4Vzk=; b=DB1sFCiJoiHo0VxuLuBNsdCs+4S+xs5I0+VSLh7JCpDBGLihSHyTZKAB02BKtV1Xxb i59rJtKVSKc6HuiO9BI7x+fp/9xaE7KkgTPNVmzaQlYFtcJQkph9HkMipfTkLUpw+0mQ +n/da7x0nQOPNme+4+Uc9Qm+dJ+HWaXLkLNlgEyC5xHsKsF0RMzXoO9Z7l/mGy5QObng JaFRgCdOlDp5Yhpjrt1SigvDmAeEmoojPL3voXM2BxPCRoKVkmXERX9dGccHR7lVmHxb hsbnrtDIN5YQ8lKz04gNXKaKAwBHGJoNuOU6uadLF9tamZL2qGF5LrtnTMLk3FTjXTN5 FeiA== X-Gm-Message-State: AIkVDXLtCEO1smDIEk041CsbnU2qWbTvsyQvg+vGjVpmRehTkhfQTOfK4UfCZHXl+xykFzCfLNFAkuQuPEWWHg== X-Received: by 10.157.22.136 with SMTP id c8mr743228ote.260.1482266704283; Tue, 20 Dec 2016 12:45:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.61.137 with HTTP; Tue, 20 Dec 2016 12:45:03 -0800 (PST) From: =?UTF-8?Q?Nicol=C3=A1s_Papp?= Date: Tue, 20 Dec 2016 17:45:03 -0300 Message-ID: Subject: Kernel developing tools To: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Tue, 20 Dec 2016 22:17:07 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 20:45:05 -0000 Hi there! Has somebody managed to configure any IDE to build and debug the freeBSD kernel? I am currently using kgdb and it takes me a ton of time to rebuild and debug for just some minor changes! I also want to know if I can rebuild just the scheduler file of my kernel without needing to rebuild the whole kernel, since it is the only file where I plan to make modifications. Hope I can get some useful information while I keep incursionating on the freeBSD kernel. Thanks, Nicolas From owner-freebsd-hackers@freebsd.org Tue Dec 20 22:34:37 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40144C81346 for ; Tue, 20 Dec 2016 22:34:37 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFD321B1A for ; Tue, 20 Dec 2016 22:34:36 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x22c.google.com with SMTP id q68so64210588qki.1 for ; Tue, 20 Dec 2016 14:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=U82bN75NYlPKKKov3DwyrjRjQzx1928uDNO6LEF3ipo=; b=BDhf9Sm2YjA+qX1Ry2w+PesqgmJ1stXhNbfrFMEogsIjS8JI87fmrcLVIt/KB77C1x TslnuxL8rxSEhsNbI2jLKnW1A29Ubvhnl9ES+wBBNj3QYIu8bZ0SG7i9jN+KbfpVuqSQ 3VOhoBlkL/lB5/IZaHZM7JCxyyXYeAq3tLKJGtCg0kGJayL5zrcA7ccn1MMSMDFVmy/C 76TTETE/u8lUf2EqoStp1/wJdQSwRbXkOVQ+ugJsV06ErljYCpYYYK+X+3dMmjSfCEp8 6VJO//eozsBrAYfbsH1rfU89k7SdX4gdQAwvzsY0EoMmeDze3Z9X6gkqbiUyE45xPAk7 ciHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=U82bN75NYlPKKKov3DwyrjRjQzx1928uDNO6LEF3ipo=; b=B/zC60ferjd/MsWuWT7+jSGSvi0HyfD5ihWzgN1UTPrP2FMkPM2tYctfzMLaIpL5y3 D3kBLw/WZtkShzm17b8Dc6rr20I5XIxdiAuKgi5DfGobLcXEBNaZ3EeJxamma9SrxVhx H6Alt/W1wgN2u2vM4YihwE2LWBj/Ia4Ce3uNh/5+w7heuffja+GVAxXsHC12eq2TkY8S PIFVA0/tapTg3JWGLedj19ApGcQQu/HrEIPi5/806l6NWt2tdr+HPmljpRyKnolP7fSm evZLpHPkrCwNIy4ISQv0UJlOICeV0j1STZIcIMeY0rpbcJwKGQvYU6Jl4XTwFQ6YpQve M9VA== X-Gm-Message-State: AIkVDXKjl2P9kydeZiuKvQf+WqAqADwGDINEduoivmcZaXibiSkal6Yme7MixyVyk/tSW1S2r/PtDwagxmIowA== X-Received: by 10.55.98.74 with SMTP id w71mr1845126qkb.41.1482273276119; Tue, 20 Dec 2016 14:34:36 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.181.208 with HTTP; Tue, 20 Dec 2016 14:34:35 -0800 (PST) In-Reply-To: References: From: Alan Somers Date: Tue, 20 Dec 2016 15:34:35 -0700 X-Google-Sender-Auth: QbvUPik9uZanYfrK3M3S0LuJOg4 Message-ID: Subject: Re: Kernel developing tools To: =?UTF-8?Q?Nicol=C3=A1s_Papp?= Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 22:34:37 -0000 On Tue, Dec 20, 2016 at 1:45 PM, Nicol=C3=A1s Papp = wrote: > Hi there! > > Has somebody managed to configure any IDE to build and debug the freeBSD > kernel? > > I am currently using kgdb and it takes me a ton of time to rebuild and > debug for just some minor changes! > > I also want to know if I can rebuild just the scheduler file of my kernel > without needing to rebuild the whole kernel, since it is the only file > where I plan to make modifications. > > Hope I can get some useful information while I keep incursionating on the > freeBSD kernel. > Thanks, > Nicolas If you're only modifying a few files, you don't need to rebuild the entire kernel. Use -DKERNFAST on the command line and only recently touched files will be rebuild. For example, make -j24 -DKERNFAST buildkernel From owner-freebsd-hackers@freebsd.org Wed Dec 21 02:22:13 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20C14C8932B for ; Wed, 21 Dec 2016 02:22:13 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B00691A42 for ; Wed, 21 Dec 2016 02:22:11 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id uBL2M0NB066321 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Dec 2016 03:22:01 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: nicolaspapp@gmail.com Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id uBL2LqHJ058427 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 21 Dec 2016 09:21:52 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: Kernel developing tools To: =?UTF-8?Q?Nicol=c3=a1s_Papp?= , freebsd-hackers@freebsd.org References: From: Eugene Grosbein Message-ID: <5859E73B.7060700@grosbein.net> Date: Wed, 21 Dec 2016 09:21:47 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 02:22:13 -0000 21.12.2016 3:45, Nicolás Papp пишет: > Has somebody managed to configure any IDE to build and debug the freeBSD > kernel? > > I am currently using kgdb and it takes me a ton of time to rebuild and > debug for just some minor changes! First, "make NO_KERNELCLEAN=yes buildkernel" avoids cleanup of build directory and allows reuse of previously built object files corresponding to unchanged sources - use for relatively minor changes, not after switch to another major release sources. Then, "make NO_KERNELDEPEND=yes buildkernel" skips lengthy rebuild of dependencies - use if you has not changed kernel configuration since previous build. And "make MODULES_WITH_WORLD=yes buildkernel" skips rebuild for whole bunch of kernel modules while building just kernel. You may combine these: make NO_KERNELCLEAN=yes NO_KERNELDEPEND=yes MODULES_WITH_WORLD=yes buildkernel. This way decreases build times dramatically. From owner-freebsd-hackers@freebsd.org Wed Dec 21 16:00:44 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E464C8AC0E for ; Wed, 21 Dec 2016 16:00:44 +0000 (UTC) (envelope-from nicolaspapp@gmail.com) Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7D4913C2 for ; Wed, 21 Dec 2016 16:00:43 +0000 (UTC) (envelope-from nicolaspapp@gmail.com) Received: by mail-oi0-x22b.google.com with SMTP id 128so18523016oig.0 for ; Wed, 21 Dec 2016 08:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xqTvbYuc3C1V3jBm2WJSAu5R4xp3GbDQQDVDvpR2gYE=; b=njdwz1qetfdFOe91FIBXtdkXbVxVrVYTxvLoD6PrcuJtJyKSPLgWRvCGFfJbhQbevD QyqMLRyOHpSyCnzSG22ffq+QG+W2emr6krYCwneohkCU2hVKa261H86e+Vpiokyr+j3o eqxdmuI5Dxmsb8WAWzjqZDVXzKSIrbd9RRt0gHawS+JiE6/2Z/24kh/k+4OGZHzZ+kj3 CHfKCue8KgrWVvNqtfgbRwgoC1ch/uixQaB39SOziPewmjDr2lKgDQm+lIez8tglcgho xYT6OMgCdXoXGFSbGYO/LvvxrdtM9xYwPxLcdPV7ZNpJ73jVrIZ6rqKkhl5b9TppFXcq 8zoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xqTvbYuc3C1V3jBm2WJSAu5R4xp3GbDQQDVDvpR2gYE=; b=Jqb4DHA9TrYfGgcwzl/utweeHJSpHXuRHiSqOYKD8sx9uQw8dWdBTRm1w6t2/l1Tml K79AWV03Hm/ToyLbGsPq9DQg9aYS4HNVeScv4jSQPVZ8Gnhi5QInQAmGqiD/XJJ2Xbjw tyAm2ekTyEBPI8A1qRG/2/ltpD0ARvWVmKXyMtrFtMmvpEdGRifsvmD909U/dxEtgPMC 7VQsHdEyOhceUr72WH0slYOdL/2OtRtYAFlC5gTRjffjd1MjSV5wKhdDDqh81DVUC+xb KiosvWaJVb5Pk2MxVsboa1NSohbOQ1xf+yk4Nzicv/9b/2+m6H8t2BpHDsljQLEG8dVm vLew== X-Gm-Message-State: AIkVDXK8w37FoZ8PCLS213ZVs/rMywDVdmYUXkt6Uan+HVW6GQD0fETaqvz7atE3Qns9mwbxT4rHdcF3H09BRg== X-Received: by 10.202.168.204 with SMTP id r195mr2793588oie.121.1482336043285; Wed, 21 Dec 2016 08:00:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.61.137 with HTTP; Wed, 21 Dec 2016 08:00:42 -0800 (PST) In-Reply-To: <5859E73B.7060700@grosbein.net> References: <5859E73B.7060700@grosbein.net> From: =?UTF-8?Q?Nicol=C3=A1s_Papp?= Date: Wed, 21 Dec 2016 13:00:42 -0300 Message-ID: Subject: Re: Kernel developing tools To: Eugene Grosbein Cc: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Wed, 21 Dec 2016 17:39:20 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 16:00:44 -0000 Thank you Eugene and Alan! This is already saving me lots of hours of waiting! 2016-12-20 23:21 GMT-03:00 Eugene Grosbein : > 21.12.2016 3:45, Nicol=C3=A1s Papp =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Has somebody managed to configure any IDE to build and debug the freeBSD >> kernel? >> >> I am currently using kgdb and it takes me a ton of time to rebuild and >> debug for just some minor changes! >> > > First, "make NO_KERNELCLEAN=3Dyes buildkernel" avoids cleanup of build > directory > and allows reuse of previously built object files corresponding > to unchanged sources - use for relatively minor changes, not after switch > to another major release sources. > > Then, "make NO_KERNELDEPEND=3Dyes buildkernel" skips lengthy rebuild of > dependencies - > use if you has not changed kernel configuration since previous build. > > And "make MODULES_WITH_WORLD=3Dyes buildkernel" skips rebuild for whole b= unch > of kernel modules while building just kernel. > > You may combine these: make NO_KERNELCLEAN=3Dyes NO_KERNELDEPEND=3Dyes > MODULES_WITH_WORLD=3Dyes buildkernel. > This way decreases build times dramatically. > > From owner-freebsd-hackers@freebsd.org Thu Dec 22 07:31:52 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F443C8C434 for ; Thu, 22 Dec 2016 07:31:52 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 238C9649; Thu, 22 Dec 2016 07:31:51 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id uBM7QZFP071054; Wed, 21 Dec 2016 23:26:35 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id uBM7QZtJ071053; Wed, 21 Dec 2016 23:26:35 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> Subject: Re: Setting a dump device from db> ? In-Reply-To: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> To: Mark Johnston Date: Wed, 21 Dec 2016 23:26:35 -0800 (PST) CC: Alan Somers , "freebsd-hackers@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Thu, 22 Dec 2016 12:07:59 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 07:31:52 -0000 > On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: > > Is it possible to set a dump device from loader.conf or from the db> > > prompt? I'm trying to investigate a panic in mpr(4), but I can only > > reproduce it during the boot, before rc(8) has set my dump device. It > > looks like ada(4) initializes before mpr(4), so I should be able to > > dump to an ada device, if only I can figure out how. If not, I > > suppose I'll have to try gdb over firewire. > > You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and > init_dumpdev(). This should probably be documented in loader.conf(5). Please review and if OK commit Index: sys/boot/forth/loader.conf =================================================================== --- sys/boot/forth/loader.conf (revision 310132) +++ sys/boot/forth/loader.conf (working copy) @@ -101,6 +101,7 @@ #prompt="\\${interpret}" # Set the command prompt #root_disk_unit="0" # Force the root disk unit number #rootdev="disk1s1a" # Set the root filesystem +#dumpdev="disk1s1b" # Set a dump device early on for crashes during boot #tftp.blksize="1428" # Set the RFC 2348 TFTP block size. # If the TFTP server does not support RFC 2348, # the block size is set to 512. If the value -- Rod Grimes rgrimes@freebsd.org From owner-freebsd-hackers@freebsd.org Thu Dec 22 16:00:33 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95073C8BC35 for ; Thu, 22 Dec 2016 16:00:33 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com [IPv6:2607:f8b0:400d:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50DAE1C97; Thu, 22 Dec 2016 16:00:33 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x242.google.com with SMTP id h201so12896614qke.3; Thu, 22 Dec 2016 08:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xnDOMRPNAa21OMOkIseFlXpYf4QxDyn0U0XP3VGzxpY=; b=fnWIclWqnf3sfGjdBEQdZFVCsLrD3iFPkuLUec+e21UAiaH8aYmtZ2jc2GCPbreuuN TWgVI9d/1ZYNI0pHJ3ECks6uDBrHUnJVnlm/r8HRU4oO+tOwZcI824VZO2eTVA1im5Uj 7hI1Ushrq2QFdsaqrxD9Jv6bEkRj9C06x8O/McQvQntEl31+j5QLCVHjbvS59ia8ZlXN F/FS7uFeqBBwHCPGQErAJ40OgEiHOS7S3oUBZCRkt5bulQ5xv7zUUSE5Ac5P/st0ON5d /J0J7gKRUcniuqbbHeay9VuIBcWKLiAUyuYPz/CmMk3BvxLHQZDWLMfWB/1FP4M9xGQP yhGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xnDOMRPNAa21OMOkIseFlXpYf4QxDyn0U0XP3VGzxpY=; b=VcYtGMHToHZmE0itXUvaOk9gWfDvpnirQK1NBa7xEDIBVxHR+DlOcmMS3U/TMxysSv ZbZXTEGpTP2yEDDw2bbRY5p9+D2aen4YRE1CR30JI2+BnfiOTWo12yfCimxkfUmE364/ hVHwSO1pAtJpi/zIDwXkAJCRkSbLhs0XIwMOBAfWfqlo9nrvxVRAdIx9v3jKMGCkzIrJ AKhQEXbZpfGvr56jR2r5ARkq5riAdiP9fzh2T32zCpU4eg8YcEZ/Ig+8UVL0hr4gOBrC kTeCuGKyXLYC6E8YvFYyYf+nHP2a1QW1LnGn4Kw2FcMIlJXftkgsrw9daQRXVCpzbv8G Vnwg== X-Gm-Message-State: AIkVDXKWZmQUwMxf9FKs2mIdDbMtUWOPYhCBt8jl/Z60QEgJipOZYec8dsJA2JTeTmox653g05VJvkAcXluxVA== X-Received: by 10.55.98.3 with SMTP id w3mr10590889qkb.165.1482422431341; Thu, 22 Dec 2016 08:00:31 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.181.208 with HTTP; Thu, 22 Dec 2016 08:00:28 -0800 (PST) In-Reply-To: <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> References: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> From: Alan Somers Date: Thu, 22 Dec 2016 09:00:28 -0700 X-Google-Sender-Auth: EkAXy8LYx8nkEmRASzL92GaeXRQ Message-ID: Subject: Re: Setting a dump device from db> ? To: "Rodney W. Grimes" Cc: Mark Johnston , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 16:00:33 -0000 On Thu, Dec 22, 2016 at 12:26 AM, Rodney W. Grimes wrote: >> On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: >> > Is it possible to set a dump device from loader.conf or from the db> >> > prompt? I'm trying to investigate a panic in mpr(4), but I can only >> > reproduce it during the boot, before rc(8) has set my dump device. It >> > looks like ada(4) initializes before mpr(4), so I should be able to >> > dump to an ada device, if only I can figure out how. If not, I >> > suppose I'll have to try gdb over firewire. >> >> You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and >> init_dumpdev(). This should probably be documented in loader.conf(5). > > Please review and if OK commit > > Index: sys/boot/forth/loader.conf > =================================================================== > --- sys/boot/forth/loader.conf (revision 310132) > +++ sys/boot/forth/loader.conf (working copy) > @@ -101,6 +101,7 @@ > #prompt="\\${interpret}" # Set the command prompt > #root_disk_unit="0" # Force the root disk unit number > #rootdev="disk1s1a" # Set the root filesystem > +#dumpdev="disk1s1b" # Set a dump device early on for crashes during boot > #tftp.blksize="1428" # Set the RFC 2348 TFTP block size. > # If the TFTP server does not support RFC 2348, > # the block size is set to 512. If the value > -- > Rod Grimes rgrimes@freebsd.org rgrimes: done markj: Thanks for the suggestion. Unfortunately, it doesn't work in this case, probably because geom hasn't started yet. I'll do what I can with online debugging. -Alan From owner-freebsd-hackers@freebsd.org Thu Dec 22 19:09:10 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70529C8DA1C for ; Thu, 22 Dec 2016 19:09:10 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 400C016A8; Thu, 22 Dec 2016 19:09:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-237-203.lns20.per1.internode.on.net [121.45.237.203]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id uBMIqI1S089882 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 22 Dec 2016 10:52:21 -0800 (PST) (envelope-from julian@freebsd.org) Subject: Re: Setting a dump device from db> ? To: Alan Somers , "Rodney W. Grimes" References: <20161219213308.GA55919@wkstn-mjohnston.west.isilon.com> <201612220726.uBM7QZtJ071053@pdx.rh.CN85.dnsmgr.net> Cc: "freebsd-hackers@freebsd.org" , Mark Johnston From: Julian Elischer Message-ID: Date: Fri, 23 Dec 2016 02:52:12 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 19:09:10 -0000 On 23/12/2016 12:00 AM, Alan Somers wrote: > On Thu, Dec 22, 2016 at 12:26 AM, Rodney W. Grimes > wrote: >>> On Mon, Dec 19, 2016 at 02:16:25PM -0700, Alan Somers wrote: >>>> Is it possible to set a dump device from loader.conf or from the db> >>>> prompt? I'm trying to investigate a panic in mpr(4), but I can only >>>> reproduce it during the boot, before rc(8) has set my dump device. It >>>> looks like ada(4) initializes before mpr(4), so I should be able to >>>> dump to an ada device, if only I can figure out how. If not, I >>>> suppose I'll have to try gdb over firewire. >>> You can set "dumpdev=ada0p1" or so in loader.conf. See g_dev_init() and >>> init_dumpdev(). This should probably be documented in loader.conf(5). >> Please review and if OK commit >> >> Index: sys/boot/forth/loader.conf >> =================================================================== >> --- sys/boot/forth/loader.conf (revision 310132) >> +++ sys/boot/forth/loader.conf (working copy) >> @@ -101,6 +101,7 @@ >> #prompt="\\${interpret}" # Set the command prompt >> #root_disk_unit="0" # Force the root disk unit number >> #rootdev="disk1s1a" # Set the root filesystem >> +#dumpdev="disk1s1b" # Set a dump device early on for crashes during boot >> #tftp.blksize="1428" # Set the RFC 2348 TFTP block size. >> # If the TFTP server does not support RFC 2348, >> # the block size is set to 512. If the value >> -- >> Rod Grimes rgrimes@freebsd.org > rgrimes: done > markj: Thanks for the suggestion. Unfortunately, it doesn't work in > this case, probably because geom hasn't started yet. I'll do what I > can with online debugging. yeah you don't gain much through this because the disk probing happens so late. your only chance is really to run your machine in bhyve and boot with -d -g and connect to it with the bhyve gdb stub really early. then you can set breakpoints.. I set one on 'printf' and then step on down to near where the problem seems to be happening before going more fine grained. > > -Alan > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Fri Dec 23 14:23:26 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05833C8EB80 for ; Fri, 23 Dec 2016 14:23:26 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 635959E4 for ; Fri, 23 Dec 2016 14:23:24 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.0.214]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPSA (Nemesis) id 0LyyMm-1cgaHC2Rpw-014F85 for ; Fri, 23 Dec 2016 15:23:22 +0100 Received: from bsch by becker.bs.l with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cKQkk-000AXi-0E for freebsd-hackers@freebsd.org; Fri, 23 Dec 2016 15:23:22 +0100 Date: Fri, 23 Dec 2016 15:23:21 +0100 From: Bertram Scharpf To: freebsd-hackers@freebsd.org Subject: Gdb: Debug into a different directory Message-ID: <20161223142321.GA40298@becker.bs.l> Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) Sender: Bertram Scharpf X-Provags-ID: V03:K0:3jYyuVth+NHGRX/5v2P6zORXmu6hDSBQ/6S9f3zNzNDKTH8XyBJ pYLyMpVhmgmBfhJVWWhmPs9WtZSfi8n+8S3+M1VaaozV02vCt6DU6ZIUXlWptTissDh0NWT B1Yah2zh9Ir0zzJdVsWKXFxZ27aoMm1npTZJcEulJNxqzyR3W4w2F8XWfckSZ2wK1qcLje+ KdIU8uNf4FBK+ZqJq1uUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:/pXvBV5Gnuo=:7Da6/zjI8mT5MzcOe/hZIm 54PBDLF9xEbt6QdsYgXVii2ed1guDBeb/urIL7ovK0SxmRPlzQEtzxx1ADI/CZp72mDYbuPMK ikemcSjYCR3ofi4icDnNG5PZEFSdk2vvbOFQUlbF/ytMj3CfL4K0+iFPoYSCs9Enjp42nVjta oFGkK9AaczlixMyQ1SyNM7/Nc4cQWud0SpQ772luaOOmbNxpBdXI8CXRB//W864i7F4LIkTmu jSdluY/9Rqup6g1BCMn1IQXmnVivAXnX3v9Ye8ZngX6fQ4kV8sh2+djmitmRSlcDQVCB1gKT3 z41z40Yh/kQqxs0c2IL16bDcisXjm1vYSPz99OvtkHy23CPArvhvMSDQQ0lEYVT3TQfldcBt0 a1you5S/eBER5l0guOIby6Bg96ZzLKAswx45mlLs/ie7oES65kZNIbsdVbMQpWN7GNQaHpb6b XvXY/2SuSe3bbUwjQtMUhJGylMJAEzvj1H85OxNyjCRjwPXL/qGj7DTD/omUb87XfEpqQbbuu l/I7yynHzenf7+TgIS7bvJ3fU7kGRfyh/yU38aSP/WIOgk3XYCIYWuwfCABogS/bqNivzgFDR xNUSfpXuVzdEin4L9uJJBzXZwYFBxK3RylZj+9QN2EpTjjB30kpjUNry1ksMYiyqFqXwsxwgX s3Uz+3RBAsT7Lkl5QI0Kq6crxNKzr/aKaTkCNXYcsDBo7inOy3bLJHQoqaCCWpfa7hXg= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2016 14:23:26 -0000 Hi, On Friday, 16. Dec 2016, 15:08:12 +0100, Bertram Scharpf wrote on freebsd-questions: > there's another bug in the ports. [...] > > ===> Registering installation for texlive-texmf-20150523_3 > [packager.bs.l] Installing texlive-texmf-20150523_3... > pkg-static: Fail to create temporary file: /usr/local/share/texmf-dist/fonts/vf/huerta/alegreya/.AlegreyaSansSC-Thin-tosf-ly1.vf.QWG > /usr/local/bin/mktexlsr: 1: Too many open files > mktexlsr: Done. > /usr/local/bin/mktexlsr: 1: Too many open files > mktexlsr: Done. > *** Error code 70 > > Stop. > make: stopped in /usr/ports/print/texlive-texmf I found that the error causing the return code 70 is pkg-static: Fail to create temporary file: /usr/local/share/texmf-dist/fonts/vf/huerta/alegreya/.AlegreyaSansSC-Thin-tosf-ly1.vf.QWG: File exists This happens in libpkg/pkg_add.c:511. Therefore, I want to stop execution immediatly after the openat() call and examine the directory's contents. But I cannot set a breakpoint in that file. Here's vaguely what I'm doing: # cd /usr/ports/ports-mgmt/pkg/work/pkg-1.9.4 # cd src/ # gdb ./pkg-static ... (gdb) break ../libpkg/pkg_add.c:511 No source file named ../libpkg/pkg_add.c. How can I teach gdb to find the file? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From owner-freebsd-hackers@freebsd.org Sat Dec 24 05:47:14 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91D3CC8EC70 for ; Sat, 24 Dec 2016 05:47:14 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7032A1D3F for ; Sat, 24 Dec 2016 05:47:14 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6F9BDC8EC6F; Sat, 24 Dec 2016 05:47:14 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F3F8C8EC6E for ; Sat, 24 Dec 2016 05:47:14 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F36D1D3E for ; Sat, 24 Dec 2016 05:47:14 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id a197so212448422wmd.0 for ; Fri, 23 Dec 2016 21:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=sJEhg01WKz40Yp3ScSjsmGYprx7LPbEZhGKlAG8Z1sw=; b=PaoF+aDpgLxbQrYIQeMN8qE4DFW/itlRMX1gZ8p8ZT+l0+92u8W0JY5zZrYhlU+XV5 VPfy5VldKgKrOPpsxsAIR2ZSwPRLbZBYVnXgCZ+7KpBflMyfCmgHaPaoYOVpZcwOJxL9 ih0X1qYw6LuVP71wfHGq94L/x83SFs8mMP38yYLD/+pfTk6blByVElKNNErtowJDxfYG anae4Rc1bMANVLpDE5TjznSOCvAQzA+HSZiVrRUD2raP8mOEIE5trYzFOWj/kUhWbI8F bsyhg4vqAXziiZIi0CvU7JCyeQ6CEusT1gTEb0tgGhTHo2Uwo+qHlX15XCJYkRm3YnWQ m8vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=sJEhg01WKz40Yp3ScSjsmGYprx7LPbEZhGKlAG8Z1sw=; b=VdEdGkM2LpYn6pA1+W4vSHBigtGzEa3NTdGu/AMrLdc9QIqy5D4dvUeA0DTeqpDWEh 3Ug2me3bUOYN3ZZ/sBnt8Zll0pagJepj1iJsZDoOdePPtDLZvhtn8P2lXecgNyL7v4l0 DU0SUjHI1aUYaD+yGgjL+spsUC3grwjmTERKdc/+9Wr1CbK42qI6FY20QPP48kkT5Vgk Yzn+cGjNNPR/gp97LIpcu6skJ/u7RNKHgPJLTkel1XZ4DkV3tjEgV6rYdBdLeCvMN/Za EqisWj9H5k41hhCXoDCzE0dSyD550hv4e/g+4c0Wj4V498P6uISiSZGM5NPWOF+xGNwX 8u9g== X-Gm-Message-State: AIkVDXILJW6kkAR+65kaEqU5MqTwysGD4ebAmAmdWAvf2K1uRVAWvZ3sXuH8N8S4/N2ruw== X-Received: by 10.28.126.146 with SMTP id z140mr17324042wmc.84.1482558431609; Fri, 23 Dec 2016 21:47:11 -0800 (PST) Received: from momh167-gjp4-hpelitebook850g2-trueos.university.brighton.ac.uk (79-66-136-168.dynamic.dsl.as9105.com. [79.66.136.168]) by smtp.gmail.com with ESMTPSA id d184sm40489139wmd.8.2016.12.23.21.47.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Dec 2016 21:47:10 -0800 (PST) To: hackers@freebsd.org From: Graham Perrin Subject: Multi-platform ZFS encryption (ZoL pull #4329 by Tom Caputi): RFC Message-ID: <04069c66-b3f9-dca3-7a6d-068b2dcc9d8f@gmail.com> Date: Sat, 24 Dec 2016 05:47:10 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2016 05:47:14 -0000 : > Everything should be fairly portable. The biggest real change would be getting the new ICP to build as a FreeBSD kernel module. To be honest, I don't know anything about developing for FreeBSD, so I can't really make a good judgement there, but I would think it should be fairly easy to do. All of the ZFS code should just work (maybe with some Makefile changes). : > … if I can port it, the FreeBSD guys definitely will be able to. :) June 2016 commentary from Pawel Jakub Dawidek. Request for comment =================== (2016-12-22): > … anyone from BSD-land watching/porting this? I'm curious to see how this compares to GELI with ZFS given that GEOM seems to have tighter IO pipelines than DM and friends.