chensong2000 / irq-tracing

Example code for tracing IRQs in Linux kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

irq-tracing

Example code for tracing IRQs in Linux kernel Posted as part of Embedded Linux Conference talk, Tuesday, October 11, 2016, "IRQs: the Hard, the Soft, the Threaded and the Preemptible", http://sched.co/7rrr

Tested on Boundary Devices Nitrogren i.MX6Q board with 4.4.4-rt11 kernel, but should work as intended on any recent PREEMPT_RT_FULL kernel with pinned Ethernet and CAN IRQs.

To trigger NAPI path of execution, I did the following: -- started two instances of 'ping -f '; -- ran a shell command that triggers dozens of scp's of a large file: while true; do scp /boot/vmlinuz root@:/tmp; done After about 30 seconds, the kprobe indicating NAPI path is hit.

I'd like to declare a license of GPLv2 or greater for this code, like the upstream Linux kernel, but apparently Github does not permit this.

About

Example code for tracing IRQs in Linux kernel

License:Other


Languages

Language:C 95.9%Language:Assembly 1.8%Language:C++ 1.7%Language:Makefile 0.3%Language:Perl 0.1%Language:Objective-C 0.1%Language:Python 0.0%Language:Shell 0.0%Language:Yacc 0.0%Language:Lex 0.0%Language:Awk 0.0%Language:GDB 0.0%Language:UnrealScript 0.0%Language:SourcePawn 0.0%