Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5911970ioo; Wed, 1 Jun 2022 15:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5r5VO98Ius2kgaWVlpoGpPz8UwFsS5Gd9ASjGWoDXlvlvqgOlB8TLJuDgDRXNzB3xx4kd X-Received: by 2002:a17:90b:33d0:b0:1e0:4953:d848 with SMTP id lk16-20020a17090b33d000b001e04953d848mr1798086pjb.64.1654123746238; Wed, 01 Jun 2022 15:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654123746; cv=none; d=google.com; s=arc-20160816; b=S+Tw3yFOR7h0AI1pOvDuayU5S2ovNppyuQKGWI8J0755hmw5iKaFIwt5GMztalXW9A phfkcZWtdJ8CPogICTwX8tEUinlYpGM0B7H9FSPD05wQohQ3yctkC19c2pPHjy0Ac/DB vOIEtzvpiOzLKGCR1hTatk6RQWbQXyRRrr5gYoXdlVMdOeKqnWyaSSlPl+YuwZhKVbwz CWhMo3Bsy1UoJ932VaVbDjYe2Pt6pe7zslP0vJ14yKk+wnlU9l/HE4/WSviv5RPVNJdm JOS2QXv10RnvXLpfuaQug9x+mLYDkj6Z5K8PACIuZnpOAH39sBw25vpxvWvlK5FS1MiW 1qdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=M8pAiYfNyt6tZDL5lQY+5VM1wBjeicnIUXpnmkImi5A=; b=HukLp8T78bp0fNMF1tt92SnL8ekjk6JIq9CwyuTQCRu/x4ONDtr9tcmm9ogeU9h0vj jocmDduNKbxj5bGiAuEdl/mf/I5AqE7bMVRg55C47K39G33rSgFRzyj9mmcMuCoMkEFl pr6NnueKQUFT6XlXtcKgLTl6mS42UclPo9qIxa48HpkVWGg7jarrNZ9zXYztE3B2cPIZ IZe6AyMOkuoTyNl6HNGZTBMOc0tcCxsqdJrXDwhHt2LqYk4Ka9feD3MrnyPfAxjFPoj+ EAgdhl/PogIzD9dzWJ2AgQAqkSxWQPcul6MytRgJgopfnGX8wA8I+f5coD2Oo84r/ApP NIzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ckxOtl7B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e16-20020a056a0000d000b005109299b02fsi3461852pfj.113.2022.06.01.15.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 15:49:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ckxOtl7B; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0714F2823C6; Wed, 1 Jun 2022 15:45:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232397AbiFAWp2 (ORCPT + 99 others); Wed, 1 Jun 2022 18:45:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232398AbiFAWpY (ORCPT ); Wed, 1 Jun 2022 18:45:24 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93DFE1D5A81; Wed, 1 Jun 2022 15:45:22 -0700 (PDT) Received: from [192.168.254.32] (unknown [47.189.24.195]) by linux.microsoft.com (Postfix) with ESMTPSA id 6650720BE540; Wed, 1 Jun 2022 15:45:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6650720BE540 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1654123522; bh=M8pAiYfNyt6tZDL5lQY+5VM1wBjeicnIUXpnmkImi5A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ckxOtl7BsJyVxjaoRnh5pMaaktmJ/pjDcGRl3x18qDfTBCcDwA/e6jdBoQppyv1TQ VBLe24/k8JkhTXXeOwB2Chi/OaMITW/W9ar2zWl79bZpILfzmO7gEvrzUGLJTGMOYj IBWW1HK/aiDnG1Q0S0DIxe1xPywi+l9gUqEx0IIc= Message-ID: <38546223-7585-bfad-b553-9739d31d7fbf@linux.microsoft.com> Date: Wed, 1 Jun 2022 17:45:20 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [RFC PATCH v2 09/20] objtool: arm64: Implement command to invoke the decoder Content-Language: en-US To: Peter Zijlstra Cc: Mark Brown , jpoimboe@redhat.com, chenzhongjin@huawei.com, mark.rutland@arm.com, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jamorris@linux.microsoft.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220524001637.1707472-1-madvenka@linux.microsoft.com> <20220524001637.1707472-10-madvenka@linux.microsoft.com> From: "Madhavan T. Venkataraman" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/22 02:51, Peter Zijlstra wrote: > On Sun, May 29, 2022 at 09:49:44AM -0500, Madhavan T. Venkataraman wrote: >> >> >> On 5/24/22 09:09, Mark Brown wrote: >>> On Mon, May 23, 2022 at 07:16:26PM -0500, madvenka@linux.microsoft.com wrote: >>>> From: "Madhavan T. Venkataraman" >>>> >>>> Implement a built-in command called cmd_fpv() that can be invoked as >>>> follows: >>>> >>>> objtool fpv generate file.o >>>> >>>> The built-in command invokes decode_instructions() to walk each function >>>> and decode the instructions of the function. >>> >>> In commit b51277eb9775ce91 ("objtool: Ditch subcommands") Josh removed >>> subcommands so this interface is going to need a rethink. >> >> Thanks for mentioning this. I will sync my patchset to the latest and send out version 3. > > Before you do; why are you duplicating lots of validate_branch() ? Why > can't you use the regular code to generate ORC data? > > I'm really not happy about all this. Hi Peter, I am preparing a detailed response to this explaining why I have not used validate_branch(). The short answer is that no validation is required for my approach. But I will send my detailed response shortly. Thanks. Madhavan