Received: by 10.192.165.148 with SMTP id m20csp5241708imm; Tue, 1 May 2018 11:26:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo2EhDG5lu6O6QSsXMYVeWIBadBtFJ4Dg6MP+RosM/onGRt7NqHwQSB8ug4wPm+vbofVOor X-Received: by 2002:a17:902:a603:: with SMTP id u3-v6mr17337768plq.214.1525199209860; Tue, 01 May 2018 11:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525199209; cv=none; d=google.com; s=arc-20160816; b=unEZ74B1kvcIPKxiiu/69jfybnOxLnrk8KwXOeXD08O2FV2Xz3hL10OAdrZcB4BcQW GYJ0NmbMot0EXhjFmnskOv5pjjPu2gtCfVKWf1aTpvCEdbhr8Ed0bfZ0CfPKjG91PgVH DTMinZpgmE+BN9BlwRVu3549jWGe0IvO73/Iho/TjqVLOm5Zw3bauVdS+jwZglGCgvZG xyScpKM7o16VCwkV5mqQZVxP7qWrVQqWiW2YlBSHZyB8ScJAjliQ3q+u/3x9yVGwLMkr sdrLZ4ccY1pO+ssg1ozFiF5VzP4DbrOvr0JYYV/k+UYW+/hcAky58TQk2eUN+8o4QfuA HkHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=o3JoKU0MvfYG8ToO1yYmLXTraxU2S+CINCqWjuJMeEk=; b=eCmM5ddq64gDcua80jx32CGRRvFiWoqktcBc5FEMPOvZupoziby9BUzFgxnqDhwSdQ gqG5ffkrb6wzqU3eGkbbZpUSA3iAxPi8gwUQS2s7DlwIz3S4Us5z/E1/w3UCM+pA/XF6 yrolqsOAS3DgVtVRQ8qJ2jg75Qg+qFNqeIwU0iGwd9GHi39ipjkbeoICOH5TayZRy4v7 /VJw/SEIuJlLBnXt5tjIgsl9klspYeyVmWkOygewwd6d7PikF1Ko3usfOsWtspdxh786 UZNAKg1wmf54Z1wV0qf6D4kXf1z6U9HapTQIJeNJQtwHKKlstNboah8GPYLwTlUNO/QF PwLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si8223621pgd.240.2018.05.01.11.26.35; Tue, 01 May 2018 11:26:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756452AbeEAS0V (ORCPT + 99 others); Tue, 1 May 2018 14:26:21 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:48632 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756157AbeEAS0T (ORCPT ); Tue, 1 May 2018 14:26:19 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D58ED13416B9D; Tue, 1 May 2018 11:26:18 -0700 (PDT) Date: Tue, 01 May 2018 14:26:18 -0400 (EDT) Message-Id: <20180501.142618.2096083030186678136.davem@davemloft.net> To: sstrogin@cisco.com Cc: zbr@ioremap.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xe-linux-external@cisco.com, jderehag@hotmail.com, matt.helsley@gmail.com Subject: Re: [PATCH RESEND] connector: add parent pid and tgid to coredump and exit events From: David Miller In-Reply-To: <20180430220429.14788-1-sstrogin@cisco.com> References: <20180430220429.14788-1-sstrogin@cisco.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 01 May 2018 11:26:19 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Strogin Date: Tue, 1 May 2018 01:04:29 +0300 > The intention is to get notified of process failures as soon > as possible, before a possible core dumping (which could be very long) > (e.g. in some process-manager). Coredump and exit process events > are perfect for such use cases (see 2b5faa4c553f "connector: Added > coredumping event to the process connector"). > > The problem is that for now the process-manager cannot know the parent > of a dying process using connectors. This could be useful if the > process-manager should monitor for failures only children of certain > parents, so we could filter the coredump and exit events by parent > process and/or thread ID. > > Add parent pid and tgid to coredump and exit process connectors event > data. > > Signed-off-by: Stefan Strogin > Acked-by: Evgeniy Polyakov Applied to net-next, thank you.