Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp147522lqs; Thu, 13 Jun 2024 06:32:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzS7xB/32t3vqCPpaLj8QufHkvau7KjCrDOVltu+Gplr1S7FbNthGZz2YYB0CcoTdqdxqQvkJJuJMt4GpSBYKBICrmlYFdTDw9C1RN5A== X-Google-Smtp-Source: AGHT+IHyUhDjk5RCv35p5Xti8gV3L2aCOoIr/Jd2oKgAB+I6Oxo3XIYEYt9KLnSp0zKmzGeoIgJp X-Received: by 2002:a05:6830:719e:b0:6fa:ca9:132 with SMTP id 46e09a7af769-6fa1c43b700mr5732328a34.33.1718285564444; Thu, 13 Jun 2024 06:32:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718285564; cv=pass; d=google.com; s=arc-20160816; b=qMTbrrnzRe31rEVrfFOu7p5MBGjV+RO1KhE7+1wsRvEZKsYxGRjh3OfE/kpDbBlbEl temG48uO3GgYVmo9NKEZ4fkTGdpWIMXXkulvU+k/5HbZ/1Xkg/2ITj4gV4TsjFhaaq5V 66W9gEiHOwjlU2Z0CVpYIblT5+icuWm92sZL6Jc7Kyi6MFayRXZw8RMs64ypVkagJooP Ag0+fJjY6QlSs+PmSb48hKj9TOU1SbmOsab6eIvSnycu9DuIk1JdexP3OsODB4gXeJAr 0J3aqXK6lIy5D97zFNxfo4BLTVRsjy3+k5a0KhBMtZAjsNv4s2N6ePBRTEQHVXzIAg7c 0BIQ== 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=FKt7+UU1VxhuIQoLvrL+gX4n/vvRN0L8KoESVkjihRE=; fh=j7LHzvpiIfts/urkSQoM9ZwjcCu6RgqalLhBD6jTAWM=; b=pqWJdj0CLnC8cF+nzirGjE1u/lV6zXtQmyq6ElBFoxLVNAZOodWZ0kAWLP/nMXIHF1 4SqYTzB8C1m+rjhi6CFYUS1fIlCtmQ7fivbQ8wyRNE5ZKglnrfuqMJsq8H4nOwj7d9PE 7N1HDn1SuYnbgETsTQ6EvuGB5WzN91n6j9mSReXqmilzuzv4UmptmtbYs0iXiDU+mfZ+ pLs65LUUx9jmpqxZ4Rg0DLkM55HBbXykFcqP+BAMa4PQyf5pQtzkhzeshK6+PaFz/Z4n 7P389xNICYVEmkrcjEpnpF8CIDvLDWBSrKaPFYKdvNTghbI6TOtVTXzMMN9mzCdYhq5S 5q1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-213325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213325-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798aac9bf9bsi136648485a.130.2024.06.13.06.32.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:32:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-213325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213325-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 273CC1C2250F for ; Thu, 13 Jun 2024 13:32:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEE7714430C; Thu, 13 Jun 2024 13:32:38 +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 732D1399; Thu, 13 Jun 2024 13:32:38 +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=1718285558; cv=none; b=tAeCfkdAwMzaYsq9ll3VbRjcEfbTj6y0td6WrN6ooOknIe/2uCDVGuTwbT/fVcL1no/ArwD3/2k4gZPP5GFqZLRT6UA4CB2QkZy9yX+jeco/Flm3zg5BUfKXZpCGMZccUjdA0jdorhWVEDC5pN1RZE6PeJs4IJGk8PuyVW/WEyM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718285558; c=relaxed/simple; bh=FKt7+UU1VxhuIQoLvrL+gX4n/vvRN0L8KoESVkjihRE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kcgdQi7gTKVfdDgFyYUAkUY41BDPClXfZ9qdDUJ8G4mG/4tAYuvpqE7ndT/2KbglH5q+yNqzaYFmjzy8STLA09bGAHB0zLuVoE6CTG6AckR7P7ER7S4vydW7wdDYhiIawhZHo7hmeGXmP2IeDOvuKG3SufjDYpHVOhzOhGaSa+4= 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 7EF3BC2BBFC; Thu, 13 Jun 2024 13:32:35 +0000 (UTC) Date: Thu, 13 Jun 2024 09:32:33 -0400 From: Steven Rostedt To: Andy Chiu Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Zong Li , Masami Hiramatsu , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Puranjay Mohan , Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 2/8] tracing: do not trace kernel_text_address() Message-ID: <20240613093233.0b349ed0@rorschach.local.home> In-Reply-To: <20240613-dev-andyc-dyn-ftrace-v4-v1-2-1a538e12c01e@sifive.com> References: <20240613-dev-andyc-dyn-ftrace-v4-v1-0-1a538e12c01e@sifive.com> <20240613-dev-andyc-dyn-ftrace-v4-v1-2-1a538e12c01e@sifive.com> X-Mailer: Claws Mail 3.17.8 (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 Thu, 13 Jun 2024 15:11:07 +0800 Andy Chiu wrote: > kernel_text_address() and __kernel_text_address() are called in > arch_stack_walk() of riscv. This results in excess amount of un-related > traces when the kernel is compiled with CONFIG_TRACE_IRQFLAGS. The > situation worsens when function_graph is active, as it calls > local_irq_save/restore in each function's entry/exit. This patch adds > both functions to notrace, so they won't show up on the trace records. I rather not add notrace just because something is noisy. You can always just add: echo '*kernel_text_address' > /sys/kernel/tracing/set_ftrace_notrace and achieve the same result. -- Steve