From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04587C38145 for ; Wed, 7 Sep 2022 17:35:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbiIGRfA (ORCPT ); Wed, 7 Sep 2022 13:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiIGRe5 (ORCPT ); Wed, 7 Sep 2022 13:34:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 913F41DA5D for ; Wed, 7 Sep 2022 10:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662572095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/WSF+VN2XS8wigr1Pv23cqcOJp3LkqpRzWMbXnSC+Ks=; b=KoD0NLQReWw68yUMHEDaebNSMZ4ubSNKTTyfXBmDj+bhB1WLY6s/DzU/I3x+A3Do33hthz Q5PqeLFKCAhjjSolhzi0+OYhQ0ugxAqTpYxxOx7Wc5J5RlwGctgsPUjOmgrPCEzNlz1GnJ r9gTh9fBqxRnEooKYWWGI+aBO/Cht3s= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-159-yf-Xh7BAMdGuIeY70rsvDA-1; Wed, 07 Sep 2022 13:34:48 -0400 X-MC-Unique: yf-Xh7BAMdGuIeY70rsvDA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6A26F3806701; Wed, 7 Sep 2022 17:34:47 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.54]) by smtp.corp.redhat.com (Postfix) with SMTP id 04716403167; Wed, 7 Sep 2022 17:34:42 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 7 Sep 2022 19:34:46 +0200 (CEST) Date: Wed, 7 Sep 2022 19:34:40 +0200 From: Oleg Nesterov To: Oleksandr Natalenko Cc: "Eric W. Biederman" , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jonathan Corbet , Alexander Viro , Andrew Morton , Huang Ying , "Jason A . Donenfeld" , Will Deacon , "Guilherme G . Piccoli" , Laurent Dufour , Stephen Kitt , Rob Herring , Joel Savitz , Kees Cook , Xiaoming Ni , Luis Chamberlain , Renaud =?iso-8859-1?Q?M=E9trich?= , Grzegorz Halat , Qi Guo Subject: Re: [PATCH] core_pattern: add CPU specifier Message-ID: <20220907173438.GA15992@redhat.com> References: <20220903064330.20772-1-oleksandr@redhat.com> <87r10ob0st.fsf@email.froward.int.ebiederm.org> <5599808.DvuYhMxLoT@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5599808.DvuYhMxLoT@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 09/07, Oleksandr Natalenko wrote: > > The advantage of having CPU recorded in the file name is that > in case of multiple cores one can summarise them with a simple > ls+grep without invoking a fully-featured debugger to find out > whether the segfaults happened on the same CPU. Besides, if you only need to gather the statistics about the faulting CPU(s), you do not even need to actually dump the the core. For example, something like #!/usr/bin/sh echo $* >> path/to/coredump-stat.txt and echo '| path-to-script-above %C' >/proc/sys/kernel/core_pattern can help. Oleg.