Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755215AbZINR2s (ORCPT ); Mon, 14 Sep 2009 13:28:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751250AbZINR2o (ORCPT ); Mon, 14 Sep 2009 13:28:44 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:35019 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbZINR2n (ORCPT ); Mon, 14 Sep 2009 13:28:43 -0400 Date: Mon, 14 Sep 2009 22:58:35 +0530 From: "K.Prasad" To: Frederic Weisbecker Cc: Ingo Molnar , LKML , Alan Stern , Peter Zijlstra , Arnaldo Carvalho de Melo , Steven Rostedt , Jan Kiszka , Jiri Slaby , Li Zefan , Avi Kivity , Paul Mackerras , Mike Galbraith , Masami Hiramatsu Subject: Re: [PATCH 3/5] hw-breakpoints: Rewrite the hw-breakpoints layer on top of perf counters Message-ID: <20090914172835.GB29531@in.ibm.com> Reply-To: prasad@linux.vnet.ibm.com References: <1252571367-25876-1-git-send-email-fweisbec@gmail.com> <1252571367-25876-4-git-send-email-fweisbec@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1252571367-25876-4-git-send-email-fweisbec@gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 39 On Thu, Sep 10, 2009 at 10:29:25AM +0200, Frederic Weisbecker wrote: > This patch rebase the implementation of the breakpoints API on top of > perf counters instances. > > The core breakpoint API has changed a bit: > > - register_kernel_hw_breakpoint() now takes a cpu as a parameter. For > now it doesn't support all cpu wide breakpoints but this may be > implemented soon. > > - unregister_kernel_hw_breakpoint() and unregister_user_hw_breakpoint() > have been unified in a single unregister_hw_breakpoint() > > Each breakpoints now match a perf counter which now handles the > register scheduling, thread/cpu attachment, etc.. > [edited] > > -/* > - * Load the debug registers during startup of a CPU. > - */ > -void load_debug_registers(void) It does not appear that perf handles CPUs that come up new (if else, blame my understanding of find_get_context():-)) and hence post breakpoint integration, the new CPUs wouldn't contain any breakpoint values (meant for all CPUs). As mentioned in my previous mail, this could be non-trivial lapse in debugging scenarios and even for users like ksym_tracer in ftrace. Your patch would want to retain the functionality of load_debug_registers(). Thanks, K.Prasad -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/