Re: [libvirt] [PATCH] perf: Prevent enabling of already enabled perf event

2017-01-26 Thread John Ferlan
On 01/24/2017 04:12 AM, Nitesh Konkar wrote: > Currently, on every --enable perf_event command, > a new event->fd is created and counting of perf > event counter starts from zero and previous > event->fd is lost. This patch prevents this > behaviour. > > Signed-off-by: Nitesh Konkar > --- > sr

[libvirt] [PATCH] perf: Prevent enabling of already enabled perf event

2017-01-24 Thread Nitesh Konkar
Currently, on every --enable perf_event command, a new event->fd is created and counting of perf event counter starts from zero and previous event->fd is lost. This patch prevents this behaviour. Signed-off-by: Nitesh Konkar --- src/util/virperf.c | 3 +++ 1 file changed, 3 insertions(+) diff -