Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2778624img; Sun, 24 Mar 2019 18:55:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE6c459+uNQykutU0uRnYnPY7VdmNKAOlkZUBJ/X0wQvnTh8MKe4Hq+7DX0dgyKxeH1G3B X-Received: by 2002:a63:3f8b:: with SMTP id m133mr20587132pga.91.1553478920106; Sun, 24 Mar 2019 18:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553478920; cv=none; d=google.com; s=arc-20160816; b=yvdEF5fuIKZ5XC8lMPXai0AakDmIMr9xP/H9FIZzr9ga8g4nA+BgNq2j3Zt1dQPd6C RdW6vBxSmUMj2PJ1hld69ooWVJP1oNwBzzAocyWfVRq1+ejRPLdhxZ4cG4B4Ip4i3t8p 26dydb6+zXCtPPafZNUW3bwDIWw01oByDB+bu0Tyusk6dL1gOHYa3NGmWAj/+bHkjsyn CTVYsV9IHmskz9PJd9Sln9ZB1uLWMF8QMfCnnoxTWHq2llPRb+TMJBbZ2JHJxCY42PXq ioIc4+VN4expLwHUtPGYh+VLpmIoK7jC/1i/HuROtZ97knuowaRlflb3YySWX7NFS60S AyEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PRvXY8uZQM2krFubk0mY4dXzvlJpsUpVvr/IZaKwrK8=; b=VTlFAGIV/9JEbFxfSlhaQ2GgweuOfRf2s3FGSue/baX/AcjsJ7cT+022tjx8KEpL8G vyRpotEQxgHfoQU55ARERIcwvlg+8CGaquVpTmEANMr/9JJ3mqFGivOTeYUtCwexFSp7 2HxkslXWVmpWMyb0Yxoive/SGng5iZaXy4zuCm0+apykdJlqB2H5kETIYuDAKi+StadO 6scy11mJLzmSmAcj3wZ94OSRtj6+G7hO5n3hkSBQ+KZ7UrWCUWDnJVqG31k2TFz4Xei7 B9ReLP0ZFnzpdYXqOd9ZnoK9R6UKLGLEq5Yut8qpIKI5KNnOPPl44HZvLaiyh4CwAsNV +uHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R9hmWk5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si12431380pgk.501.2019.03.24.18.55.05; Sun, 24 Mar 2019 18:55:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R9hmWk5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729308AbfCYBx6 (ORCPT + 99 others); Sun, 24 Mar 2019 21:53:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:36110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729113AbfCYBx5 (ORCPT ); Sun, 24 Mar 2019 21:53:57 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A838520896; Mon, 25 Mar 2019 01:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553478837; bh=ZpJL5OTRgMLyrCVyssmdgn+psPQ8+NDODlsawdHzhzs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R9hmWk5GP22W7oDNIRT8Yqu8gEXctb8i9y5Brv41Ofhl1a3AtoiNNMkUrLEoRDQP/ vPdDDafOERwXUWrdQonKBd1R7MB/FmDh2VfUlmiA7YjJCCZBk1ek2SUjlrIBhssVu6 qWWJSqLxcamJXVFNlBAirOoON5deepkVVzt8/+pk= Date: Mon, 25 Mar 2019 10:53:53 +0900 From: Masami Hiramatsu To: Andi Kleen Cc: Andi Kleen , x86@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/17] x86/kprobes: Make trampoline_handler global and visible Message-Id: <20190325105353.66ed097a64bdc2c83fb73f35@kernel.org> In-Reply-To: <20190323143518.GB18020@tassilo.jf.intel.com> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-12-andi@firstfloor.org> <20190323184521.a443cc741997cb0d3ed26395@kernel.org> <20190323143518.GB18020@tassilo.jf.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 23 Mar 2019 07:35:18 -0700 Andi Kleen wrote: > On Sat, Mar 23, 2019 at 06:45:21PM +0900, Masami Hiramatsu wrote: > > On Thu, 21 Mar 2019 15:00:03 -0700 > > Andi Kleen wrote: > > > > > From: Andi Kleen > > > > > > This function is referenced from assembler, so in LTO > > > it needs to be global and visible to not be optimized away. > > > > > > > I got it. > > > > Acked-by: Masami Hiramatsu > > > > Andi, out of curiousity, that is not only for x86, but > > does all arch have to care it? > > Yes all architectures need it for LTO, but I currently > only test x86. There are some other people who made it work > on ARM / MIPS / PowerPC before. That's good to know! I worried that similar mistake I made on another arch :) Thank you, > > -Andi -- Masami Hiramatsu