Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1027733pxb; Wed, 27 Oct 2021 17:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvqJBdZuz7thMbzAb+t/55edoiAr9Ir1WJCYJsMkqb2n8+OmVWR+zCW0YapPDkAmJ9YCKA X-Received: by 2002:a63:344f:: with SMTP id b76mr823109pga.168.1635381904997; Wed, 27 Oct 2021 17:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635381904; cv=none; d=google.com; s=arc-20160816; b=ms0xCiNE4i1DxIOljGaSkz2AHYqTBVd/10a/SaC3NxXnOQdE9bRPJlXa5WO+Gk35XU lMxIoA+ZJ3GCd04lIp2GGsQTp12MHvbgRmigEDFCWIiRttXmztoUs6Rdr3A/mwqZJuUU qULXf41k3Fcgh9oVlJLmVzD7f5zGOgoJddyaGJrf7kAlfg2XGLj0zH6jEYibNW9xSaku VIuFZWgHlX5xhQg/tRmeDUGKQgw73JtiV20PwErJkyWzyZ7vRfUSxwP+jSuJRq3ZJA5d Te7P6S/XOXEOLMZw7X1tofmik6Khzhob8ESExCT5r8Szf0XpvydbwCs3KJNuKfiJd7dP lXqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EiX5Tz9QM81Um41g0KJVir57cHRubwrWTNu4z3Y8mhg=; b=j9tjFZ8dmrep7z5n90C7NC5e0oq/rxnYZZPSi+9ZUs2a57gicHluQV9loE2lThAIib lGuXTU0SdLkqNSq13QEOACDJTYZGxMH20hT0cHxhSQ3KdKbL7eFYGVg7HTMeAmxhKm/Q JUuQqrgl2n6UpI2jlG+H/INIMy1ErpEh6/Bo63M72ntI0iRuVRG4Z6UH3ples5Y06R42 aqNZhagCUihzzODQSBRgNpB8ckNTADhEMILAqg0Vti/Q8AgKBCL/N8cqgV6QR078oPKG or2RgOV35Lg0Vm4AWVKXcvoEZqUONALzAxijOVmduDYjP2spxV+lhsAGcOXPv+ZZtZY1 ifEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QPUO2GZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si2078624pgm.193.2021.10.27.17.44.51; Wed, 27 Oct 2021 17:45:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QPUO2GZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbhJ1AqW (ORCPT + 99 others); Wed, 27 Oct 2021 20:46:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:48830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhJ1AqV (ORCPT ); Wed, 27 Oct 2021 20:46:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2362610C7; Thu, 28 Oct 2021 00:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635381835; bh=ms2wN3CfuOl4f9invWVZz5Oi0ljrc8QJ5JepVWRQbhg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QPUO2GZkFT9Fw6KHOgTYYKPOgbUfk+os5J7JOoQqSytc6kmkKjgHR/G4zUv32Ff8b dorZI0mYv56jvr/pnEMSIov/28+89Yc6TzKXJnj8g+nWMt5h+bU4fAEx+GvP0RLnsl D2RLEgfoBOQPKabt4DMspD4k4DqKfZFuRtkSabVmuviBVW+OLyMY1nc56ajj2AHTfR i+3PDedNHsVbX4fmAgaeYKb/kqh8fiHhJ0dVeKbb+nhA/9DOb5o8MlqKALUZ2HPjzu 4ExIWzRvBx7JbR6NO7TCVYPA0yq88GGtvbunfNyJvQ53G8NewV1ruIzpWcDYw7tkHi P8pMuFNMbOBjA== Date: Thu, 28 Oct 2021 09:43:51 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: Kalesh Singh , Masami Hiramatsu , surenb@google.com, hridya@google.com, namhyung@kernel.org, kernel-team@android.com, Ingo Molnar , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 2/3] tracing/kselftests: Remove triggers with references before their definitions Message-Id: <20211028094351.617b7c2ea7c56055ee68d909@kernel.org> In-Reply-To: <20211027195454.60993c83@rorschach.local.home> References: <20211027205919.1648553-1-kaleshsingh@google.com> <20211027205919.1648553-3-kaleshsingh@google.com> <20211028065849.76b1bd7151e440881298b523@kernel.org> <20211027195454.60993c83@rorschach.local.home> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Oct 2021 19:54:54 -0400 Steven Rostedt wrote: > On Wed, 27 Oct 2021 16:26:00 -0700 > Kalesh Singh wrote: > > > > Why don't you use 'tac'? I love that idea :) > > > Did you find any issue? > > > > Hi Masami, > > > > Thanks for the reviews. As with the first set of patches using tac > > gives a regression here, though I'm not sure why it doesn't work -- I > > also thought reversing the order would handle any dependencies > > correctly. > > Right, because are triggers not added by list_add_rcu() which adds to > the head of the list. Oops, so are the triggers shown in the reverse order? (newer entry is top, older one is bottom) Then do we need this patch, because we don't care about the dependency. > If anything, shouldn't things be removed in order? Hmm, I think the trigger itself might better to be changed. If any dependency in the trigger list, it can not be restored from the copied file, like below may fail. cat events/foo/bar/trigger > /tmp/foo.bar.trigger cat /tmp/foo.bar.trigger > events/foo/bar/trigger (of course we can use 'tac' to restore it ...) This is Thank you, -- Masami Hiramatsu