[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1511765030-20132-1-git-send-email-chabbi.milind@gmail.com>
Date: Mon, 27 Nov 2017 01:43:50 -0500
From: Milind Chabbi <chabbi.milind@...il.com>
To: jolsa@...hat.com
Cc: chabbi.milind@...il.com, Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
linux-kernel@...r.kernel.org
Subject: [PATCH] perf/core: Enable the bp only if the .disable field is 0.
Signed-off-by: Milind Chabbi <chabbi.milind@...il.com>
---
kernel/events/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 35747a58ffb4..1b8eae85e9de 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -2659,7 +2659,8 @@ static int perf_event_modify_breakpoint(struct perf_event *bp,
return err;
}
- _perf_event_enable(bp);
+ if (!attr->disabled)
+ _perf_event_enable(bp);
return 0;
}
--
2.14.1
Powered by blists - more mailing lists