Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933274AbbBQIxT (ORCPT ); Tue, 17 Feb 2015 03:53:19 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:54523 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933072AbbBQIxS (ORCPT ); Tue, 17 Feb 2015 03:53:18 -0500 From: Arnd Bergmann To: Andrey Vagin Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Oleg Nesterov , Andrew Morton , Cyrill Gorcunov , Pavel Emelyanov , Roger Luethi Subject: Re: [PATCH 0/7] [RFC] kernel: add a netlink interface to get information about processes Date: Tue, 17 Feb 2015 09:53:09 +0100 Message-ID: <3238376.TxgiSSEfbZ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1424161226-15176-1-git-send-email-avagin@openvz.org> References: <1424161226-15176-1-git-send-email-avagin@openvz.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:GRMizStYNVWOHsFUj2F9EUXf0ZKCoZloKGejEuwPGsXsDpzLsyA WmCR17H9fUqQxOpj6/9rrNz/n6vFUsPkbs0Q120SXtbPTyS8yLghzhPmT2XNzUWrlRK4Dru Yz3Bplv/gDUA9sxk+jsAOvtJESPQJM2lOArGGmUG3YdbhAgI7VUQjgnGIQiagEyGC6UrkDh YufSdkvwAP/lZTFtxFzHA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 23 On Tuesday 17 February 2015 11:20:19 Andrey Vagin wrote: > task_diag is based on netlink sockets and looks like socket-diag, which > is used to get information about sockets. > > A request is described by the task_diag_pid structure: > > struct task_diag_pid { > __u64 show_flags; /* specify which information are required */ > __u64 dump_stratagy; /* specify a group of processes */ > > __u32 pid; > }; Can you explain how the interface relates to the 'taskstats' genetlink API? Did you consider extending that interface to provide the information you need instead of basing on the socket-diag? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/