Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1001233imw; Wed, 13 Jul 2022 11:56:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sGkOe24/vLKZQwcOhus8yy+CBh/+dpZQTncqfjNwfFXd+rK/MqaqkQb9G5Yukv8fd09ppY X-Received: by 2002:a17:90b:17c1:b0:1f0:1f7b:935f with SMTP id me1-20020a17090b17c100b001f01f7b935fmr11501228pjb.63.1657738569032; Wed, 13 Jul 2022 11:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657738569; cv=none; d=google.com; s=arc-20160816; b=f5h4MU6d6jD/adZ5H4JvuKm+R8fAxCM5Q5Vfo26lnyp62GpfTqywoacYpUHl+9qNaB W+TJopdtXsSOD2OmcRWtA3+1/gpXya5Cp1xPQhPA96zVuwdyIGokPXs/acAayEup3NyE jbHdCXo4BcLevQwGDXpnzFk/ydt+/3MSULEbDRlPBUUBZXIegm8DHAAWhVmRLHMn9Xha aWdE+K1lqs9MN86/FJSIWoUH2QxoMr3Rx6xOkVyWmEtzul1eYDgdGJbl83cpo+ISh/mX HNPKYVuYohjkA7eib+4canJTu7RzCHVATZE5mAWzKFy7HBByEhjS43eg/AUdUoEw8Lbl y1vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VtnDAU+gFMR0BRhEciwWcdevZzWR/VNI1zx8oUdn5xE=; b=CPkhVbsm0k6Fjf/Sety/oeBOfs8qJ17wjUE7IFINPTqZRrYLdvaA+QL4NY1BClYDDP J6RGfmV4mjUEkJI/Udpv/U0VtEXrwchPnl/VAnfgNWmNPHymWS7cyUQe0qCPnCSLKUla BVJwVbd7tM0tT4+IUXeaHccG0tzDQDuDMUhGCheRGaBk1lce+CnlF6av+ucfAvHJEQFM I8zrpepRVb8YljsVGQ8Gci3CN+/3H8sJqqfHNEkjpyATkkrwKDB61arW6dEOfahDVF+k IvjUtit1jpN6NO725gqTP9EqE9O/DRkT30nJkmk8Zo5eCl5YlDjYau1yydIEkCTQzZu6 bekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NL0r5L02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p32-20020a056a000a2000b0052546400216si18523799pfh.306.2022.07.13.11.55.56; Wed, 13 Jul 2022 11:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NL0r5L02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236731AbiGMSkB (ORCPT + 99 others); Wed, 13 Jul 2022 14:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbiGMSkA (ORCPT ); Wed, 13 Jul 2022 14:40:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2F4248C2; Wed, 13 Jul 2022 11:39:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B26B61D17; Wed, 13 Jul 2022 18:39:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFE50C34114; Wed, 13 Jul 2022 18:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657737599; bh=anRZ2fJ+aqOYBp3yiMxv5Ju/dg+jiE4LeEVNzaKoXlM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NL0r5L02eFjiasaVyTonmWb80VGpWinaWaFg7a1YNGrQ3ejrBwycX7l9ke8ffFcX5 kmjK2gYEySQL7/7Oqz3Tdo+CLMI+8vGn142t3R5ynG7W73VVvhMPaanTVT5XViAvwh QA6C4NiTyphK8EorjZqvZTcNDIgfUrR7nab65Efg8mdm7lnXxEMqfwF7xvUGHDQqQK 5eyEaqn01hD34PnuDbyfvKI3fR7joNnpCs6rqAXop/S2T49gxjs62qj9+lQVLDn4Rd li1LG1LVZROoWe2VYAuAmy4V77DbxmzlQa/k9gOo/0S2T8sSjAppozB9dZntDkwEvh ZWOTrL2owmuCg== Message-ID: <2dcb1f19-febf-c17e-a933-5779a69d283f@kernel.org> Date: Wed, 13 Jul 2022 20:39:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH V4 04/20] rv/include: Add deterministic automata monitor definition via C macros Content-Language: en-US To: Tao Zhou Cc: Steven Rostedt , Wim Van Sebroeck , Guenter Roeck , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Will Deacon , Catalin Marinas , Marco Elver , Dmitry Vyukov , "Paul E. McKenney" , Shuah Khan , Gabriele Paoloni , Juri Lelli , Clark Williams , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org References: From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/22 20:56, Tao Zhou wrote: >> +/* >> + * Entry point for the global monitor. >> + */ >> +#define DECLARE_DA_MON_GLOBAL(name, type) \ >> + \ >> +DECLARE_AUTOMATA_HELPERS(name, type); \ >> + \ >> +DECLARE_DA_MON_GENERIC_HELPERS(name, type); \ >> + \ >> +DECLARE_DA_MON_MODEL_HANDLER_IMPLICIT(name, type); \ >> + \ >> +DECLARE_DA_MON_INIT_PER_CPU(name, type); \ > Why the global monitor declaration use the per-cpu monitor macro. > Global monitor has its own DECLARE_DA_MON_INIT_GLOBAL(name, type); > Or am I miss something? > Pure miss attention from my side. Fixed -- Daniel