Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp304169imn; Wed, 27 Jul 2022 06:48:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3pataSeHmgTp+xdUr8MEl90vSRPnxHgKPCi1rOUsEXp5JEc3yi0EIV/Tesnik7MZXWPXO X-Received: by 2002:a17:903:2308:b0:16c:58a3:638e with SMTP id d8-20020a170903230800b0016c58a3638emr21827485plh.100.1658929695162; Wed, 27 Jul 2022 06:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658929695; cv=none; d=google.com; s=arc-20160816; b=0J8EAxGZw1nTJHW4gZ6t4yvghpwnpPopESKiWYg3AZgNkkcSe3OdZml+doxS8CDSk1 M2ErW6UsU5VU0CPhGlYTSZeTgcsXeQQfroGeioDpAt9/bpjI2I92hSb1ROPt5ZwFs4wL tSyuy2OEFe3OqS1uQEKAm9mbeDPQh4NQC6OjUevrfFhg4cU4pVfyZkCSrq5qadHOEqCy bv37bwsfYH7v8AZO8h+AdVWWfD+jI9PkoOWjJp87SYPTo5pl7dK8uzQ+DaQgeooG5XXh 6cn4tUqSaxLYtGJaCAexTDHuuxVcrdJOU0bZZh3A5v8EybO6QP8baZlEFc1iKIDJ6LBV uiDA== 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=dsDkeytHvGOiZlvGCJ6zqETYq66BHx2UVyu1QnN3nEY=; b=DLHVMAtWVcfQp0oOAysU9AdLhrLT+4bSB8sziCUABRpredU7NmNlCzECTm5Ld4LQGA JikHRUXQJ2+/xRTI2NEycYxpQlHnbO9A4sYYvy/09hF4oXQOz5CkU5Y7cXOCO7PpbjTX zWw8go/ZLKKIQzPRJsYhcVqC8YwbLEdOgHwjjY5/U7R1sS7UCycWWDQyBtprUgs+gV5J Ep2Klg/4hyqU81iblGfLcGQZYZbL+27lmM29LTrNqUBYTI5u3NvlckDFf1o/aV0GeBDD uvNBIXKsIKkUkOFi30Uk90pL1AOPWO2Gd04qJ7kgJBdUk1EY0LtEaX4RG0125L/LzhJK C+Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cVRK/DFs"; 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 h1-20020a170902748100b0016be593d1f7si201850pll.313.2022.07.27.06.48.00; Wed, 27 Jul 2022 06:48:15 -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="cVRK/DFs"; 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 S232525AbiG0NmZ (ORCPT + 99 others); Wed, 27 Jul 2022 09:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbiG0NmX (ORCPT ); Wed, 27 Jul 2022 09:42:23 -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 C68642CE27; Wed, 27 Jul 2022 06:42:22 -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 6526E6176A; Wed, 27 Jul 2022 13:42:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5D8CC433D6; Wed, 27 Jul 2022 13:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658929341; bh=BR6lIHvQshH5awQxKKtysghwmE9IJ6ziXFKne10F1nc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cVRK/DFsk6dcXr5N/ybmT3hdsYYM4ETKpBjLl1B/sAYwhIUEGRKuY4CRC3floG565 nyQA05qKYk2N7wRuAl+2zyqepUQCmU7lWvDLNYhZ0lOoh2xuqkvlezLvF9KssEe2M0 n4ypLKGSJ7cyUOOq6c6QsVNYclwVoHiQx+oLQFNNh+KPzuM+n9PNT1l3YPYXEcl3jP 3SIPm5oJwEx2juJthSbwDWQZMSifprUduxcdmPC1kbYNYVfmlFcMVdLVXtk+OT0X0p vr6M2UTgWqivwfd4nB3oTw3mK28aPND2qSx/E8YATZEDz2O1CZR2yemMnB1LJ6rgRy Y6z79XUyhng5A== Message-ID: <1dad74ee-2d82-c8b1-7367-cbc6ea124785@kernel.org> Date: Wed, 27 Jul 2022 15:42:12 +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 V7 01/16] rv: Add Runtime Verification (RV) interface Content-Language: en-US To: Steven Rostedt Cc: 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 , Tao Zhou , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org References: <2aa3b18239f170ba23263f18d166d08634ed65dd.1658778484.git.bristot@kernel.org> <20220726122237.44386359@gandalf.local.home> <1e03adf9-2aea-63ab-93ae-a73836a7081a@kernel.org> <20220726165903.262a0a65@gandalf.local.home> From: Daniel Bristot de Oliveira In-Reply-To: <20220726165903.262a0a65@gandalf.local.home> 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 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/26/22 22:59, Steven Rostedt wrote: >>>> +static void turn_monitoring_on(void) >>>> +{ >>>> + reset_all_monitors(); >>> Why does this reset all monitors but turn_monitoring_off() does not? >> When we turn monitoring off, the monitors will stop monitoring while yet >> in sync with the events generated by the system, i.e., all the events after >> the start were processed. >> >> But if we disabled the monitor, and some events get ignored, the monitors >> will be out of sync with the system. Thus, resetting the monitor to >> for a synchronization between the monitors and the system is needed, before >> enabling monitoring back. >> >>> You should keep that out. >> did not get :-( > I don't like the way the _on() and _off() are different. > > Have the _on() just turn in on *without* the reset. > > If you need the reset, then make a separate function called: > > static void turn_monitoring_on_with_reset(void) > { > reset_all_monitors(); > turn_monitoring_on(); > } > as usual... https://www.youtube.com/watch?v=qYo0lVVH2wU Fixed in v8, along with all other changes. Thanks -- Daniel