Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1535662pxk; Fri, 4 Sep 2020 11:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMTjmjzUHrWPJwK8LCbmEeo8lcxkKtzKxYvj3UZu3gQ9n3BEt+UsrzgRR/cjKaNZJkQDmG X-Received: by 2002:a17:906:68cd:: with SMTP id y13mr8959383ejr.132.1599245403893; Fri, 04 Sep 2020 11:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599245403; cv=none; d=google.com; s=arc-20160816; b=wVOWeVheljn5LC0J8ScGa938oD6E11s15eERu0lY0c2wQ1k4FL7JMdPMWGO30Q76BZ 3xWBDHk0KgOw8IPCXdHAJJwDuorYkdGvissjacfs3zBK3u5hMNAWkofVJ8aztrg4CDq/ tyE6sLaoJkSiYrOuoA7sj3v4A5HBEqB3nXVdAQ4Ysq+M3DW62h9SsFv7uvwg5KFQTTHH YvdRhgHCg3lrG73KKavXo3H78gS+ilhOuurQCu7Oj2o2VpftneV/R/N6XbdNRZUGERqi BtEbMQg9iyLIzpSIOBAUut/AyQ5nK3GEzg7f0F8foZiIMaD+89ULH2apTeG8p2lsJZ1F ywrw== 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=CiYSRBaMluJSVw3MWVD8YBv3e0YIzVGvkRBc3uY9Q5M=; b=jmPJNqkuxKXkUzMbrQnGSr44H96xmbmq5VYp0YvYNX+PYF/02eWes8HMiT3ivFvVU4 kGPAGrwEc9sA/QJ6/F4etncpjQ4wKV7aoTEXQcm82jtRV8tsJPSwA0gLZafklg239KhQ fI0Spy+Y3FAGg5lcT+RampxCrAvGIyvj2tIRo8Q4D/0uJjj7q2T1D17QXfE8K2u8OaZf 69iGVfRinIzg1GLXyf0Et9PzNSsNsyStrI6Lul3cPIdwhoubgru5RBt/D9OJ/MeS54nL GVQ9CYzLuvAEaTUAp17awKkU/kR2l1CP3I34uO5CGpJ+60IKFt4XPYuBktZinwyzpWsV NECg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I5NQL21U; 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 n9si4713179eds.46.2020.09.04.11.49.40; Fri, 04 Sep 2020 11:50:03 -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=I5NQL21U; 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 S1726360AbgIDStL (ORCPT + 99 others); Fri, 4 Sep 2020 14:49:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:36204 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbgIDStL (ORCPT ); Fri, 4 Sep 2020 14:49:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599245350; 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=CiYSRBaMluJSVw3MWVD8YBv3e0YIzVGvkRBc3uY9Q5M=; b=I5NQL21U3Eir0+LziducBhG3YErqD7Hq0hcN0GPLy76qRY1ia/NLO1S3ZVS5wLMfY6fYbV 0xn46sKEB8+84UxAfuM83VrsgXqa8GgxY33HSyfCQfQDRuHfusTw1i1snIVMH+u1I9vN74 olTKARhQsQXIKusTnEG8JVLZ0q+w8LM= 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-206-46EtkNuMOWKeIdo1q_bFVQ-1; Fri, 04 Sep 2020 14:49:07 -0400 X-MC-Unique: 46EtkNuMOWKeIdo1q_bFVQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E5C218B9EDB; Fri, 4 Sep 2020 18:49:06 +0000 (UTC) Received: from treble (ovpn-117-138.rdu2.redhat.com [10.10.117.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C996E87B2D; Fri, 4 Sep 2020 18:49:05 +0000 (UTC) Date: Fri, 4 Sep 2020 13:49:04 -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 09/10] objtool: Make unwind hints definitions available to other architectures Message-ID: <20200904184904.px725vsob6zwd3ir@treble> References: <20200904153028.32676-1-jthierry@redhat.com> <20200904153028.32676-10-jthierry@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200904153028.32676-10-jthierry@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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:27PM +0100, Julien Thierry wrote: > +/* > + * UNWIND_HINT_TYPE_CALL: Indicates that sp_reg+sp_offset resolves to PREV_SP > + * (the caller's SP right before it made the call). Used for all callable > + * functions, i.e. all C code and all callable asm functions. > + * > + * UNWIND_HINT_TYPE_REGS: Used in entry code to indicate that sp_reg+sp_offset > + * points to a fully populated pt_regs from a syscall, interrupt, or exception. > + * > + * UNWIND_HINT_TYPE_REGS_IRET: Used in entry code to indicate that sp_reg+sp_offset > + * points to the iret return frame. Now that this is generic, I think REGS_PARTIAL would be better. > + * > + * The UNWIND_HINT macros are used only for the unwind_hint struct. They > + * aren't used in struct orc_entry due to size and complexity constraints. > + * Objtool converts them to real types when it converts the hints to orc > + * entries. Now that ORC_TYPE_* have been replaced by UNWIND_HINT_TYPE_*, I think this last paragraph should be removed. -- Josh