Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp562167rdb; Tue, 23 Jan 2024 07:52:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFySo/UY0eU7fXcEySwy1d4uz5++jkHsZ5vIyaGi6/zkqB8n4HcMjehNlx9kel2trAN7kTu X-Received: by 2002:a17:903:18d:b0:1d7:3533:9660 with SMTP id z13-20020a170903018d00b001d735339660mr7082604plg.17.1706025171303; Tue, 23 Jan 2024 07:52:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025171; cv=pass; d=google.com; s=arc-20160816; b=pApTNI83DA5EFqAL+2biYfTqltSQ6MolsqUyJeSgPF3+PJoKqK7fCajKN0aij6iz8N w1C1Im+4wrFEPds1SxtOSSKjRZoIpQUE8QP2RVaE6dBXxoC9nV/eLYzP+zFMcgLde9eD whn4jBRGe81n5ZjykBWvQ4pvHR1006YrC/zJTabAq4/Dt5tg77I0p/Yw/wrLTzpynUgR Fy1x6QdhNM2Xj4aejsL0Lwlgw9z9pHK2exSTqy6CJfteGHmBYo3FcjB71MOwDZU5Mg1Z 2JWRnsCY2zhOk9a/KRuBnz7IiSwtlXYKMy80XjL6Pm+0d45d3a3PMW72+BjyjIQCgp7o kyEQ== 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=x3CdfUEpXgu+gltHaHHn1mdNf1ChUQYvSF74//8j7fU=; fh=hy2Gx5YsJlzzzUllceSwV/VJ/pVTx7gDIjRmL8kMpRo=; b=kKHlR08NP4BSeC2arGjfve8AG0sR4fob8t5rcTF0nDJwk5v5adWDffoKFrR4eDzfo7 7vQM/wSc4XkvIJ8FyA7U1ZKycQTDd2I2cdxg5SS8DeB3bw5MBn03FH/c0wylageC0bAa IIuasbKGRA0OTaVusIhMIUDc3dWylLnZ4vB1oYYJ3sGv3wz5isUoYc+wFoHQlTRTlObc 2Zcr3/gJRU0WTRsJRNBffg2E/QwxQZUh/hevm3rQavbCgFoDTMLET2sHbtNrwxLI1nOw uxBGDut0j/7Pu+0DjwbuaZQPwwwqS1zhSQ+9rE7xTCgGZUQ8B+/WO8S3fuLx9QbStZMD C0Bw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-35572-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35572-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i10-20020a170902c94a00b001d5f4f26b04si10354347pla.299.2024.01.23.07.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35572-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-35572-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35572-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 5C424293114 for ; Tue, 23 Jan 2024 15:46:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8776166B25; Tue, 23 Jan 2024 15:37:40 +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 F3B7F60DCB; Tue, 23 Jan 2024 15:37:39 +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=1706024260; cv=none; b=uDls7Pv0zWVb4SYRXBuB0hn0zbOr7rz68yqm467cRu0QkzWYzutXzhw/sBXqiLP0hh84kb5fRU3SpUGMvyzwYBGV5d9WutGjafycWrFX9bsosJ5SvwKb3+WCrQBtje8z7kfBAX9sSfoBNd6n4yolvnqtu5A0VnpdetjYN7uooX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024260; c=relaxed/simple; bh=MLAhwwGHU/3Yecw28oC/pA0NXAJpTVerqjiXcGUDpXY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NTVwZ1LX1vf6py0WfqR4AM7LIVWdnKisfv3Wyl+yXpQduFh4flfhJnYWeHMRm8GWjaF009N1hpzhDEtmOgvrS3VEG68hutZiGoVIea+a+tJpACglAFlO6MWkuNb0XKBlSQ+L6ir5FFt5e/DZl6FwSyNiJzEsrOk9dUN+Yh0VZZ4= 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 2365EC43394; Tue, 23 Jan 2024 15:37:37 +0000 (UTC) Date: Tue, 23 Jan 2024 10:39:07 -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: <20240123103907.636c1840@gandalf.local.home> In-Reply-To: <20240123094900.6f96572c@gandalf.local.home> References: <20240119080824.907101-1-quic_hyiwei@quicinc.com> <20240119115625.603188d1@gandalf.local.home> <0279a4cb-ced0-447a-a06f-37c38650ed5b@quicinc.com> <20240123094900.6f96572c@gandalf.local.home> 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 09:49:00 -0500 Steven Rostedt wrote: > 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 > > ;-) Oh, and I'm fine with what you proposed above. -- Steve