Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2360985ybi; Thu, 20 Jun 2019 13:46:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5CcE14OmMrBbwcifGJlPoHChowxJ92eW0ukLBRWYN0s/tFJuR7957B+o3OwKfWgcXiaRj X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr1601465pjt.107.1561063596611; Thu, 20 Jun 2019 13:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561063596; cv=none; d=google.com; s=arc-20160816; b=yUwVoxefscqb/zWEsPh5UTZYLp7LhXry8d8dyWz+Xl7o7X8Lc8n7hbP854tPQzEABl 3P9jdSh3qSirtkMqbobsWTP16dyuqvEA0dvPdoKZ7drsr0T3lweKIw/Gty5/EXzCvvFi iXu9g+7AAX3Wg/R+NP/m9mPlxnmRuNcczoWg3+30SEk9uBcCudYChclBEwjSeQ6CKNXb lJe5V8ObJuK7CNGK14l3N/1cJIsz+c6afz8AItCx29TTrt2UB+0LsxWFrp7Q246TDf7J KUU4k5nkNhEAvkYcaHEcUTGokM3KajZZRLBVeCl3WAsv32FRCOuYF+lZcO/cU2OFxNxA glbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zlxmS4RlOT5dd4x2YBCTagMAGWiR3GVlEN2t2GzpYWM=; b=c5LZ2z/8Lv0D6GtEY0tpuyonE54IEAa0jj7fFI+C+EaZqFY7KComu3uil3IT3pVOag TFfgbhd2s8OLg3A7rNBPcBHePQDC+qlHkfVX2Tx7NjX3aUORVGXBQG0ZRfff1C/jCwUS AzmkCVbWeHSB3tSKQoGgvRDPdYTHuMTYkiheXUOBtxw5W+Hnjya4LfRqAZuOATaWsRPE q3bOdZl1bXLbr1Mh7usN3QDNFl0YAR5yu4wD4AwrDwZ2R3bsygivx73rWeo85KAiB2sy YNO/7wXi1kjRvsPgWNUqbthQU1cw+DCL1M1yrk+htKwrCwC1LNZnI3ifUMW6uOrEkJ7S bMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=KIuWzBO+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17si528725pfj.69.2019.06.20.13.46.17; Thu, 20 Jun 2019 13:46:36 -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=@rasmusvillemoes.dk header.s=google header.b=KIuWzBO+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726027AbfFTUqN (ORCPT + 99 others); Thu, 20 Jun 2019 16:46:13 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45418 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfFTUqM (ORCPT ); Thu, 20 Jun 2019 16:46:12 -0400 Received: by mail-ed1-f68.google.com with SMTP id a14so6524638edv.12 for ; Thu, 20 Jun 2019 13:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zlxmS4RlOT5dd4x2YBCTagMAGWiR3GVlEN2t2GzpYWM=; b=KIuWzBO+cFBOW/VG7l3ADv+pAc3wHn2VRuBgi7vrjKNGJx451pnMmWftiXJFRNmUU5 YfDghHf/UW+DCeBP9IVDhXrGyEljBcAXzMDfNF6E3NfcFgXACNnRlmILufPStxxHJ2qF 2fONboiWrY5C2bdssBDNqyx2UpYoP24R80CjY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zlxmS4RlOT5dd4x2YBCTagMAGWiR3GVlEN2t2GzpYWM=; b=WkBqpoUE5PtqFnDPLFctH5jIPoKIq0oosq87q/8mVh+L7zS6K5PY1rlawOmH5NkUNi Hl7i3n+8GQ5jYrfpOZ0lmTuet3/IvN2SY1tE8VR9Z4IsGGsp4XJKTwLF3V+Ku0y1OIJG fe4sF4YpJsOd0mO5eL4LJbbUaqWpW0x6HJ7e6YTLtPT4QDW2oKk3/YTCGJ45KPtY4gFo zoQfnB0hfrCL6f01bffZsGuRk60MYI8O2GPbkU20H0o6ML4YeZNW6IZTCGwhGbYY5C8K S8iTNE8eJ3jeeDakP6l+xNGyJEYKNLfq0eRCzsrJPgaOjYX60Lh3+0fdKRNcIUiM1d0+ TSHQ== X-Gm-Message-State: APjAAAXHgW7HggS/8uhbmNe7+8sZbRJc9SyFnoqYvnjDSbSDhMgP4EGN Y8hk1FP3FlWqcTzzheZx0nhPhpXCRmznF7fB X-Received: by 2002:a17:906:85d4:: with SMTP id i20mr3125274ejy.256.1561063570440; Thu, 20 Jun 2019 13:46:10 -0700 (PDT) Received: from [192.168.1.149] (ip-5-186-113-204.cgn.fibianet.dk. [5.186.113.204]) by smtp.gmail.com with ESMTPSA id c48sm180605edb.10.2019.06.20.13.46.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 13:46:09 -0700 (PDT) Subject: Re: [PATCH v6 7/8] dynamic_debug: add asm-generic implementation for DYNAMIC_DEBUG_RELATIVE_POINTERS To: Nick Desaulniers Cc: Ingo Molnar , Andrew Morton , Jason Baron , Nathan Chancellor , LKML References: <20190617222034.10799-1-linux@rasmusvillemoes.dk> <20190617222034.10799-8-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <12bd1adc-2258-ad5d-f6c9-079fdf0821b8@rasmusvillemoes.dk> Date: Thu, 20 Jun 2019 22:46:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/06/2019 00.35, Nick Desaulniers wrote: > On Mon, Jun 17, 2019 at 3:20 PM Rasmus Villemoes > wrote: >> >> 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? I've pushed them to https://github.com/Villemoes/linux/tree/dyndebug_v6 . They rebase pretty cleanly to just about anything you might prefer testing on. Enabling it for arm64 or ppc64 is a trivial two-liner similar to the x86 patch (and similar to the previous patches for those arches). Thanks for volunteering to test this :) > Anything I should test at runtime besides a boot > test? Well, apart from booting, I've mostly just tested that the debugfs control file is identical before and after enabling relative pointers, and that enabling/disabling various pr_debug()s by writing to the control file takes effect. I should only be changing the format for storing the metadata in the kernel image, so I think that should be enough. While this is still not merged, some new user of one of the string members could creep in, but that should be caught at build time. Rasmus