From mboxrd@z Thu Jan 1 00:00:00 1970 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 EB3CD1F3B85; Wed, 19 Feb 2025 14:53:08 +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=1739976789; cv=none; b=TmRJoDR0bEcLVa/hqB89+MBMSdSbtokopYhu0RdFEVez/qYlvOFSGrvVQW0QDLs3Vfhfc9LOdDn1OEVTQMhoENleI/Pd+fdEQxDFICWkhLJbmWmB8WPVaACy3F3NPaqDhCEmOMYdac7tbXvzi+xNUBKVX1mV0+lv2Zi6kt5IqGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739976789; c=relaxed/simple; bh=uJumg9HfANwLa2GuanMHiIVQzENU/QGDz5hxvLMZtCE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OoLIQ2DtrZo4oUOePIWTOSL6A1q1JKxk/NjLlOdrJdCnaPz7dqgwcJJehgrPzWXzidGvsBlfpnM95WO9+1IQNMMhVzgTnsXBPAv/V/r/VI/bHOD2Drc8bRNY4NaQ6sSRi+vkmKUz0WH6RYwr1sPXhPfG0ZsGigN41cPZxeNXTIA= 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 24CADC4CEED; Wed, 19 Feb 2025 14:53:07 +0000 (UTC) Date: Wed, 19 Feb 2025 09:53:30 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Mathieu Desnoyers , Andrew Morton , Heiko Carstens , Sven Schnelle , Vasily Gorbik , Alexander Gordeev , stable@vger.kernel.org Subject: Re: [PATCH 4/5] fprobe: Always unregister fgraph function from ops Message-ID: <20250219095330.2e9f171c@gandalf.local.home> In-Reply-To: <20250219095715.26c7b7811b05d3952c7bfa56@kernel.org> References: <20250218193033.338823920@goodmis.org> <20250218193126.785837383@goodmis.org> <20250219095715.26c7b7811b05d3952c7bfa56@kernel.org> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-trace-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 Wed, 19 Feb 2025 09:57:15 +0900 Masami Hiramatsu (Google) wrote: > Good catch! I forgot to remove the filter in this case. > Is there anyway to be sure the filter is empty or clear it if > fprobe_graph_active == 0? You can call ftrace_free_filter(), but you need to make sure that the ops is not active. Hmm, I should add a warning and exit if the ops is active when that function is called. -- Steve