Re: [PATCH V7 01/16] rv: Add Runtime Verification (RV) interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH V7 01/16] rv: Add Runtime Verification (RV) interface
- From: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
- Date: Wed, 27 Jul 2022 15:42:12 +0200
- 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>, Tao Zhou <tao.zhou@xxxxxxxxx>, Randy Dunlap <rdunlap@xxxxxxxxxxxxx>, linux-doc@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx
- In-reply-to: <20220726165903.262a0a65@gandalf.local.home>
- References: <cover.1658778484.git.bristot@kernel.org> <2aa3b18239f170ba23263f18d166d08634ed65dd.1658778484.git.bristot@kernel.org> <20220726122237.44386359@gandalf.local.home> <1e03adf9-2aea-63ab-93ae-a73836a7081a@kernel.org> <20220726165903.262a0a65@gandalf.local.home>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
On 7/26/22 22:59, Steven Rostedt wrote:
>>>> +static void turn_monitoring_on(void)
>>>> +{
>>>> + reset_all_monitors();
>>> Why does this reset all monitors but turn_monitoring_off() does not?
>> When we turn monitoring off, the monitors will stop monitoring while yet
>> in sync with the events generated by the system, i.e., all the events after
>> the start were processed.
>>
>> But if we disabled the monitor, and some events get ignored, the monitors
>> will be out of sync with the system. Thus, resetting the monitor to
>> for a synchronization between the monitors and the system is needed, before
>> enabling monitoring back.
>>
>>> You should keep that out.
>> did not get :-(
> I don't like the way the _on() and _off() are different.
>
> Have the _on() just turn in on *without* the reset.
>
> If you need the reset, then make a separate function called:
>
> static void turn_monitoring_on_with_reset(void)
> {
> reset_all_monitors();
> turn_monitoring_on();
> }
>
as usual... https://www.youtube.com/watch?v=qYo0lVVH2wU
Fixed in v8, along with all other changes.
Thanks
-- Daniel
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]