Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1543040imn; Sun, 31 Jul 2022 11:11:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tk3rNxRV7S2DWkNUUyltHzQgedyNM8S5IKMUTO/92++5YDIy6y8WQoJkrFhKiTNch7DZPu X-Received: by 2002:a63:db0c:0:b0:41a:6c14:a81f with SMTP id e12-20020a63db0c000000b0041a6c14a81fmr10706111pgg.33.1659291070670; Sun, 31 Jul 2022 11:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659291070; cv=none; d=google.com; s=arc-20160816; b=T6Af/RM0YZd/yKcApQlLG3hbl5DYwwVdZXHMmqMz3UG3+6I2laEWgqbfu7eshmMpIR HrBXDYxUkb8K1OKcTjEj6Nzvq4flZboaPe3hp0k8e+PBzXvm3cy+RVV5FYF33Kk3zDf1 OpmbYDGLdMQCb3TpW+EFQsaxnP4DxZBtxXXkB4T1B4W/heZ+PuggBJ7ZovfPe/faJVMf RkwelLuBQ+FfBGKM3q/P75v+TxMnIczTnWSN1iMfwK0HrlThOwO2+zE2MvXsggHgxXl/ jI0LYgdTpkR5a7DEfn9q7B+tScUqWJLM6l/gPz+9zNJVkzGit5MeEwz6/NxapAKnrpqi BqPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lJEceKiQcCVo9UvOR9Id93HFpuw1U/XFt5EUvStw8gM=; b=fbDo+ecfAvNu4AtL7YJr3nPgdPljJYjBcEYxqYPTy5A6L7f0cGjBdgmTJjDZ8fCrky 9zk9mC8TEDCFFEMl2fmxfgFi2+vgdYC+B6rZcBDz80LHXkscaUo6E8D0fFAAZoNCqhxu SZ6nTrPq+ECWkmPeGwe2ROTTTE7zgVvEGXL5tsVz79liAfNEsyk5lWcMTA85+wlbKiy1 cW47+aQ14JJn/R2yxhC1vx7rEzTo8mZ6JC+HFx8oud+URT97hPXc2YgQJ2nQ232TLm/w Ume4LlixogHgeiOwgObQ/tV8k4rJKMwWl0tCETbd7OwzfwIhrgVXQZxbCjL8gGL4Oo7I 54KA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a631054000000b0041a75809619si10210866pgq.650.2022.07.31.11.10.35; Sun, 31 Jul 2022 11:11:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232268AbiGaRyG (ORCPT + 99 others); Sun, 31 Jul 2022 13:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbiGaRyE (ORCPT ); Sun, 31 Jul 2022 13:54:04 -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 A613AFD01; Sun, 31 Jul 2022 10:54:03 -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 4025460FC9; Sun, 31 Jul 2022 17:54:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCCE0C433D6; Sun, 31 Jul 2022 17:54:01 +0000 (UTC) Date: Sun, 31 Jul 2022 13:53:55 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: Tao Zhou , 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 , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH V9 01/16] rv: Add Runtime Verification (RV) interface Message-ID: <20220731135355.713859c5@rorschach.local.home> In-Reply-To: <5431c5e4-a8b0-738c-5143-3976cb904b9a@kernel.org> References: <0197dd47-ea15-4d8b-5fc7-e466d8a501a7@kernel.org> <20220731124730.311c8207@rorschach.local.home> <20220731130144.26576a6a@rorschach.local.home> <5431c5e4-a8b0-738c-5143-3976cb904b9a@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 Sun, 31 Jul 2022 19:49:23 +0200 Daniel Bristot de Oliveira wrote: > On 7/31/22 19:01, Steven Rostedt wrote: > > static int da_monitor_init_##name(void) \ > > { \ > > int slot; \ > > \ > > slot = rv_get_task_monitor_slot(); <- if this returns positive, things break \ > > if (slot < 0 || slot >= RV_PER_TASK_MONITOR_INIT) \ > > > > And we probably need slot to be negative if it is greater or equal to RV_PER_TASK_MONITOR_INIT. > > > > return slot; \ > > > > ok, there will be a problem when RV_PER_TASK_MONITOR_INIT changes to > 1. This will need to be patched to > return negative. So far we have only one because there is only one per task monitor. > Exactly. And reviewers like Tao and myself are going to continue to flag it as a bug as we don't assume that RV_PER_TASK_MONITOR_INIT will stay 1 ;-) -- Steve