Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1008847lqs; Fri, 14 Jun 2024 11:51:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQcA1yHtq6PjHN7N4uSe4rQ0lPQKdiDz79WQYCQNXLCLQ1+nX+dyeEVp54ClbvAaVbcVjYx9ySHFqiRO1q2WzwyH0hkra+i8fRgYmuWQ== X-Google-Smtp-Source: AGHT+IF1ZkxHqQ+m2F5EtPr5bcjmbk0wLVCOXqHukgqqFTI0QQ6p2+H43SaKSpZEgrlJhqjTvgSf X-Received: by 2002:a05:6a21:1a7:b0:1b2:47f9:3814 with SMTP id adf61e73a8af0-1bae7e1caffmr4332815637.2.1718391077949; Fri, 14 Jun 2024 11:51:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718391077; cv=pass; d=google.com; s=arc-20160816; b=BNaPBIzT0qu5obpBvYIt4esY9bR3F/3dPvCn1ZhvLDQaJR3NIblWAiFexLal3X3+3c kbvBqs5ztNSK683x75Xije5/rbsZsyAs07NZcJ5z2tF7wOMSn6xwBIgZCUFOIN0dHHgG LwVDMf8ofXZD6gZiTQCKL7qWwM1u9lV8raMqqaMuxRcqi+xPIIXY5TXc17qkmsFu1QSn J7Sft819dgY6A9S6SHit1hUOW2Sko3Z5JfYW3fEv5pXXmcnZIu9JYlLEpd8JlgM7TuPo WlzwuzwRDPzcceEPsU3JXDxKuZAAwjlYKJQS9zVFF7zo4JLG95u9ej5hQKpcSXsD//TZ KR3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=nWbNzAjG8VRyH+4TFt+FFjB4aPTz3831fr+z8QvBcv8=; fh=KMKmiIjV5Re/cV01AdfuGzwN+aSpbqWcdRsMSx+0aPE=; b=U5q8gCTaBe9EvzdBWpKD71eZylKABR/rqoPf4Eh+zaBgcctuDSBnshtGRPEr8FgpzS GqbBwjYOHTM7nnA9uH/oF1Iw4ElJ3y7+7+3BZ5L/a4Q1EUvCUZ1vsngZAJLWfZH3MJxc BxcMmDu1IsPZnECqy3tAxMH7aI5vXCkt/XnRTWFmrO4yZJacFIuxPVS6bGUnqk5ie69z 5GcEzY6D20ERwaOnB5Sux1MvLF1ASUwkcpSFZiaFXFodtLrFgfP8WD3tBUQN+/ID4NQL Lz30TzYZlmqCuxDNZXdPzRgo+IQUjW+Jr6qVTzIC8XHKRY6F+x4aGtq3Sh6dNqeO0y48 qrJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215404-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee5497303si4060834a12.694.2024.06.14.11.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 11:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215404-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D39AEB259B5 for ; Fri, 14 Jun 2024 18:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2741619E7D3; Fri, 14 Jun 2024 18:26:25 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97C1B179BC; Fri, 14 Jun 2024 18:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718389584; cv=none; b=CvD/6LJVtSTOGesu4gIwoBA/We52aGOY4eBfWsMITS/rNM1jvsVmax/bbpoKKLuRvtSr4bjfp2vBQWjLsDmQc3iWxIRcXvlKnwmtZuhghHuvQ6z/DqKKn3Z76zwh9D0LxDVCUUKorlyMzMmFHahWqrgx98yuP86B7AzolJpWrEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718389584; c=relaxed/simple; bh=jHAGhtBgYIhIH5h0XhykMYsCyNogbFyWVdwTe6RHoOc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eJ0Pdg6qW82ISx+U6Co5oO0Y0ipU6xlsZYC6Gomy9LxAwgBXVdcpGeWPXYjJO47HF1x622A7lI/QN7r499RszFmrTrfFh86Ti/4S0Abpj20g3q1QIQj200i05zL2oHjy9HOPjS8SLCpiu1WAw/7xZaeDYtmezUZFrnRQcalu1JU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD416C2BD10; Fri, 14 Jun 2024 18:26:22 +0000 (UTC) Date: Fri, 14 Jun 2024 14:26:21 -0400 From: Steven Rostedt To: Kris Van Hees Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masahiro Yamada , Luis Chamberlain , Masami Hiramatsu , Nick Desaulniers , Jiri Olsa , Elena Zannoni Subject: Re: [PATCH v4 1/3] kbuild: add mod(name,file)_flags to assembler flags for module objects Message-ID: <20240614142621.5ac455c8@rorschach.local.home> In-Reply-To: References: <20240614171428.968174-1-kris.van.hees@oracle.com> <20240614171428.968174-2-kris.van.hees@oracle.com> <20240614134651.4ed2091d@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 14 Jun 2024 14:10:58 -0400 Kris Van Hees wrote: > On Fri, Jun 14, 2024 at 01:46:51PM -0400, Steven Rostedt wrote: > > On Fri, 14 Jun 2024 13:14:26 -0400 > > Kris Van Hees wrote: > > > > > Module objects compiled from C source can be identified by the presence > > > of -DKBUILD_MODFILE and -DKBUILD_MODNAME on their compile command lines. > > > However, module objects from assembler source do not have this defines. > > > > > > Add $(modfile_flags) to modkern_aflags (similar to modkern_cflahs), and > > > add $(modname_flags) to a_flags (similar to c_flags). > > > > You explain what this does but not why it does it. > > The first paragraph is meant to estabish the "why" (being able to identify > what objects are module objects, even if they are compiled from assembler > source). Perhaps there's a lack of context. Sure, the cover letter can help in this regard, but I always look at each commit as a stand alone. > > As I mention, for objects compiled from C source code, those defines being > present identifies those objects as belonging to a module. For objects > compiled from assembler source code, those defines are not present. Passing > them on the compile command line for assembler source code files for objects > that are part of one or more modules allows us to identify all objects that > are part of modules with a single consistent mechanism. Sure, but why do we care? Again, if this was the only patch you sent, it should explain why it is being done. Perhaps something like: "In order to be able to identify what code is from a module, even if it is built in, ..." But what you are saying is just "C code has these flags, make assembly have them too". Which is meaningless. The other patches could use some more explanation too. -- Steve