Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4212454iog; Tue, 28 Jun 2022 11:14:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uuWUL5v3oWBSQP2XTvNr83KdUl94nEed3RH2x6QEm/XMssjFB3yvgYnVlFGxgZh7o54fCP X-Received: by 2002:a17:907:72d2:b0:722:f9c8:c3fa with SMTP id du18-20020a17090772d200b00722f9c8c3famr18204326ejc.608.1656440084846; Tue, 28 Jun 2022 11:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656440084; cv=none; d=google.com; s=arc-20160816; b=ujWtrQrRRA2WaHy2HzAlli/zd4p9mbGuvuJinK/kryUx5mLgfichBJtuzIo4XGV0vB UQdt8tqaww2jnyRKSBZDrYCHecbmiORHB5TAim3R9SL2nRcZ5km7wyKYQNLyIs4G5K+p n8OYTkNFnpfzMKHr1prly1g2bi/Pvhb8pnU/viVQlUvkqnBp0cjEujHgpD8OGkk2wZwX rTXI+RTQxO4XHVZt3GhUgJwNNIgoBn0kiid5WRNVTJSR+Uln+ZP6Vzb1CZpx1VN5Bbdh 7rEMsqbuOtUmJzqpvQsKmePievUyRe3GsHGrgHDA8LakEdVbNn4QHyfoKXusyudnYPDd W/NA== 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=G8NXSCNZpBzjHc59/FSc6ii6cDh+LcdnG7rg1XA2dQA=; b=VguFARnNohu8UXAK5hOE/etrtA7K7qQydDU/mtPl+C1SBV+kD1CHD+wphncKG9oUc0 H5CEG+1e+AUjgwYYxtlUBsXj2zE5n+/dGSOlo7E4JCVAp74Q++wAnxsgkc65JBWqQlXz AqG839k55GRjVhBK+2L+rdWhorVsxU5EcQUJODXItK+LLpY1aO6p0SM19HvOfgX3WTPI te+p6xJnnVjK7LumrSrLQCF/UEprbsNdF7tFFv5YnwCGNgfv/Z4xjZIftw5ihE/woHfm igAWqTETxGEx9MlbccN5VJg4Ax+UZWV1MTSGEyEdTMmout28eAfPfPTB+NXUGB/H2Mcb 5yfA== 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 t15-20020a1709064f0f00b00726efd49e61si1482515eju.907.2022.06.28.11.14.18; Tue, 28 Jun 2022 11:14:44 -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 S234713AbiF1SK4 (ORCPT + 99 others); Tue, 28 Jun 2022 14:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiF1SKz (ORCPT ); Tue, 28 Jun 2022 14:10:55 -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 0DF3017E2E; Tue, 28 Jun 2022 11:10:55 -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 9E21761ADB; Tue, 28 Jun 2022 18:10:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18346C3411D; Tue, 28 Jun 2022 18:10:51 +0000 (UTC) Date: Tue, 28 Jun 2022 14:10:50 -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: <20220628141050.6d4ff81b@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 __create_matrix(self): > + # transform the array into a dictionary > + events = self.events > + states = self.states > + events_dict = {} > + states_dict = {} > + nr_event = 0 > + for event in events: > + events_dict[event] = nr_event > + nr_event += 1 > + > + nr_state = 0 > + for state in states: > + states_dict[state] = nr_state > + nr_state = nr_state + 1 > + Hmm, do you just like inconsistency? nr_event += 1 nr_state = nr_state + 1 ?? -- Steve