#!/usr/bin/env bpftrace interval:s:1 { printf("sched_switch traces per second: %d\n", @sched_switch_count); @sched_switch_count = 0; } tracepoint:sched:sched_switch { @sched_switch_count++; }