linux/tools/perf/scripts/perl/bin/check-perf-trace-record

#!/bin/bash
perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree