Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp521479rdb; Tue, 23 Jan 2024 06:50:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVprl4Ehz6Aw9Qt3BqO6976dZbSU/xL50EwKRj38Ftxgjn89muqFDuDpT8texWSwjeQ0yS X-Received: by 2002:a05:6e02:5ae:b0:35f:c0c2:4bcb with SMTP id k14-20020a056e0205ae00b0035fc0c24bcbmr4816152ils.23.1706021446751; Tue, 23 Jan 2024 06:50:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706021446; cv=pass; d=google.com; s=arc-20160816; b=AYaarvIOBatyeBz5Av5VRSHSxJJpJXzFPOu2czNlOL2s3f6wmXpTQDsm2nUwd4b2zA C9PDhSY/3uXYwA9IjDs0kBLP+pfgkqhtsreG6RiNH/hupUAodpWJrTP4VPTpgpXCfVpz YqIygIL4VxDa3qEsQkFk3qLRLiuhEyvHouIX2ys699qhTf1wB/kHoMoq1Sa2pPPMFaJw 6nnTK5ohEBTgp/0Rc/R/0FtgxBQVO7+o7YCzBnoEE1qrzZM8e3GgH9Z3vO/oVMKY/Wv5 rrTVYAyzx1u3VBboJfogoB1XBxl8F6+kp91kXdZFhfXiQ+kIe0fdY48yGcuYWDPVwe1B CVew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=XTO3QqjHhp0fcEOCO572lETkv8rrIwU03VodQk3aOHM=; fh=hy2Gx5YsJlzzzUllceSwV/VJ/pVTx7gDIjRmL8kMpRo=; b=UUoeGCWT9Bjx+JoLVp12sjBQUTQHeyMyfSTK7YjJsG0BZwyEG1/ugfd+gmhvUHcrht cU3ixhz9JeYVROEVEIwoWf2+CWyoIeT00Q+56vp+ydDX7AqdXLYseGdbrfvUvw1Az7Ci eyBTtRhnMPPC7ezB2K0uSJiKJwRCRRKje4IC6OJ+GyGTEST0igfutYTlNJtQWidXiAZY 0wZgW5xRAWj3NAwuEUzoS8A6V3/F1yhMzIcg1DazCU1NqQdg+f+sERZVEjBLh1ynLaRV NAPZlh/I7y6y9l85YlkQCJ2trISkBP2Q7mVsLXH5RnV6n6xssYoOrsPuMyWv6pZ5cT2c xKGQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-35475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35475-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 27-20020a63145b000000b005d14ca08256si1606849pgu.819.2024.01.23.06.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-35475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35475-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E9C0528F469 for ; Tue, 23 Jan 2024 14:48:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC41A5FBA7; Tue, 23 Jan 2024 14:47:32 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43FA560259; Tue, 23 Jan 2024 14:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706021252; cv=none; b=YYkJMDdmmYOOtDxsqfWi6nlD3+Os6pT6dQlz5X0XfHjTAaS/mXo95nRSwKuZR1O6FpNZb/eWSPAthdvekIDo2cqVF5PmjaIYBGDYi/e8Y0Symb38/WcUvf+IQJspXA3OE0Cv5zhKzWF9iaYNpBmKtsAwbqiG8d074T2NVt1YHSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706021252; c=relaxed/simple; bh=SyOCDDjWY9xeLbCSe4FxdSgAc8OEaImCI2tOJVIHOBE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z0f5nNTGW581C7Ec1IKRG5x98xXh77N+hcOJnF6w2WIoHA2xhkFrB2lQWtqMVSeHGb05eEiC9q/lzffQ8u5C6dMQzS3WcH7CjhviZM0YDi9LA9+V12qkNnt7YXZ/HhnR+McwF0oL5nzySque8z24pl5OcVNggu65YDS5OjC67d4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B149C3277A; Tue, 23 Jan 2024 14:47:29 +0000 (UTC) Date: Tue, 23 Jan 2024 09:49:00 -0500 From: Steven Rostedt To: Huang Yiwei Cc: , , , , , , , , , , , , , , , , Ross Zwisler , Joel Fernandes Subject: Re: [PATCH v3] tracing: Support to dump instance traces by ftrace_dump_on_oops Message-ID: <20240123094900.6f96572c@gandalf.local.home> In-Reply-To: <0279a4cb-ced0-447a-a06f-37c38650ed5b@quicinc.com> References: <20240119080824.907101-1-quic_hyiwei@quicinc.com> <20240119115625.603188d1@gandalf.local.home> <0279a4cb-ced0-447a-a06f-37c38650ed5b@quicinc.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Jan 2024 18:23:58 +0800 Huang Yiwei wrote: > > And if we really want to be fancy! > > > > ftrace_dump_on_opps[=orig_cpu | = | =orig_cpu: ][, | ,:orig_cpu] > > > Yeah, I agree to make the parameter more flexible. > > "=orig_cpu:" means to dump global and another instance? No, I added a comma for that: =,orig_cpu: Would mean to dump all of global and just the origin CPU of the instance. > > I'm thinking of the following format: > > ftrace_dump_on_opps[=orig_cpu | =][, | > ,=orig_cpu] > > Here list some possible situations: > > 1. Dump global on orig_cpu: > ftrace_dump_on_oops=orig_cpu > > 2. Dump global and instance1 on all cpu, instance2 on orig_cpu: > ftrace_dump_on_opps,,=orig_cpu > > 3. Dump global and instance1 on orig_cpu, instance2 on all cpu: > ftrace_dump_on_opps=orig_cpu,=orig_cpu, > > 4. Dump instance1 on all cpu, instance2 on orig_cpu: > ftrace_dump_on_opps=,=orig_cpu > > 5. Dump instance1 and instance2 on orig_cpu: > ftrace_dump_on_opps==orig_cpu,=orig_cpu > > This makes orig_cpu dump for global same as instance, the parameter may > seems more unified and users don't need to remember another markers to > request orig_cpu dump. > > But one problem here is if there's an instance named "orig_cpu", then we > may not dump it correctly. I would put that under: Patient: Doctor it hurts me when I do this Doctor: Then don't do that ;-) -- Steve