Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757985AbbGGQ0G (ORCPT ); Tue, 7 Jul 2015 12:26:06 -0400 Received: from mail.kernel.org ([198.145.29.136]:58969 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757449AbbGGQZ4 (ORCPT ); Tue, 7 Jul 2015 12:25:56 -0400 Date: Tue, 7 Jul 2015 13:25:52 -0300 From: Arnaldo Carvalho de Melo To: Andrew Vagin Cc: Andy Lutomirski , Andrey Vagin , "linux-kernel@vger.kernel.org" , Linux API , Oleg Nesterov , Andrew Morton , Cyrill Gorcunov , Pavel Emelyanov , Roger Luethi , Arnd Bergmann , David Ahern , Pavel Odintsov Subject: Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2) Message-ID: <20150707162552.GM3326@kernel.org> References: <1436172445-6979-1-git-send-email-avagin@openvz.org> <20150707154345.GA1593@odin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150707154345.GA1593@odin.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 23 Em Tue, Jul 07, 2015 at 06:43:46PM +0300, Andrew Vagin escreveu: > On Mon, Jul 06, 2015 at 10:10:32AM -0700, Andy Lutomirski wrote: > > On Mon, Jul 6, 2015 at 1:47 AM, Andrey Vagin wrote: > > Would it make more sense to have a new syscall instead? You could > > even still use nlattr formatting for the syscall results. > > Andy, thank you for the feedback. I got your points. I need time to > think about them. I suppose that a new syscall can be more suitable in > this case, and I need time to form a vision of it. If you have any ideas > or thoughts, I would be glad to know about them. If a new syscall would indeed be better for this, then using sys_perf_event_open and on one of the perf_event_attr flip a bit to ask for those PERF_RECORD_{COMM,FORK,PERF_RECORD_MMAP2, etc} to be generated in the perf buffer could make it reuse all the userspace tooling, with really minimal change: flip the bit, don't synthesize it from /proc. - Arnaldo -- 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/