Skip to content

Instantly share code, notes, and snippets.

@giraldeau
Created September 13, 2016 20:09
Show Gist options
  • Save giraldeau/bfa8df18132c65483020510daade5022 to your computer and use it in GitHub Desktop.
Save giraldeau/bfa8df18132c65483020510daade5022 to your computer and use it in GitHub Desktop.
#!/bin/sh
EVS="sched_switch
sched_waking
sched_migrate_task
sched_process_free
sched_process_exit
sched_wait_task
sched_process_wait
sched_process_fork
sched_process_exec
sched_stat_wait
sched_stat_sleep
sched_stat_iowait
sched_stat_blocked
sched_stat_runtime
sched_pi_setprio
irq_handler_entry
irq_handler_exit
irq_softirq_entry
irq_softirq_exit
irq_softirq_raise
kmem_mm_page_free
kmem_mm_page_free_batched
kmem_mm_page_alloc
timer_expire_entry
timer_expire_exit
timer_cancel
timer_hrtimer_init
timer_hrtimer_start
timer_hrtimer_expire_entry
timer_hrtimer_expire_exit
timer_hrtimer_cancel
lttng_statedump_start
lttng_statedump_end
lttng_statedump_process_state
lttng_statedump_interrupt
"
lttng create
lttng enable-event -k --syscall -a
for ev in $EVS; do
lttng enable-event -k $ev
done
lttng start
sleep 1
taskset -c 3 chrt -f 99 ./rover_mqtt --simulate-pi-sense-hat &
P=$!
sleep 1
kill $P
sleep 1
lttng stop
lttng destroy -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment