Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2906345ybd; Mon, 24 Jun 2019 15:08:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEkAX2HzKWg7XZqeSL3UQulu7KX22dRUIxCFGgD5HL65WspimcyAYBj/C4YR34gvHBAOkJ X-Received: by 2002:a63:1a5c:: with SMTP id a28mr11769675pgm.418.1561414082912; Mon, 24 Jun 2019 15:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561414082; cv=none; d=google.com; s=arc-20160816; b=r77aPpjTo0qsWodXgq/yaLcPKsgLbJmqOSddWmeKvaewihY213ZNx/d/ooTWlpCtig hnEFj6RDcgcaSKn9qTDRYRbQVLXMCiVw6AhZz9EiBwUSMi/TgZ1MyIkPuprpgphBFjNw 7OiGbAi8j2zXokXNFgR6y/DEi57Dz22DG8ocBGDqxhU/PSYYfj6LJzgBGX/zvmFLqiFr ZQazh9PrPOtXcSPniXIIjLfK3w5hwu9isbsmq1Z3vI5ppnvJp+hMkyAWCkDHwmgbAIn0 6KEvp+Jbzcj+MnGZ/TVw6K17dFoI2hUChs/BLtwjF0CuDQmaDzTIENf3hZ4K9tliiJb4 WXzw== 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=vO+9Uc5/8MpdDSQOEwUbxCiZ1Bx7hoIB/5okbCwKM1o=; b=if4FG9L33o1dDe6s20ujcOk5sBUytZoV1U9c1DA5cBkGxUrDimr2lJ+x+SkoUIVXt2 eixpxOq5j+9GVpW6x6CbQdKrF3Nt7LVTVMS/5tV1XCSvmWjKjzjbwyqVX9oHhenRzlbk HbEve/+q0/P7ownIGfXfiIEUJKQ6upUvvuVwHQmdYpTsN2qZP3RAx9t4eWw0QHqiAy3u IqaIqBlYC4I631BabEkyl5eiVJ9gQe8hZzK0DXswb8Hl5h7BShSLMXz2YfLlvHrC7lNL Zapqofb0siSIIY/EPdIoxWcWLJ+FU3aXORYnyv7eJ8HAnRPii+T2kfxHBIx7JFrHHnj+ 4nZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CTujHcuV; 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 32si8656208pla.181.2019.06.24.15.07.47; Mon, 24 Jun 2019 15:08:02 -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=CTujHcuV; 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 S1732531AbfFXVyH (ORCPT + 99 others); Mon, 24 Jun 2019 17:54:07 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46881 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfFXVyH (ORCPT ); Mon, 24 Jun 2019 17:54:07 -0400 Received: by mail-pl1-f196.google.com with SMTP id e5so7625175pls.13 for ; Mon, 24 Jun 2019 14:54: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=vO+9Uc5/8MpdDSQOEwUbxCiZ1Bx7hoIB/5okbCwKM1o=; b=CTujHcuVYvjgTnnebk59WpuccyprXg13CV/pDBG4EoN7hwAitLfrrh2gu/pQP+alA7 3oDngUEzwlVS7V/si4lRF+khXT6PpOrSQogFuOFHbBE+A3Obp3HX5rsjLRIzL1wumSv+ AbTj6C5s+q/m/4BO8/YccHSjoKC0WZyciFF8CuZuO7RyNkG9ZY9iKXssP6G/Ty7WqcuE Hq6UynV8pADROYHKGwvrTi3FMx0c04k9ufSJLorDTuqaRxX9umZL9bxUnMCSeYP4n6ri 2xZFFM/rk8ZAMAUK33izskwAMFyuo+6/7kylbSrRrT3GsAoktTNusiDO9pXcWgfqDSiy vU0A== 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=vO+9Uc5/8MpdDSQOEwUbxCiZ1Bx7hoIB/5okbCwKM1o=; b=aD3ZXuaVzFfI/zP7+CZPSUH2GimzynfON9aSkXbcLdJ4d8XUyH62TVaOIQHj9pK+5z ezvqqSGw6LFbljQMJCwBpFz2/CY89BFO8I7W9sYrl9FWLoWM9+5Rq6gWdZHFbnk2Bf0t pQ3jj6uGYoIFVAUP0lhJGV10jxiGwTZsX/yRdVruT6hagLRPNzk4nzgotSeXgpCTqUXq Oy0Oc5K2+C6z0Vg00iLtiIR5WvKRzeraruPLMP6Oo4By8nIaml+8GsUu1VJcKR5yl+gs EXy+ztQmNhamiLfQ2b2pIaKilh59TUAl8O1rQFnK/LKPKizHedJ8eoTLIVrY4U1YoDGT hF5A== X-Gm-Message-State: APjAAAWUMMa6qq+2AYoR0iigvAlqJtQ45kAVNvrRt4YgO3jjo+L46pej HYy+iEXXf+aEofL8UhQV2YgNUFSvvJZ2ippLyR2+Rw== X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr134338486plq.223.1561413246282; Mon, 24 Jun 2019 14:54:06 -0700 (PDT) MIME-Version: 1.0 References: <20190617222034.10799-1-linux@rasmusvillemoes.dk> <20190617222034.10799-8-linux@rasmusvillemoes.dk> <12bd1adc-2258-ad5d-f6c9-079fdf0821b8@rasmusvillemoes.dk> In-Reply-To: <12bd1adc-2258-ad5d-f6c9-079fdf0821b8@rasmusvillemoes.dk> From: Nick Desaulniers Date: Mon, 24 Jun 2019 14:53: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 Thu, Jun 20, 2019 at 1:46 PM Rasmus Villemoes wrote: > > 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 :) Compile tested x86_64 allyesconfig boot tested x86_64 defconfig+CONFIG_DYNAMIC_DEBUG (just curious why the Kconfig changes for arm64 or ppc64 aren't included in this set?) > > > 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, mainline x86_64 defconfig+CONFIG_DYNAMIC_DEBUG $ cat /dfs/dynamic_debug/control | wc -l 2488 mainline x86_64 defconfig+CONFIG_DYNAMIC_DEBUG+this patch series $ cat /dfs/dynamic_debug/control | wc -l 2486 (seems like maybe 2 are missing? Let me try to collect a diff. Maybe 2 were removed in this series?) > and that enabling/disabling various pr_debug()s by writing to the > control file takes effect. I should only be changing the format for Can you suggest one that's easy to test? > 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. -- Thanks, ~Nick Desaulniers