Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp68259ybx; Tue, 29 Oct 2019 14:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoRoWYBAs9iHm356LKdEnNhpQk0t3QNvvQwK+dbtsBuGS5yqrM7XRuo1Enw4nReldSFR+0 X-Received: by 2002:a17:906:1505:: with SMTP id b5mr5629861ejd.195.1572384505555; Tue, 29 Oct 2019 14:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572384505; cv=none; d=google.com; s=arc-20160816; b=CDsLmOQVCU+1vZ+S7kWHCpP+z1iPqoD8FB40XpQFW2I3GcIbDt/JxWoBQRQuyHkc11 sN7NP7bOe3MvAljCaiH42jVnGAXWrMC5XcRHo+PUY6zCcSd+A11UUIcY9qYPDpPnR1Ez kI9e1QtOAtuNzGWeMHZjpqIYb02yWa3Lw74zokCTa5E/TolE+o4hvxvEQ0/hWztWwxbJ gqkkXSp12Cuy27bfPnaecfFgQlZSI+Sk/eBo51jZ/Tl0RW8ds1SleCZQzv7AQn06HoYz VB3CfOuRerXH6ZSVrLKNXVMguPANYfBlxidVn+jswuw5mhzYkyTTjxdE0/Pq6KUG7DZf SbAQ== 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=3ti1k4N8j2ZSElZ5dQiM1ptrNLuExzcmkQM4fcrPhug=; b=F2/sMsns5anbOGfQVJQVIr0GE4zdMvfehfXovT/eYB5dUyOOaelzWhJ17ru/BjxUKw Tl8pJIuHNrF/zP55MKszbaudJMB9DSGkDWMZj1p2Jg+2/6EeBd2Cq9fDQawdM3y39BKh J1bXZ3VIgmd5SODEiNISJaJsClPPtykf0k5M3wxbegYitVIQsVyX6X5sgRfxYN1C1zAW nz0tybKK8JDjIDs/hsWl7GkfLtHcE1tSPe3F1vdAnTtBwc0SJWpndgdpq38LDGA2b7tm Wv+98+ineEspXRdsoLGYGoYx9qYFGeunDLsNzE/fIoIBgmtf1fpgndi6lF/fMMKBF+x+ Pi+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OiijxmXm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z58si8768793edd.283.2019.10.29.14.28.00; Tue, 29 Oct 2019 14:28:25 -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=@gmail.com header.s=20161025 header.b=OiijxmXm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728638AbfJ2V0C (ORCPT + 99 others); Tue, 29 Oct 2019 17:26:02 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43482 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbfJ2V0C (ORCPT ); Tue, 29 Oct 2019 17:26:02 -0400 Received: by mail-lj1-f196.google.com with SMTP id s4so226882ljj.10; Tue, 29 Oct 2019 14:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3ti1k4N8j2ZSElZ5dQiM1ptrNLuExzcmkQM4fcrPhug=; b=OiijxmXmDw8P398uaEva7r04QCjWRg147Ojy43qdzFiORUHXmzlcQYpHw4me8PMAYE uMrzRHBdPRMPf0Gf9ZwIogJDJu8UadWcLFn5EuR+QRFuNCDPj0n+8d2KgHLX+x8aF75Z FFsf4WhYIeYMPXkTcofKrRzy5CgYGAzbwJo+Gu1HvhNJWhjvzEm1nlrBjteZATk6ymgd rrORkjsyWTMNHHgZQRNuxTVbZsN2ORHRT0eb3JgOxjEQ8bDsz60/2BBUvS7ASnqqCYk7 WmvCQkyjpyAeLQZcVJHieNl8JV+AqBeogHSsYodi1LauRPg8jPYFnWw7neEx8iAAheHn 1i0A== 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=3ti1k4N8j2ZSElZ5dQiM1ptrNLuExzcmkQM4fcrPhug=; b=lMAgAQ9QnqeqaaS0QRKZe7hQ3jLX3skNyKCdqWPuswkqjaNiUv2WIKYova8bRm0a6R A93GEX2HAj3TqHZFJmjbdWowBwR+T1TJCWh+pa/Gyu8u3h+5zLx+Gkbr1zHEa/jED4fo nFAW885UIDH9vo64SqejkeMEOSUTVDm02r0v3HH9dUl7I3Ny19Bfzy1+hqvjFbFUovjx VRJcwxGUHWfGvkMxXi2149GfJD2CiLtaju//gT4kYcTulTjvcpPCONkow2bKdKjK9WxC vWMAxxtEacUrAWZrL85q+4BAWb1fdWu9t4sud4CAq/0rtm7+a7tP+92z8VWZAR4tdX1N F41Q== X-Gm-Message-State: APjAAAXXD7qoSIZcWuIeMGhMGp2VM4NZLRmwnsYcxT73MHX7pnogTr4S HoDyXfO1eG9c4CLvOMuNWP0X6i3YJrB8Ov0v7dY= X-Received: by 2002:a2e:8990:: with SMTP id c16mr2024514lji.226.1572384360091; Tue, 29 Oct 2019 14:26:00 -0700 (PDT) MIME-Version: 1.0 References: <20191029200026.9790-1-jim.cromie@gmail.com> In-Reply-To: From: jim.cromie@gmail.com Date: Tue, 29 Oct 2019 15:25:33 -0600 Message-ID: Subject: Re: [PATCH 04/16] dyndbg: rename __verbose section to __dyndbg To: Rasmus Villemoes Cc: Jason Baron , LKML , Greg KH , Arnd Bergmann , Jessica Yu , linux-arch@vger.kernel.org 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 Tue, Oct 29, 2019 at 2:37 PM Rasmus Villemoes wrote: > > On 29/10/2019 21.00, Jim Cromie wrote: > > dyndbg populates its callsite info into __verbose section, change that > > to a more specific and descriptive name, __dyndbg. > > Yeah, that has always bugged me. Ack to that part. > > > Also, per checkpatch: > > move extern struct _ddebug __(start|stop)__dyndbg[] to header file > > Hm, why? checkpatch should often be ignored. Since we only refer to > those symbols in the .c file, there's no reason to pollute every other > translation unit with those declarations. Having declarations in a > header makes sense when the actual entity gets defined in some .c file > (which hopefully also includes the header). But these are defined by the > linker, so there's no type safety to be had. > checkpatch wasnt in a mood to explain itself, but the other simplification seemed good, credit by association I guess the action-at-a-distance feel to the linker magic and the extern qualifier, swung me toward heeding the advice. OTOH, as you note, only dyndbg should be mucking with the symbols. > > simplify __attribute(..) to __section(__dyndbg) declaration. > > Makes sense, since you're munching the thing anyway. > > Rasmus