Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp691560ybg; Wed, 10 Jun 2020 11:03:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHpHKEaFcVuh6V9TrfurGQz/2XAUyxuvl8cmvpSGu6zB66cElekjJRPZX4WXqRQEopl3kd X-Received: by 2002:a17:907:217a:: with SMTP id rl26mr4453226ejb.209.1591812219897; Wed, 10 Jun 2020 11:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591812219; cv=none; d=google.com; s=arc-20160816; b=oR8sVnO8Q7saIgeiWTvVinKR4SHRRvm3rFQnwsCoAljBqOo9ILWcMu14hGaYk1kZbM govZbcNAapx8LyegbRD9aHbnLMOL+PwSh2t3h4+VuhwhF19vRu77b5QLAjdTT8nNg3vZ iwPa5ntkI80vpl+hBXBiTsFtM6jl49CcpDmWBJKUPDZd8w4aeyWufTwyu5gMe04yfoKS zlKxtQ6BGgM7iPpkhIpc1/pmUSwu85R0jMM4ZsbSQeRAFqTPSsK4qQ1k7Q+N3zR2q3ef x96L2uKNXFxLwWDWiZPB412dFhHx64qw9bUvGLA0jMbvPXpZbKKLZIFG7s6m0CEeedLZ WFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=/x62l24ycFnBgZAax/2BHHaPooNF+WiMNI+M5P8lOkk=; b=amtUosMbiPN36jQOQYS7u3vUkJkxNVzsGDG66IrLBTvsXlxZSGl0DjBJeRj2tw2EfB emeXjpVovF9VLWz60ZdSOBLBgG7UhAcbZ3nvZ7zAVt4ArGm5Xl3m0CeNvc0p6jei+ygV Ym/sdF0WfZ4BNzPkCvyh5QtcYEbWftsr3ZARIBp9Ho7sSFXIMErJCnrUmaq0HayqeD2/ ZlMwo834GYXTXVmBMpLAXSKd6gr30yT/Xg4B5tlFk9R7yCYIx8/qu6IEYJsmNxnuwbso rzDPDgzrJfBhLKZHqCQvo0bIuHnxPGz6XWMbIUrawnHvl2yfrfHHfqd2zSsHN3+/8QfE JpNw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a63si194537edf.135.2020.06.10.11.03.14; Wed, 10 Jun 2020 11:03:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729193AbgFJNUF (ORCPT + 99 others); Wed, 10 Jun 2020 09:20:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:37380 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728864AbgFJNUF (ORCPT ); Wed, 10 Jun 2020 09:20:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3CECDAE64; Wed, 10 Jun 2020 13:20:08 +0000 (UTC) Date: Wed, 10 Jun 2020 15:20:03 +0200 (CEST) From: Miroslav Benes To: Julien Thierry cc: linux-kernel@vger.kernel.org, jpoimboe@redhat.com, peterz@infradead.org, raphael.gault@arm.com Subject: Re: [RFC PATCH 7/7] objtool: Make unwind_hints available for all architectures In-Reply-To: <20200608152754.2483-8-jthierry@redhat.com> Message-ID: References: <20200608152754.2483-1-jthierry@redhat.com> <20200608152754.2483-8-jthierry@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julien, On Mon, 8 Jun 2020, Julien Thierry wrote: > Unwind hints are useful to give some information about the call frame > or stack states in non-standard code. > > Despite unwind hints being used in arch-independent code, the > unwind_hint structure type itself is define in x86 kernel headers. > > This is because what an unwind hint will describe is very architecture > specific, both regarding the state and the affected registers. > > To get to share this concept, expose the unwind_hint structure across > architecutres. However, the hint types remain defined by the > architecture code. Objtool then needs it's arch specific code to > "decode" the unwind hint into a cfi_state. I think it would be nice to split the patch. Something like. 1. current include/linux/frame.h mixes assembly and non-assembly definitions, so introduce ASSEMBLY ifdef first seems like a good idea to me. 2. move the relevant definitions to frame.h and add the file to sync-check 3. the rest of the patch Would it make sense? Otherwise, it looks good to me. Miroslav