Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1233663

Tracing IRQ-flags

From Sedat Dilek <sedat.dilek@gmail.com>
Newsgroups linux.kernel
Subject Tracing IRQ-flags
Date 2015-09-27 15:30 +0200
Message-ID <qdkbE-8pw-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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]).

I remembered TraceFS entered Linux v4.1 and wanted to play with it.
One result is the attached doc.

Can I do a ftrace graph trace with TraceFS?
And how do I do that?

Steven, is it possible to place your tracing mini-HOWTO (file:
/sys/kernel/tracing/README) into docs-dir?
Existing Documentation/trace?
Documentation/tracefs (new)?
Documentation/tracing (new)?
First, I was confused how and where to mount tracefs :-(.
Thanks.

Ingo, the kernel-configs in irqflags-tracing.txt doc are a bit outdated.
Which are very important for irqflags-tracing (hardirq | softirq)?
Are the lockdeps settings important?
Is irqsoff setting important?

$ egrep -i 'lockdep|tracing|irqsoff|irqflags' /boot/config-$(uname -r) | sort
CONFIG_DEBUG_LOCKDEP=y
CONFIG_EVENT_TRACING=y
CONFIG_IRQSOFF_TRACER=y
CONFIG_IWLWIFI_DEVICE_TRACING=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_LOCKDEP=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACING_SUPPORT=y
CONFIG_TRACING=y

What about a new tracing-dir in Documentation/ and place all tracing docs there?

Thanks.

Regards,
- Sedat -

[0] http://marc.info/?t=144179442100006&r=1&w=2
[1] http://marc.info/?l=linux-kernel&m=144318685710847&w=2
[2] https://lwn.net/Articles/631798/
[3] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/irqflags-tracing.txt

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Tracing IRQ-flags Sedat Dilek <sedat.dilek@gmail.com> - 2015-09-27 15:30 +0200
  Re: Tracing IRQ-flags Steven Rostedt <rostedt@goodmis.org> - 2015-09-27 19:00 +0200

csiph-web