Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754096AbbGFKW0 (ORCPT ); Mon, 6 Jul 2015 06:22:26 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:39645 "EHLO mail7.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbbGFKWY (ORCPT ); Mon, 6 Jul 2015 06:22:24 -0400 Message-ID: <559A56D9.6070109@hitachi.com> Date: Mon, 06 Jul 2015 19:22:17 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Pratyush Anand , linux-kernel@vger.kernel.org CC: dave.long@linaro.org, will.deacon@arm.com Subject: Re: Query: How to blacklist asm symbols for kprobe References: <20150629091613.GA24236@dhcppc13.redhat.com> In-Reply-To: <20150629091613.GA24236@dhcppc13.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 35 On 2015/06/29 18:16, Pratyush Anand wrote: > Hi, > > There might be some symbols defined in asm file, which need to be > prevented for kprobe-ing. > > For example, el0_sync, el1_sync, el0_dbg, el1_dbg etc (in > arch/arm64/kernel/entry.S) should be added to the kprobe blacklist > table. How can we do that? > You can port and use _ASM_NOKPROBE(symbol) macro in .S file. In arch/x86/include/asm/asm.h, it is defined as below. # define _ASM_NOKPROBE(entry) \ .pushsection "_kprobe_blacklist","aw" ; \ _ASM_ALIGN ; \ _ASM_PTR (entry); \ .popsection Thank you, -- Masami HIRAMATSU Linux Technology Research Center, System Productivity Research Dept. Center for Technology Innovation - Systems Engineering Hitachi, Ltd., Research & Development Group E-mail: masami.hiramatsu.pt@hitachi.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/