From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0EAF1C43334 for ; Tue, 26 Jul 2022 10:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IkGxOzWNs4dRqIwfsVAD6V6+Muwy88xmVaLPy+QUSX8=; b=Dc1nWOdMPyDaib gOws03X+TeiX3/hY5+QV4f5IKrsQuc7gz9C2KS3kduRwH4g451qlB4z7qiub5isiah12AQLP2thC/ w+X4rurNAud4DB09jHzZ3ypO4zzymOQ9hasZUfaZFIKCp1veFFHNzyR2VYbJd4e3f8fO5xYod7Ctj LWF6F0t0hWREDXJG+PbeVCAT9mYTNmHFzpoaNEPc9121TKjVCYAQfvGEgAZWO/8GqLrEVKELSCoeB 2/a71Ud21ep77h0nOSyHFo9YmVrSjTDC2kud0ks+OMcwMr9oK0SKgknqNAdVd0pqiVuIeC3z1WPQW hu/5gQe/YQkUZnXgDMTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGHip-00D3Mf-5p; Tue, 26 Jul 2022 10:23:27 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGHil-00D33a-LA for linux-arm-kernel@lists.infradead.org; Tue, 26 Jul 2022 10:23:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZyyMHLfPNBqn8b5XevXxfGsSWJJ8PaS0+qkVi+HN0QI=; b=v2dCzkOk27vIpvvmVSME49wkle Qxx5VLFmm98O/qFeL/t9e2FzIQiowmJ+qQQ8MczgE1/XM9yio3YjO+wUEZ8r6YLdaKYFLKMeFSsm0 HO7lBFJZGc7cvG2YBZFKSIyfVeEWHkwtMZlMzoVoUH107FtcNbvAN7xI8MzE7sG00tf+hhQ6FVJtA bnn5wHl93DqKT0CGcPXuA6KzcqbNvYgQGJAdD5m9PcaDPRkGfmWQkApGTXxPdc1rA5QeLQppcRIIh eYdMbEVfW6ytoTzrMtyGnEKoGorQpO1yAKKTNDMAbAEUYqAgEDQH/S9AjkW3LygZrA7PBKKYBPkt3 IjqYftuA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33568) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oGHi8-0003zX-5j; Tue, 26 Jul 2022 11:22:44 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oGHhz-00018l-Q6; Tue, 26 Jul 2022 11:22:35 +0100 Date: Tue, 26 Jul 2022 11:22:35 +0100 From: "Russell King (Oracle)" To: Li Huafei Cc: ardb@kernel.org, will@kernel.org, mark.rutland@arm.com, broonie@kernel.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, arnd@arndb.de, linus.walleij@linaro.org, rostedt@goodmis.org, nick.hawkins@hpe.com, john@phrozen.org, mhiramat@kernel.org, ast@kernel.org, linyujun809@huawei.com, ndesaulniers@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 2/5] ARM: stacktrace: Avoid duplicate saving of exception PC value Message-ID: References: <20220712021527.109921-1-lihuafei1@huawei.com> <20220712021527.109921-3-lihuafei1@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220712021527.109921-3-lihuafei1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220726_032323_699207_95180E65 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 12, 2022 at 10:15:24AM +0800, Li Huafei wrote: > @@ -34,6 +37,9 @@ void arm_get_current_stackframe(struct pt_regs *regs, struct stackframe *frame) > frame->kr_cur = NULL; > frame->tsk = current; > #endif > +#ifdef CONFIG_UNWINDER_FRAME_POINTER > + frame->ex_frame = in_entry_text(frame->pc) ? true : false; in_entry_text() returns a bool, so there's no need for the ternary operator. The same comment applies throughout this patch. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel