Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp790435pxk; Thu, 1 Oct 2020 14:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLYk+5su/dLYqmFjzJA4QeFpJCUCMwuxhv5y3DM1Qy0S+mxBTsd6G70Rp1NCMZYU65C8wv X-Received: by 2002:a50:cc8d:: with SMTP id q13mr10096304edi.298.1601586069717; Thu, 01 Oct 2020 14:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601586069; cv=none; d=google.com; s=arc-20160816; b=BTDqhcMSu323m4tOG+5Yh3gqAZDxCCfI7LrIbAg0rTHDdcwO0TU0abu7bWn1YAZZdD GH5tDb6N8jcAqEgRWsL9OseBhI9Rg+FEaU1CEm765WtxjGsbnm4/0m9cg2b1/iei6QqD vdoffyVDoMM6VOYBN1Zlol9J+Oidm30jWhm1hzilp+kzTDUVaQnzpjWooKyQSVaQeuyC a2ZQWxoc7LtbS51Y0q0zsFhLj0PuNRCM3HrtksAkru/v9qxFazRVHDeDFQg6Oo71dJBt 6TYaTy+if9hshDKx1ZX4zRIFFxOV4Sfm7WCqbbZ2466F449/w/SYE7GxO5R6nG3lh0nq fcnw== 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=FesqnN9ZJqZojTcnKP+JyegtG99z1OsprVdJP9Uou1F3HHe7UThRXZjafZS7Vr3wfL wn8XdI1Iz+DiM00dPG5i9FBcWaZBUbNwa6Xe2r2n9QW0+w3kS0AGMc/FUl+gBxdB2ij7 rvaB193+XuL2z+g/Kkj7yO42IoWreYDR5m20WivNsGfCALAsPmxKH+QB/V469pBG5lqM /XdiPMW29m7f0ZdM4zjmaTbcjJYIlPeSJSX0B8iDpZMKphXf7Ettdl8an41lMZYNAkDb 5KWvfqyye8fb+4nWhNhj1F9Cs3AUV8FNFhAvvsiuqKRKLP4yN+LA5Q2DLqimSCbGzHcW duLw== 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 ca21si4277093ejb.245.2020.10.01.14.00.47; Thu, 01 Oct 2020 14:01:09 -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 S1733030AbgJAU7g (ORCPT + 99 others); Thu, 1 Oct 2020 16:59:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41212 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbgJAU7f (ORCPT ); Thu, 1 Oct 2020 16:59:35 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 4D5D229D10A 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, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH v2 3/9] x86: oprofile: Avoid TIF_IA32 when checking 64bit mode Date: Thu, 1 Oct 2020 16:58:13 -0400 Message-Id: <20201001205819.27879-4-krisman@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201001205819.27879-1-krisman@collabora.com> References: <20201001205819.27879-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