Re: [PATCH V4 06/20] tools/rv: Add dot2c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH V4 06/20] tools/rv: Add dot2c
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Tue, 28 Jun 2022 14:10:50 -0400
- Cc: Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>, Guenter Roeck <linux@xxxxxxxxxxxx>, Jonathan Corbet <corbet@xxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Marco Elver <elver@xxxxxxxxxx>, Dmitry Vyukov <dvyukov@xxxxxxxxxx>, "Paul E. McKenney" <paulmck@xxxxxxxxxx>, Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>, Gabriele Paoloni <gpaoloni@xxxxxxxxxx>, Juri Lelli <juri.lelli@xxxxxxxxxx>, Clark Williams <williams@xxxxxxxxxx>, linux-doc@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx
- In-reply-to: <5b1e664b0c33f4da0430922718adc71a5d58d86c.1655368610.git.bristot@kernel.org>
- References: <cover.1655368610.git.bristot@kernel.org> <5b1e664b0c33f4da0430922718adc71a5d58d86c.1655368610.git.bristot@kernel.org>
On Thu, 16 Jun 2022 10:44:48 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> 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
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]