summaryrefslogtreecommitdiff
path: root/kern/pc_sample.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/pc_sample.h')
-rw-r--r--kern/pc_sample.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/kern/pc_sample.h b/kern/pc_sample.h
index 4832cb9f..04ca6671 100644
--- a/kern/pc_sample.h
+++ b/kern/pc_sample.h
@@ -71,22 +71,24 @@ typedef struct sample_control sample_control_t;
extern void take_pc_sample(
thread_t thread,
sample_control_t *cp,
- sampled_pc_flavor_t flavor);
+ sampled_pc_flavor_t flavor,
+ boolean_t usermode,
+ vm_offset_t pc);
/*
* Macro to do quick flavor check for sampling,
* on both threads and tasks.
*/
-#define take_pc_sample_macro(thread, flavor) \
+#define take_pc_sample_macro(thread, flavor, usermode, pc) \
MACRO_BEGIN \
task_t task; \
\
if ((thread)->pc_sample.sampletypes & (flavor)) \
- take_pc_sample((thread), &(thread)->pc_sample, (flavor)); \
+ take_pc_sample((thread), &(thread)->pc_sample, (flavor), usermode, pc); \
\
task = (thread)->task; \
if (task->pc_sample.sampletypes & (flavor)) \
- take_pc_sample((thread), &task->pc_sample, (flavor)); \
+ take_pc_sample((thread), &task->pc_sample, (flavor), usermode, pc); \
MACRO_END
#endif /* _KERN_PC_SAMPLE_H_ */