From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4CADC19F2B for ; Sun, 31 Jul 2022 17:54:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbiGaRyF (ORCPT ); Sun, 31 Jul 2022 13:54:05 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@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