[BACK]Return to kprofile.bt CVS log [TXT][DIR] Up to [local] / src / share / btrace

File: [local] / src / share / btrace / kprofile.bt (download)

Revision 1.2, Sun May 1 20:23:11 2022 UTC (2 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.1: +2 -0 lines

Install useful btrace scripts into /usr/share/btrace directory.
OK tedu@

/*	$OpenBSD: kprofile.bt,v 1.2 2022/05/01 20:23:11 bluhm Exp $	*/

/*
 * kprofile.bt	Kernel profiling (stack sampling) at 100Hz.
 *
 * To produce a FlameGraph process the output with stackcollapse-bpftrace.pl
 * and flamegraph.pl found in:
 *	https://github.com/brendangregg/FlameGraph
 */
profile:hz:100 {
	@[kstack] = count();
}