Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4220413iog; Tue, 28 Jun 2022 11:25:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6oUhMPOnkRhD/tSiCBojQc0itU1MH0a3Db5SAp1C4LxdAgfAvggxRXAojZFKJviJPKB9c X-Received: by 2002:a17:902:ea4f:b0:16a:cfc:7f49 with SMTP id r15-20020a170902ea4f00b0016a0cfc7f49mr4853787plg.135.1656440712837; Tue, 28 Jun 2022 11:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656440712; cv=none; d=google.com; s=arc-20160816; b=llyOCWW7B/P3ZnsIJPj7gQTgX8VKmwJY7oLm44GIRwULHOxh5l4iC0ollVrd3OZExi nuRjb2/g5siPtFAcAgBegY2ma1dDfjf0hqGmuW9pfnbm0uUMbpIeBOOcyNPhpKYVZaWF Snv1fxrDPbR94Y/o9T73YRAKp4oCd6I93AatSc34jTvKODaGbD2EhtR+3immD3xsQPUv JBN+YCCqZ1BUwPA7/guEeTBbnXpE8z824ViJX6QNLSAOo1l70ejgKcFQXaHHscuBUIxg t1iVmTxtIDe2/J/MC8kqSnxl0rqin69d1h3CjTfLGUoYTUUMFDTWXsQuIH/Xf4vQLLpT JI6Q== 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=Az2e/YdXB7hWLK1rEL+jBPIFyc5+gSpQlSmzGFplmOo=; b=AVlzt8ICqaKFYBJ8W1OnTCZi2gTAvEe9x1FCh2ogqCk4GUblnJWqgXr24VdkoxdMPy 4YToq87VCpIiPZ2WL6PuNSyGphTALSzR1bQSPiIxYx5GYLgyj9FZRijomSjw+UzV/qUT 0VjTMPOLAm53TvrX9iiPisXYtMVkbi4LIXZ4ldk5+AHaxh5kLor0sys5r9/eqHUqRBa1 jzpjASbNWEYsuSeLveE7vvJX5RPmpzTa8nzV555xVI4eyK8M+/ZVzX8h2s717Z9uCqq9 NrNwQnBU+ZIXljbKfa/VCjOsz/PEbAgZaGacxyYX/X+JGoLlQP4VP2i+ABMdKvFbUBiF Y0Ow== 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 b11-20020a056a000ccb00b0052545059695si22479488pfv.307.2022.06.28.11.25.01; Tue, 28 Jun 2022 11:25:12 -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 S232963AbiF1SRG (ORCPT + 99 others); Tue, 28 Jun 2022 14:17:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiF1SRF (ORCPT ); Tue, 28 Jun 2022 14:17:05 -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 573B41CFC2; Tue, 28 Jun 2022 11:17:04 -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 E49FF61ADE; Tue, 28 Jun 2022 18:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F39AC3411D; Tue, 28 Jun 2022 18:17:01 +0000 (UTC) Date: Tue, 28 Jun 2022 14:16:59 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira 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 , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH V4 06/20] tools/rv: Add dot2c Message-ID: <20220628141659.309ec0fb@gandalf.local.home> In-Reply-To: <5b1e664b0c33f4da0430922718adc71a5d58d86c.1655368610.git.bristot@kernel.org> References: <5b1e664b0c33f4da0430922718adc71a5d58d86c.1655368610.git.bristot@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, 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 Thu, 16 Jun 2022 10:44:48 +0200 Daniel Bristot de Oliveira wrote: > + def get_minimun_type(self): > + min_type="char" > + > + if self.states.__len__() > 255: > + min_type="short" > + > + if self.states.__len__() > 65535: > + min_type="int" Should these be "unsigned"? As char goes from -128 <-> 127 and short goes from -32768 <-> 32767 And are you sure you're not going to have more than 2,147,483,647 states ;-) (or 4,294,967,296 if it's unsigned). -- Steve > + > + return min_type > +