Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3054885ybi; Mon, 17 Jun 2019 15:36:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9jIhXemBqIr34XDvtKD9VDUaFNqm5R81iS+X0K6DJ3HaNe9YYsM3KclQyHP+iJGzTXiww X-Received: by 2002:a17:90a:b298:: with SMTP id c24mr1543051pjr.18.1560810993464; Mon, 17 Jun 2019 15:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560810993; cv=none; d=google.com; s=arc-20160816; b=XgB/g137+EtNeDrFA+qY6V47gq139Sc7U6q2TuPN2TkTIlSdEidpTQ5nGLS0/uv9+x dWFpkqT2pDMVdgJz1X4VHWmpSQBALoB02IO/rsxGOBiZW44HnvzCkA3glNLrwGShOprA PhZpxaw4C24mCGSEZhwLyE+a/ymvVVyHw3zFXFXxf2uCtY9YYmOvgzNOA9MuRx7uWEKG Fic4RaOqL5JXWmr5HPVdsVK3hAXGo2u0u7N7uUzS8C9y/P1uxhCa/vznh9F7U/XUQpbb 7Ii2mOE8nTAfJujxlK2hfsF5g8LPc1ziwcwFI10mlKq2S/nQ23h3AbYRZ+AI0Iox4Fq1 krOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jdPOeSR0Djd1OnJVTCbTPPRB0AwFbffNcyIU9XNlUrI=; b=SIKCkM64RVJm1ot0CutAY4re23PcN1hZrC17pHJbKCmqQ69UDKHBWIMqVXq3PvkuBU URiVWFGqhElOier3SuLuJ/adVLEiuIS5T/WHaI2tY1xprZIjFVNI6deqQOlTWKRKOJT4 txc+/hm51qDPgTInLF4jo329MYVvv0FHIRZfoYwAu1drVJhyiNzC/vRBLhYsC+YJcq57 NIkSSUrFz5cr8djknNq8YWW+wkcy+X2F1LrkMfBt6kFV90dWYQ4Btr70+QLHDkD0G55a d35rNU6nCdzEBHUTQo+MXNBXUTJBlX6m32+0ysoBkH0H4cgRjuyIzT0bQxxOSGcnEKOE tc3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FvhSsFe0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 131si12079785pfu.165.2019.06.17.15.36.17; Mon, 17 Jun 2019 15:36:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FvhSsFe0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbfFQWgI (ORCPT + 99 others); Mon, 17 Jun 2019 18:36:08 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43601 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfFQWgI (ORCPT ); Mon, 17 Jun 2019 18:36:08 -0400 Received: by mail-pl1-f194.google.com with SMTP id cl9so4769813plb.10 for ; Mon, 17 Jun 2019 15:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jdPOeSR0Djd1OnJVTCbTPPRB0AwFbffNcyIU9XNlUrI=; b=FvhSsFe0xJQ6kkNZED5XOWFPTr+5IIUSXOWSREhWeRO0F48d81LQ8TTYnGcPBXDvwF rYV3zplOT0xAd+7DVtHF16M2D6+csR5oXsaXVBOzFqE8yQIkh++z6eboFnElJFXoMq1m X4Y4mNJW+Ai5wy4/JE+mzwXHflc3Nn09x4Bqjcdeq7EXvdqRMkQxp4LbJ+2yzLQ60tLI oFuC0BnD6KkH0w84v/jAN/ELhWiTBD7YnstocUq/IOWTE9dm8P0Wl3y3brBWzIEipQ+Z UJXSPWu3w/Kft0QNl59+twLoJHubqrEmg5Z8QhbrePuorJ6vpo5oEKk1Rrdf1iq+/+5n FeLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jdPOeSR0Djd1OnJVTCbTPPRB0AwFbffNcyIU9XNlUrI=; b=Xy7EeEuv7HcY5gL6t49rw+Qt/60wx7VXEBlOip5moOhd05tBbS13QO4eBV2Z6HFznr K6kDbSf523L8j2GaDGMAVfK4LIAbCKKTXxQOym4zwpxDC4V4JmksgNsWHyQLW2H0e/kp l33L0kDUYz+oHxHIhoxShz3jJGPfJoTyzWysiadPeKel6/fnS2MHV6FGftQ21uj7lIHh RzCwfbZ9QzWblBN3dtgwBCcDP0GSHpK07IiQW7zZQIL17bGcns4z0rJJbjeECTybLDGC tAj3tdNz7hMoQQexW8jHDo/0Xpaw4i2PI3gCw1QQKAUyTNbh1l0kHoNc9O2oDT2ADAvV /H5w== X-Gm-Message-State: APjAAAXUuabeG0kRSpS+o/DL3VGRVTXeJpzOlgWEdd7TBzbiizr1r7FN lJHVhzPRdOk2uhQWs8QQ/gcxQ8+/8318lGOghZy7ug== X-Received: by 2002:a17:902:b696:: with SMTP id c22mr105753228pls.119.1560810966818; Mon, 17 Jun 2019 15:36:06 -0700 (PDT) MIME-Version: 1.0 References: <20190617222034.10799-1-linux@rasmusvillemoes.dk> <20190617222034.10799-8-linux@rasmusvillemoes.dk> In-Reply-To: <20190617222034.10799-8-linux@rasmusvillemoes.dk> From: Nick Desaulniers Date: Mon, 17 Jun 2019 15:35:55 -0700 Message-ID: Subject: Re: [PATCH v6 7/8] dynamic_debug: add asm-generic implementation for DYNAMIC_DEBUG_RELATIVE_POINTERS To: Rasmus Villemoes Cc: Ingo Molnar , Andrew Morton , Jason Baron , Nathan Chancellor , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 17, 2019 at 3:20 PM Rasmus Villemoes wrote: > > A 64 bit architecture can allow reducing the size of the kernel image by > selecting HAVE_DYNAMIC_DEBUG_RELATIVE_POINTERS, but it must provide > a proper DEFINE_DYNAMIC_DEBUG_METADATA macro for emitting the struct > _ddebug in assembly. However, since that does not involve any > instructions, this generic implementation should be usable by most if > not all. > > It relies on > > (1) standard assembly directives that should work on > all architectures > (2) the "i" constraint for an constant, and > (3) %cN emitting the constant operand N without punctuation > > and of course the layout of _ddebug being what one expects. > > Now, clang before 9.0 doesn't satisfy (3) for non-x86 targets. Thanks so much for resending with this case fixed, and sorry I did not implement (3) sooner! I appreciate your patience. Acked-by: Nick Desaulniers I'm happy to help test this series, do you have a tree I could pull these from quickly? Anything I should test at runtime besides a boot test? -- Thanks, ~Nick Desaulniers