Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbWIYVWU (ORCPT ); Mon, 25 Sep 2006 17:22:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751391AbWIYVWU (ORCPT ); Mon, 25 Sep 2006 17:22:20 -0400 Received: from gw.goop.org ([64.81.55.164]:29064 "EHLO mail.goop.org") by vger.kernel.org with ESMTP id S1751262AbWIYVWT (ORCPT ); Mon, 25 Sep 2006 17:22:19 -0400 Message-ID: <45184885.8020807@goop.org> Date: Mon, 25 Sep 2006 14:22:13 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.7 (X11/20060913) MIME-Version: 1.0 To: Mathieu Desnoyers CC: Martin Bligh , "Frank Ch. Eigler" , Masami Hiramatsu , prasanna@in.ibm.com, Andrew Morton , Ingo Molnar , Paul Mundt , linux-kernel , Jes Sorensen , Tom Zanussi , Richard J Moore , Michel Dagenais , Christoph Hellwig , Greg Kroah-Hartman , Thomas Gleixner , William Cohen , ltt-dev@shafik.org, systemtap@sources.redhat.com, Alan Cox , Karim Yaghmour , Pavel Machek , Joe Perches , "Randy.Dunlap" , "Jose R. Santos" Subject: Re: [PATCH] Linux Kernel Markers 0.11 for 2.6.17 References: <20060925151028.GA14695@Krystal> <45181CE9.1080204@goop.org> <20060925201036.GB13049@Krystal> <45183B20.2080907@goop.org> <20060925203502.GA3770@Krystal> <20060925204701.GB3770@Krystal> In-Reply-To: <20060925204701.GB3770@Krystal> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 22 Mathieu Desnoyers wrote: > Better idea : we could put a read/write dependency on a memory location. > Yes, that works well. And it needn't even exist: extern int __marker_sequencer; /* doesn't exist, never referenced */ asm volatile("first asm" : "+m" (__marker_sequencer)); asm volatile("second asm" : "+m" (__marker_sequencer)); This keeps the asms ordered with respect to each other (and prevents to independent markers from being intermingled), but it doesn't prevent them from being re-ordered with respect to other code. J - 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/