Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1540621pxk; Fri, 4 Sep 2020 11:58:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmh818URIuPsg2atm1xOj7bKcNMSxzHyu1HJQR2RU1AuTJiWpJlKFbUKjGCYwjDcEX6FHW X-Received: by 2002:a17:906:b881:: with SMTP id hb1mr8734638ejb.207.1599245936929; Fri, 04 Sep 2020 11:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599245936; cv=none; d=google.com; s=arc-20160816; b=j6tXg6R+RmBg48/JcQww5YZ/BhXXIYkTgn0v0cQnWTGLR/tmXXMWh9iFSeOokWq9y2 wis8logZzq4hedv+EOTW3LV47gnytSq86mhH7MJ4o7rcXSUlQB82CJMekCcAgZ+CREY5 gSRogqggR4IIYhp4aaQNtn1FXttiD8CGoWr3isHsVFdcbNvHRln5IZv8rV4C9ObBwCjy /ZBgGsNTTyHDyJCKZo07o2aqv8Fc6dyYybOlDCHA4LTd0KIsqFQW/WVF6Ea06/h5d7Ia k+iGwkAV/hRrBKm7U5yT6BAgA7abbOXpZgyTztfWpZWdg8kDDniZiVb1Mkr97dD3hLoB bHbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oFPHcehcUmB19GUL5LiwgzkyVfpLa6gz216yp/zHq+4=; b=US1r/loaHhNejSMDfGtKL5L6NbXDB+BnVEG/yGjpBj4tTfzZLOx7aGWyK5h5xS5F83 Qad3cLDa4JymhxTORQEmRK1WmlB2hXeVqPvpDI165AoMx6Dj8Wsahr6xG/yY6+huSdnd hhIcgnWg3LnYPDS7Sb8bgKbm18loKberiD6pCKpSthF1G8xVrjPTvtNufPMFSrg8++hE 7znzsNsE6hsA2RAnzpaW177hLj/fEjH3USed9id6Wq/xeBF1lkAubFgVK+EBnkh2hIhy nV6NiK/IQC+HqFGDFEvVtmsHBnnEEs5jwytUph4EFA7XzqlxGrIqAfeqshiPyOWmDdqB RESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PHiRDDSP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si5114897eds.447.2020.09.04.11.58.33; Fri, 04 Sep 2020 11:58:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PHiRDDSP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbgIDSze (ORCPT + 99 others); Fri, 4 Sep 2020 14:55:34 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44124 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726047AbgIDSzd (ORCPT ); Fri, 4 Sep 2020 14:55:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599245731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oFPHcehcUmB19GUL5LiwgzkyVfpLa6gz216yp/zHq+4=; b=PHiRDDSPY1/XIUs0LlCGyxEYAI+7xvL/0MIP5yjKMQYffm0rLQYcOlrTr0m8pa1JUz8/8H nb3N7NTrydqaqUI/NdIHZ0pkfx+sgrkfUanevqTOoXu4UjMtVfd4iXISktRgS3EzQ4KDi3 4gMv0a8yc+3jopW7ySCEvFVisgYgEM0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-558-ZpJmevbXNOGJeEKRTCVFMg-1; Fri, 04 Sep 2020 14:55:29 -0400 X-MC-Unique: ZpJmevbXNOGJeEKRTCVFMg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0819918A2240; Fri, 4 Sep 2020 18:55:28 +0000 (UTC) Received: from treble (ovpn-117-138.rdu2.redhat.com [10.10.117.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E90F5C5DE; Fri, 4 Sep 2020 18:55:27 +0000 (UTC) Date: Fri, 4 Sep 2020 13:55:25 -0500 From: Josh Poimboeuf To: Julien Thierry Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mbenes@suse.cz, raphael.gault@arm.com, benh@kernel.crashing.org Subject: Re: [PATCH v3 00/10] Make check implementation arch agnostic Message-ID: <20200904185525.zkx46hsbobghr2wb@treble> References: <20200904153028.32676-1-jthierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200904153028.32676-1-jthierry@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 04, 2020 at 04:30:18PM +0100, Julien Thierry wrote: > Hi, > > The current implementation of the check subcommand has various x86 bits > here and there. In order to prepare objtool to provide check for other > architectures, add some abstraction over the x86 specific bits, relying > on objtool arch specific code to provide some necessary operations. > > This is part of the effort to implement check for arm64, initiated [1] > by Raphael. The series is based on top of the separation of check & orc > subcommands series[2]. > > I've push both series base on top of tip/objtool/core at [3]. > > - The first two patches make it simpler for new arches to provide their > list of kernel headers, without worrying about modifications in the x86 > headers. > - Patch 3 Moves arch specific macros to more suitable location > - Patches 4 and 5 add abstraction to handle alternatives > - Patch 6 adds abstraction to handle jump table > - Patches 7-10 makes unwind hint definitions shared across architectures > > Changes since v2 [4]: > - Rebased on v5.9-rc1 > - Under tools/objtool/arch/x86/, rename arch_special.c to special.c > - Rename include/linux/frame.h to inclide/linux/objtool.h > - Share unwind hint types across architectures Thanks. These look good. We're still trying to get our merge process worked out, and tip/objtool/core is now pretty old, but these apply well enough. If there are no more comments I can fix up the few minor comments I had and then try to get them merged after your other set (once Peter and I figure out how to do that :-) -- Josh