From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759538AbZBLOu3 (ORCPT ); Thu, 12 Feb 2009 09:50:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752896AbZBLOuU (ORCPT ); Thu, 12 Feb 2009 09:50:20 -0500 Received: from mail-fx0-f20.google.com ([209.85.220.20]:41505 "EHLO mail-fx0-f20.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755469AbZBLOuS (ORCPT ); Thu, 12 Feb 2009 09:50:18 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=FN/FHyEwIgw8wnLQngI39sMNdQf2n4w8VyzER+yqDjOMaOvqyyMlbh/wzruyMTQ3aH L0YzUguw9xWTv21cy78Rf2QfvE9lokt4H/aU0nVFYAlqmJsCSXpRPAj8WHvY/GL1CEGU Y0u/liqsZxWVERTQKcWeHIvH5K0KD8TkQ5cKM= Date: Thu, 12 Feb 2009 15:50:11 +0100 From: Frederic Weisbecker To: Ingo Molnar Cc: Peter Zijlstra , Thomas Gleixner , LKML , rt-users , Steven Rostedt , Carsten Emde , Clark Williams Subject: Re: [patch] rt: res_counter fix, v2 Message-ID: <20090212145010.GB6056@nowhere> References: <20090212005032.GA4788@nowhere> <20090212021257.GB4697@nowhere> <20090212101650.GA1096@elte.hu> <20090212102113.GA10031@elte.hu> <20090212142806.GA5865@nowhere> <1234449701.10603.10.camel@laptop> <20090212144624.GB14616@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090212144624.GB14616@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 12, 2009 at 03:46:24PM +0100, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Thu, 2009-02-12 at 15:28 +0100, Frederic Weisbecker wrote: > > > > [ 45.228589] hardirqs last disabled at (0): [] copy_process+0x68d/0x1500 > > > > [ 45.228602] softirqs last enabled at (0): [] copy_process+0x68d/0x1500 > > > > > > > > > The reason for which I wanted to send an irqsoff trace is that the above lines are false. > > > > copy_process() has: > > > > #endif > > p->hardirq_enable_ip = 0; > > p->hardirq_enable_event = 0; > > p->hardirq_disable_ip = _THIS_IP_; > > p->hardirq_disable_event = 0; > > p->softirqs_enabled = 1; > > p->softirq_enable_ip = _THIS_IP_; > > p->softirq_enable_event = 0; > > p->softirq_disable_ip = 0; > > p->softirq_disable_event = 0; > > p->hardirq_context = 0; > > p->softirq_context = 0; > > #endif > > > > the sequence count of 0 basically tells you it hasn't been set yet. Oh I see now, thanks Peter. > maybe we should initialize it to -1 to make this more apparent? Or why not set p->{hard,soft}irq_disable_ip = NULL ? (or 0, I don't know its type). > Ingo