]> git.saurik.com Git - apple/xnu.git/blame - tests/kperf_helpers.h
xnu-7195.60.75.tar.gz
[apple/xnu.git] / tests / kperf_helpers.h
CommitLineData
39037602
A
1#ifndef KPERF_HELPERS_H
2#define KPERF_HELPERS_H
3
4#include <unistd.h>
f427ee49 5#include <stdbool.h>
39037602 6
f427ee49
A
7void configure_kperf_stacks_timer(pid_t pid, unsigned int period_ms,
8 bool quiet);
39037602 9
ea3f0419
A
10#define PERF_SAMPLE KDBG_EVENTID(DBG_PERF, 0, 0)
11#define PERF_KPC_PMI KDBG_EVENTID(DBG_PERF, 6, 0)
2a1bd2d3
A
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)
ea3f0419 16
39037602 17#endif /* !defined(KPERF_HELPERS_H) */