]> git.saurik.com Git - apple/xnu.git/blame_incremental - tests/kperf_helpers.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / kperf_helpers.h
... / ...
CommitLineData
1#ifndef KPERF_HELPERS_H
2#define KPERF_HELPERS_H
3
4#include <unistd.h>
5#include <stdbool.h>
6
7void configure_kperf_stacks_timer(pid_t pid, unsigned int period_ms,
8 bool quiet);
9
10#define PERF_SAMPLE KDBG_EVENTID(DBG_PERF, 0, 0)
11#define PERF_KPC_PMI KDBG_EVENTID(DBG_PERF, 6, 0)
12#define PERF_STK_KHDR UINT32_C(0x25020014)
13#define PERF_STK_UHDR UINT32_C(0x25020018)
14#define PERF_STK_KDATA UINT32_C(0x2502000c)
15#define PERF_STK_UDATA UINT32_C(0x25020010)
16
17#endif /* !defined(KPERF_HELPERS_H) */