From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 3 19:05:39 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 225761B3; Wed, 3 Apr 2013 19:05:39 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ea0-x232.google.com (mail-ea0-x232.google.com [IPv6:2a00:1450:4013:c01::232]) by mx1.freebsd.org (Postfix) with ESMTP id 0AFD685E; Wed, 3 Apr 2013 19:05:37 +0000 (UTC) Received: by mail-ea0-f178.google.com with SMTP id o10so788455eaj.23 for ; Wed, 03 Apr 2013 12:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=1yW498TD/Gkzhd61z50I0itddKhoGMSRjY0vOcHiJSQ=; b=j8uDmkMytdr0mfEuwZsu76F+9VK0gGCLPl+SiTzAm0jYiZRW35eA8iwu6huqjcImcL 7b38o1WqGELsOExjaj5HtKAgqpptfnWctnSBcE96Xw2cM4KuuVPiyC9i/GcwXZXTIW+U 7jpRNWnZ+TaGNnuhAoSpbJk2v+KBITnUo8IBxZ4fFqP6haBNu+DtTy8hKoFa9steZdBv bYMMbtECDiNaoJJRQqNA6panlgyB7ab8hQHy2BEBYiJuIiDhJ6aDNAgqwz7e5YuP61KW SMnCkEaDpY1QEhev7csPi70oD/vqsCp88gq5VAjcMLPh/EmvO95nHtT21CXe6MAEbxx2 QVxQ== X-Received: by 10.15.43.132 with SMTP id x4mr5509450eev.31.1365015937205; Wed, 03 Apr 2013 12:05:37 -0700 (PDT) Received: from localhost ([178.150.115.244]) by mx.google.com with ESMTPS id r4sm8826428eeo.12.2013.04.03.12.05.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Apr 2013 12:05:36 -0700 (PDT) Sender: Mikolaj Golub Date: Wed, 3 Apr 2013 22:05:33 +0300 From: Mikolaj Golub To: Konstantin Belousov Subject: Re: libprocstat(3): retrieve process command line args and environment Message-ID: <20130403190532.GA4184@gmail.com> References: <20130317063033.GL3794@kib.kiev.ua> <20130317091930.GA2833@gmail.com> <20130324155426.GA87022@gmail.com> <20130328105134.GO3794@kib.kiev.ua> <20130328211820.GA6657@gmail.com> <20130329092245.GU3794@kib.kiev.ua> <20130329123155.GA94024@gmail.com> <20130331134047.GN3794@kib.kiev.ua> <20130331155259.GA9867@gmail.com> <20130331172301.GO3794@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130331172301.GO3794@kib.kiev.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Stanislav Sedov , Attilio Rao , "Robert N. M. Watson" , freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 19:05:39 -0000 The updated patch set: http://people.freebsd.org/~trociny/procstat_core.4.patch It includes changes discussed with Kostik. New NT_PROCSTAT_PSSTRINGS and NT_PROCSTAT_AUXV notes are added. libprocstat(3) is extended with functions to retrieve env, args and auxv (so the patch that started this thread a couple of months ago has been merged to this patch set too). procstat(1) is fully converted to work only via libprocstat(3), all its options are supported for core dumps, except kernel stacks, which are not useful in this case. It looks for me to be in a good shape now and I am planning to start committing things in a week or two, after some additional testing, if there is no objections or other suggestions. -- Mikolaj Golub