Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2395528pxk; Sat, 3 Oct 2020 20:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXdYHb/lus+HdJYaTikPfEdtt1WJevV1RN4FsKLcX4trk5q+K+7mmA29P664pUhm0HMbeL X-Received: by 2002:a17:906:2dd7:: with SMTP id h23mr7867181eji.175.1601782047969; Sat, 03 Oct 2020 20:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601782047; cv=none; d=google.com; s=arc-20160816; b=eMFQbnm5d86qnqwHlJIiPsPARsqQ38Rr+zJnPA6OX44Gtj2ctPxWG9RXFc6+fY/a6b gmQtD9SDOWB48wK2Se5N5YqyXAtkCjxPOVxkn/pS2jJcTaXKvGTd6yteQSQPX0r+qsXe Zw3aoFypgpFydBUGF+5Gr/tMfilgxP4FSA8fp0Nf5+0fNeGhgfq9e44zZu77XCS+hOTM Hk8gSvzjzvlcdBiNht6KMU/PAbqELMBa2MHAUYw7CIbqvniVvCopJBl1lakQKpmRn/yQ MWB9IvZl69y4z1ee1BwDhGi29cE3rjMdkPvqjvgz4XBcaoE3xzRFgM1waOok35ggcO1S 2DtA== 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:date:subject:cc:to:from; bh=BRZDkyJYF1BVZmrqYIv59kbrdWDpoeLct0KjG70XXGc=; b=uIEbviXXZTgVU/S57Z12NLdzAVoxbad/1pO9B9YjvvdAwUrbJQHaExdPF4V2DIu5Ic NJmm2tcCbHosu2qKKiT6emKx53LLfYAFeBkl8pQMWLAjfuTQ9nobypG0yPPoXNrzoDZv rhr6ayPeQ6PQV6OHgMAnCiVxVGkOfsatDwemhs9qV/P+6S8DMuk2zEm9Uw0mXzYP4FNq BxcxuQO1AVjCw8wcBHhgr4VzMyMoxRA8SDc81oyuV3v7Je0GzbWRQS0D03uJn0TvICsX CNivBDuXuSerz/gZVr60V3kdfvJB33nc3Fn/gj2sxWS3BEseQVTARnmXYROLSK7300vZ 8nqQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf16si1604794ejb.694.2020.10.03.20.27.05; Sat, 03 Oct 2020 20:27:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726547AbgJDDZ5 (ORCPT + 99 others); Sat, 3 Oct 2020 23:25:57 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35036 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgJDDZ4 (ORCPT ); Sat, 3 Oct 2020 23:25:56 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 3826429AFF6 From: Gabriel Krisman Bertazi To: luto@kernel.org, tglx@linutronix.de Cc: hch@lst.de, hpa@zytor.com, bp@alien8.de, rric@kernel.org, peterz@infradead.org, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@linux.intel.com, sean.j.christopherson@intel.com, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH v3 03/10] x86: oprofile: Avoid TIF_IA32 when checking 64bit mode Date: Sat, 3 Oct 2020 23:25:29 -0400 Message-Id: <20201004032536.1229030-4-krisman@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201004032536.1229030-1-krisman@collabora.com> References: <20201004032536.1229030-1-krisman@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to remove TIF_IA32, stop using it in oprofile code. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/oprofile/backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/oprofile/backtrace.c b/arch/x86/oprofile/backtrace.c index a2488b6e27d6..1d8391fcca68 100644 --- a/arch/x86/oprofile/backtrace.c +++ b/arch/x86/oprofile/backtrace.c @@ -49,7 +49,7 @@ x86_backtrace_32(struct pt_regs * const regs, unsigned int depth) struct stack_frame_ia32 *head; /* User process is IA32 */ - if (!current || !test_thread_flag(TIF_IA32)) + if (!current || user_64bit_mode(regs)) return 0; head = (struct stack_frame_ia32 *) regs->bp; -- 2.28.0