Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D2E7C54E58 for ; Wed, 20 Mar 2024 13:10:07 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.695908.1086191 (Exim 4.92) (envelope-from ) id 1rmvhe-0007Mu-Gn; Wed, 20 Mar 2024 13:09:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 695908.1086191; Wed, 20 Mar 2024 13:09:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rmvhe-0007Mn-DP; Wed, 20 Mar 2024 13:09:58 +0000 Received: by outflank-mailman (input) for mailman id 695908; Wed, 20 Mar 2024 13:09:57 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rmvhd-0007Mf-EI for xen-devel@lists.xenproject.org; Wed, 20 Mar 2024 13:09:57 +0000 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [2a00:1450:4864:20::12f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 25455601-e6bb-11ee-a1ee-f123f15fe8a2; Wed, 20 Mar 2024 14:09:55 +0100 (CET) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-513ccc70a6dso11508189e87.1 for ; Wed, 20 Mar 2024 06:09:55 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id qt11-20020a170906eceb00b00a46d2e9fd73sm2567415ejb.222.2024.03.20.06.09.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 06:09:54 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 25455601-e6bb-11ee-a1ee-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1710940195; x=1711544995; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GDAtE6pMunSN2aoshMW+PYqPKc8voG7r1xGtdTypMfo=; b=Acr5bSuAy7+YJOkL63dnjay7i5neGjmwVUfeqE/Vi+uYKvRMo6dCvgg6BKAzq7fB3Q 8JJMfU70Tf1Rfdg/So3lGa1QDYCtV6lUtQ2+H5JgSjj1WJKpCMe4DZ855zxT8VA6Rt68 /AZMh9/jTyGSIRzkG7lqQvqLHxn8sGHXn1tEwCbd25lrP66FO1bN/pd/wYdr2+QVBRxb jcCfuT4siDoyrLtW9rUzwR69ILeWwRCjbO9Pebvlkd7wrCoZ4hwqvdQgeYv/RVHjYFSy wnuAaT9Cw9YXXlOF7iJF+sktjYOL6OTdI2Uqa5mmuclaz/Apn+6gmBzzIDxbpwJ5ljsT QCZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710940195; x=1711544995; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GDAtE6pMunSN2aoshMW+PYqPKc8voG7r1xGtdTypMfo=; b=A9p/3Xpe54ydqAj7sDjw+944MsX3+XHvy2AOumm7xdrKFnxuJhysCjidpBGbsf0NYW ne0bp+qhrjW6IgtLit9ssbzqRlIwpc6onUXWcAze7xt+n8g8Zp4BdEMzFWdLcRHHmlkA ntISJqwNLm3ZQzxs2Ac7ZRahQLvyqmn49aWRG7B+zpmZoZ98Sgw3R7Xg/sj9rXSKTqUV 8Lyayp5k8pK2aEK7n/IWxA9+2Em3EORQy3MC9r296ZW90jvp79NFJAr2iHPgvtB/Q/rC G8l9U84DrkSVcuHIG+PFCxmp+k/bq4BMOYWAEiIMaf1GaI/gEQ15beiJoQjnzp//Icf2 hcKA== X-Gm-Message-State: AOJu0YzLreiRWS0If8kQK5AdzLxA+99GE6ZxlCw19Msdo9EnB7iOpRr9 sEAsbQIsA+64yL1vt22ASxGVDr/lGQYibmjb3fNE2b79hsJDu3DqhXrZpBfMYQ== X-Google-Smtp-Source: AGHT+IGq/EARVD0JUtEy8N5UoOUNBjp13mNAGUQVPH9Av22FSZx4S+RxZ9tm3eKI5abvqgfmX6EAIw== X-Received: by 2002:a19:2d10:0:b0:513:af27:df03 with SMTP id k16-20020a192d10000000b00513af27df03mr10540479lfj.5.1710940194797; Wed, 20 Mar 2024 06:09:54 -0700 (PDT) Message-ID: Date: Wed, 20 Mar 2024 14:09:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/7] xen/trace: Introduce new API Content-Language: en-US To: George Dunlap , Andrew Cooper Cc: Xen-devel , George Dunlap , Stefano Stabellini , Julien Grall , Nicola Vetrini , "consulting @ bugseng . com" References: <20240318163552.3808695-1-andrew.cooper3@citrix.com> <20240318163552.3808695-2-andrew.cooper3@citrix.com> From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgb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tSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 20.03.2024 12:58, George Dunlap wrote: > On Mon, Mar 18, 2024 at 4:36 PM Andrew Cooper wrote: >> >> trace() and trace_time(), in function form for struct arguments, and macro >> form for simple uint32_t list arguments. >> >> This will be used to clean up the mess of macros which exists throughout the >> codebase, as well as eventually dropping __trace_var(). >> >> There is intentionally no macro to split a 64-bit parameter in the new API, >> for MISRA reasons. >> >> Signed-off-by: Andrew Cooper > > Thanks for doing this, it all looks good to me. > > I'll note that last time this was posted, there were some questions. > One was regarding underscores in the macro parameters. I don't care > about this enough to stop it going in. We ought to finally settle on our take on this, preferably recording the outcome in ./CODING_STYLE. > The other question was about the use of ##__VA_ARGS__. I don't > actually understand what that comment was trying to say, as a quick > Google search it appears that 1) this will do what I think it should > do, and 2) it works both in gcc and clang. > > We should give Jan a chance to explain his second point more clearly > before checking it in; Well. Gcc 13.2 documentation explicitly mentions this form; interestingly with a quick search I couldn't find the original extension's documentation anymore. It is possible that I didn't spot this 2.5 years ago. It is also possible the their doc has changed in the meantime. In any event, my view back at the time was that I'd preferably see us use the (long-standing) gcc extension (args...) or use __VA_ARGS__ in a standard compliant way. Yet with the original form no longer properly documented, maybe they have a plan to remove that at some point. So while my preference stays for the time being, I also don't mind if this code is left as is. Jan > but: > > Reviewed-by: George Dunlap