From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [PATCH v2 0/7] Allow disabling HW_BREAKPOINTS, PERF_EVENTS, INSTRUCTION_DECODER, IRQ_WORK, ANON_INODES Date: Mon, 10 Mar 2014 15:50:30 +0100 Message-ID: <20140310145030.GD21735@redhat.com> References: <20140310074354.GA4890@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Suravee Suthikulpanit , Frederic Weisbecker , David Herrmann , Stephane Eranian , Paul Gortmaker , Paul Mackerras , "H. Peter Anvin" , Thomas Gleixner , Andi Kleen , x86@kernel.org, Ingo Molnar , oprofile-list@lists.sf.net, Mel Gorman , Arnaldo Carvalho de Melo , Borislav Petkov , Dave Young , Peter Zijlstra , Gleb Natapov , Josh Triplett , Steven Rostedt , Bin Gao , Matt Fleming , Jacob Shin , linux-kernel@vger.kernel. To: Ingo Molnar Return-path: Content-Disposition: inline In-Reply-To: <20140310074354.GA4890@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: oprofile-list-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On 03/10, Ingo Molnar wrote: > > So my main problem with those patches was that if HW_BREAKPOINTS is > disabled then GDB 'hbreak' isn't simply disabled but fails in various > non-obvious ways, but the kernel should return an error. And this can happen anyway, say, reserve_bp_slot() can fail because all slots are already used by perf. And iirc, gdb always switches to the single-stepping if hbreak fails. Oleg. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech