Received: by 2002:a05:6358:c22:b0:b5:95e5:7f42 with SMTP id f34csp8068113rwj; Wed, 7 Sep 2022 11:24:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4h1IOb2bpIadIngsjTDAVZVVTIxENKzA4dKzNRp1RWAFlKkp6Dm8oeUjWSZwxo6coKwbGi X-Received: by 2002:a17:907:7d8c:b0:731:65f6:1f28 with SMTP id oz12-20020a1709077d8c00b0073165f61f28mr3090972ejc.91.1662575071369; Wed, 07 Sep 2022 11:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662575071; cv=none; d=google.com; s=arc-20160816; b=QJtpGI/2hDbtZ+B75duYH2u6oYLfZyLxXEkCXs35rjE/HRu6Xx46HgSVgz8bhHh319 LyW45miMm4seBjT/HhS+PIVPvcuq33mN39YQWNKGgcN2t/a85fO3T4kNlbY+rNckslp2 Tc5NizeHdQfwp0tzYACXyeD48aPfSvlp4HuYbO0bu0QtS+uhCWX2wcZSiLJvS0CA9Xuz zD5+JElUaF3qASwWAfyO3Q74dMJdcwPLlfAPbdAxWAIzT0nN7wGxbTa7sL86TpjHJFoU 8mXTS3VHegO7fkSh8ywFIls9jaNP62KT+JrmTtMWtvaJI+isD9HQEO5MnRiswa3DnHuh oQKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/WSF+VN2XS8wigr1Pv23cqcOJp3LkqpRzWMbXnSC+Ks=; b=cpSZjCjY18Kl5cgURHsDBvRhfL8+Qb1VgDWsfRDIb1S/Y8x2TrFutO8NNcppg/t698 cHjUt7P0jCHpMDxE+BMfX9o7LjZSU/YCz+fk7kvE2WAYN+YXO5EqdaUlDLbWh40tUKNj 5Yi0Ubyfji9EKxm49UPlDx/nHNdWKdR9L/wAgpHzZYYku8idcpV/nfER72Dp+/hxl31C jzEKB+6k9BIBIO4NqN3vIfAe+UIWRNv0Ur1nCQD5VR5CAkWv1mNR3IXu+jLGZrjZq7p5 jYBLBy4xkpOu7szeo6kK3MMD6NtaUPxgCxr1AnqlqcMzNbT6V1DbtJ1sYM1/PpwfxljC mD+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JPqn94w2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a056402517300b0044ef9c83492si2851333ede.472.2022.09.07.11.24.05; Wed, 07 Sep 2022 11:24:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JPqn94w2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229506AbiIGRfA (ORCPT + 99 others); Wed, 7 Sep 2022 13:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiIGRe5 (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 C62FC286D6 for ; Wed, 7 Sep 2022 10:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662572094; 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=JPqn94w2BJ+9CJ5TOeg1EYOABgv3KQeacne8KWbsk9idpLySiVEFwXr0gQD6bomhlXeQmQ SUUJb18PnHtn65YlWEldbnuO1j6t0KMLuU3rAaDuEs99lurvOH2z5mPxTCMQfq8GB+ko0X RgbW1RULcChfTZQCIZJJOmzgjPhzJWM= 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.