Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874Ab2HCWg3 (ORCPT ); Fri, 3 Aug 2012 18:36:29 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:63394 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753376Ab2HCWg1 (ORCPT ); Fri, 3 Aug 2012 18:36:27 -0400 Date: Fri, 3 Aug 2012 15:36:23 -0700 From: Greg KH To: "Pandita, Vikram" Cc: Aaro Koskinen , Andi Kleen , kay@vrfy.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mike Turquette , Vimarsh Zutshi Subject: Re: [PATCH v3] printk: add option to print cpu id Message-ID: <20120803223623.GB6156@kroah.com> References: <1344013004-32211-1-git-send-email-vikram.pandita@ti.com> <20120803200822.GC731@harshnoise.musicnaut.iki.fi> <20120803215954.GA4489@kroah.com> <20120803221327.GA5102@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1413 Lines: 34 On Fri, Aug 03, 2012 at 03:25:17PM -0700, Pandita, Vikram wrote: > >> This was something that got used internally and helped at times. > > > > Could you have used the trace point instead? > > As i understood the trace_prink(), one would need to modify existing > printk -> trace_printk. Is my understanding correct? No, you should just be able to watch the tracepoint, right? > Most of the times the problem exhibits as a random hang, without having a clue > which code to modify. That time one generic defconfig global switch is > your first tool. > > Other issue i found, using this patch, that on multi-core ARM systems, > almost 99% of times, IRQ's are handled by CPU0, > even if CPU0 was really busy and other CPU's were free. I am yet to > understand a good reason why. Can't you see that from /proc/interrupts today? > this patch also helped in other areas as mentioned in the thread > http://marc.info/?l=linux-omap&m=134401269106619&w=2 I still don't understand how adding the cpu number to printk enabled you to find any problem like this. Can't you just add the cpu number to the printk messages you care about for your specific hardware? greg k-h -- 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/