Re: [RFC PATCH] perf/stat: Add --disable-hwdt

From: Vince Weaver
Date: Mon Feb 06 2017 - 09:23:03 EST


On Mon, 6 Feb 2017, Robert Richter wrote:

> On 06.02.17 13:49:37, Borislav Petkov wrote:
> > On Mon, Feb 06, 2017 at 01:44:48PM +0100, Ingo Molnar wrote:
> > > Yeah, if for some whatever reason perf locks up while running perf stat as root,
> > > so I'd keep the option, as a general principle. :-/
> >
> > --dont-disable-hwdt it is.
>
> Isn't there the danger the previous watchdog state is never restored
> if for some reason perf got killed? So maybe have some other task
> running that restores it once perf is gone.

minor issue, but is it possibly to do anything about dmesg spam? From
what I recall every time you enable and disable the watchdog the kernel
prints a message. Makes for messy logs, especially when you run the
perf_fuzzer as root.

Vince