Skip to content

Instantly share code, notes, and snippets.

@azat
Created March 19, 2014 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azat/9637608 to your computer and use it in GitHub Desktop.
Save azat/9637608 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd /sys/kernel/debug/tracing
echo >| trace
echo ext4_* >| set_graph_function
for i in printk irq_exit local_apic_timer_interrupt smp_apic_timer_interrupt; do
echo $i >> set_graph_notrace
done
echo function_graph >| current_tracer
# Realtime tracing
tail -f trace
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment