From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbaKTFKL (ORCPT ); Thu, 20 Nov 2014 00:10:11 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:48640 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbaKTFKJ (ORCPT ); Thu, 20 Nov 2014 00:10:09 -0500 MIME-Version: 1.0 In-Reply-To: <546CAF5A.4060901@linaro.org> References: <1416292375-29560-1-git-send-email-dave.long@linaro.org> <1416292375-29560-2-git-send-email-dave.long@linaro.org> <20141118145643.GO18842@arm.com> <20141119112553.GC15985@arm.com> <546CAF5A.4060901@linaro.org> Date: Thu, 20 Nov 2014 10:40:08 +0530 Message-ID: Subject: Re: [PATCH v3 1/5] arm64: Kprobes with single stepping support From: Sandeepa Prabhu To: David Long Cc: Will Deacon , "linux-arm-kernel@lists.infradead.org" , Russell King , William Cohen , Catalin Marinas , "Jon Medhurst (Tixy)" , Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , "davem@davemloft.net" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19 November 2014 20:25, David Long wrote: >> I was thinking of the magic hex numbers in the kprobes decode tables, >> which >> seem to correspond directly to the instruction classes described in insn.c >> >> Keeping the actual emulation code separate makes sense. >> >> Will > > > Of course that follows the model of the much more complex arm32 > kprobes/uprobes decoding. I can have a go at replacing it with insn.c > calls. well, the magic hex numbers were derived directly from ARMv8 ARM Tabled C4.1 thru C4.6 and bit-masking would be faster search, but surely you can give a try with insn.c (this would consume lot of function calls to arrive at same decision). ~Sandeepa > > -dl >