From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbbI0Qvd (ORCPT ); Sun, 27 Sep 2015 12:51:33 -0400 Received: from smtprelay0032.hostedemail.com ([216.40.44.32]:56455 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751031AbbI0Qvc (ORCPT ); Sun, 27 Sep 2015 12:51:32 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2693:2892:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3872:3873:5007:6119:6261:7514:7875:7903:9163:10010:10400:10848:10946:10967:11026:11232:11473:11658:11914:12438:12517:12519:12555:12663:12740:13069:13073:13191:13192:13229:13311:13357:13870:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:1:0 X-HE-Tag: frog82_648d75234de39 X-Filterd-Recvd-Size: 1857 Date: Sun, 27 Sep 2015 12:51:29 -0400 From: Steven Rostedt To: Sedat Dilek Cc: Ingo Molnar , LKML , Jiri Kosina , Tejun Heo , Lai Jiangshan Subject: Re: Tracing IRQ-flags Message-ID: <20150927125129.7741bbcf@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 27 Sep 2015 15:25:41 +0200 Sedat Dilek wrote: > Hi Ingo, Hi Steven, > > I am still fighting with a llvmlinux problem in the area... > > workqueue | hid | irq-flags (hardirqs/sofirqs disabled) | whatever?! > > ...(see [0]). > > [ 24.705463] BUG: sleeping function called from invalid context at > kernel/workqueue.c:2680 > [ 24.705576] in_atomic(): 0, irqs_disabled(): 1, pid: 1447, name: acpid > > Several people had ideas where to look at - Thanks. > > Finally, Jiri encouraged me to try with a ftrace graph trace (see [1]). Actually, if you are looking for where interrupts were disabled last before triggering the "sleeping function called from invalid context", lockdep, not ftrace, would be your better bet. Enable lockdep with CONFIG_PROVE_LOCKING. It will give you better information about where the last irq was disabled. -- Steve