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 8B1D11487E9; Tue, 25 Jun 2024 09:55:29 +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=1719309329; cv=none; b=jGXu2dzhUdcXka+065sy3WpRfWP0wRATntd0Qkci8C9AX+kPTCyUlPPv7Fz22EE4TPjugIEAqtHR2eI+6Riee/5DPfQwoEQtJavzbtDUAj1P1ZRy0WZUGneO/0M4m4xfmaOkqpOI2rrgGYGYHFGbCwCOzs2fGsv2IWKZxc9eL1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719309329; c=relaxed/simple; bh=KJpGNxJRFauiTRP7+cutPe8L7BQQn1MmgsNBatskqgA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fk0uyFHlfTMMCzhMRWftm9Lc6y9LXsX+Qj6N5A+oXSHqvGeb9IYxOw7F8demcXlkiC3nCVFzrDQ6OunNygGvBvQpFLm2FB03pYRMtTdV6c0KMyTIbf+/mRT5OlbSqri+4vV3OBh+k0mVl7Fa2ILArWdQ47qWLfpFMwhUT/OsoMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=agi6jRex; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="agi6jRex" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D085DC32781; Tue, 25 Jun 2024 09:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719309329; bh=KJpGNxJRFauiTRP7+cutPe8L7BQQn1MmgsNBatskqgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=agi6jRex9eV0fdXwemG8lswXgF/iSKc3VoxGfkTIM4DXURxJ4k4h3azwppRRnzAhT cI9B++I/G9SYChKkYWBoWsWO+elEYRuqYvgOtQAY5lJIFHy3mJmO7meUoNKsEp6w1T 60brxQAi6vETMUqTfKnhaYcLaqzhO7jsmGxQF/xI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andi Kleen , Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 6.6 172/192] perf script: Show also errors for --insn-trace option Date: Tue, 25 Jun 2024 11:34:04 +0200 Message-ID: <20240625085543.761879988@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240625085537.150087723@linuxfoundation.org> References: <20240625085537.150087723@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter [ Upstream commit d4a98b45fbe6d06f4b79ed90d0bb05ced8674c23 ] The trace could be misleading if trace errors are not taken into account, so display them also by adding the itrace "e" option. Note --call-trace and --call-ret-trace already add the itrace "e" option. Fixes: b585ebdb5912cf14 ("perf script: Add --insn-trace for instruction decoding") Reviewed-by: Andi Kleen Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240315071334.3478-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/builtin-script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index c38e988c2a6d8..f4f3ef90a4629 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -3783,7 +3783,7 @@ static int parse_insn_trace(const struct option *opt __maybe_unused, if (ret < 0) return ret; - itrace_parse_synth_opts(opt, "i0ns", 0); + itrace_parse_synth_opts(opt, "i0nse", 0); symbol_conf.nanosecs = true; return 0; } -- 2.43.0